Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Full_Name: Phil Spector Version: 2.3.1 OS: Mac OS X (Tiger) Submission from: (NULL) (128.32.135.22) Trying to close a jpeg() device on an Intel Mac causes the following: > jpeg('out.jpg') > plot(1:10) > dev...
Please don't reply to this request. This is a student in one of my classes. - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Tue, 9 Feb 2010, Nick Manginelli wrote: > So...
Patrik - I don't know if it's the fastest, but, assuming your Matrix is called mat, this seems to work fairly quickly: wh = which(is.na(mat),arr.ind=TRUE) mat[wh] = apply(mat,2,mean,na.rm=TRUE...
Barry = Suppose your data frame is called "mydat". Then something like mydat[,sapply(mydat,class) %in% c('numeric','integer')] might do what you want. - Phil On Sat, 16 Feb 2013, Barry DeCicco wrote: > Hello, > > I've got a data frame...
Julian - I've written a document you might find helpful. http://www.stat.berkeley.edu/classes/s243/calling.pdf It also includes the C/matlab interface. - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley...
?arima.sim - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Thu, 5 May 2011, Alemtsehai Abate wrote: > Dear R users, > May any of you tell me how to simulate data on: > y...
?invisible - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Fri, 1 Oct 2010, Dimitri Liakhovitski wrote: > Hello! > > I wrote a function that returns a data frame. Nowhere in the function > do I...
The xlsReadWrite package provides write.xls for Windows, while the dataframes2xls package provides write.xls for non-Windows systems. - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Mon, 9 Mar 2009, Carl...
Yuan - There may be faster ways, but names(lst)[sapply(lst,function(i)'a' %in% i && 'c' %in% i)] seems to do what you want. - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu...
?unlink - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Fri, 11 Jun 2010, mauede at alice.it wrote: > I'd like to remove automatically a directory that may be non empty. > I...
Due to the following lines in parse.format: else if (nf == 3) { sep <- "" fmt <- substring(format, first = 1:3, last = 1:3) } If a format code has 3 characters, it will not use a separator: > library(chron) > mytime = times('7...
t <- c(4, 5, 3, 2) > paste(test,collapse=' ') [1] "4 5 3 2" - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Fri, 3 Dec 2010, Soyeon Kim wrote: > Dear All, > When...
Hyunchul - You don't have to rely on the operating system to provide information about the file system. Look at ?list.files For example, list.files('/path/to/directory',recursive=TRUE) - Phil Spector Statistical Computing Facility Department of Statistics UC...
Ali - If all you care about is if there are any missing values (not how many or where they are), I think it would be a bit faster to use if(any(is.na(x))){...} - Phil Spector Statistical Computing Facility...
Kevin - Here's one way: > z = boxplot(mydata$score,outline=FALSE,ylim=range(mydata$score)) > text(1,z$out,SubNo[which(score == z$out)]) - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On...
hyunjo - Perhaps charToInt from the R.oo package? > library(R.oo) Loading required package: R.methodsS3 R.methodsS3 v1.0.3 (2008-07-02) successfully loaded. See ?R.methodsS3 for help. R.oo v1.4.6 (2008-08-11) successfully...
Nancy - Please notice that ** is not an R operator. The caret (^) is the exponentiation operator in R. - Phil On Tue, 29 Dec 2009, Nancy Adam wrote: > > Hi everyone, > I tried to write the code of computing R2 for a regression...
Gregory - Suppose your list is called "mymats". Then Reduce("+",mymats) does what you want. - Phil On Sun, 12 Sep 2010, Gregory Ryslik wrote: > Hi, > > I have a list of several hundred 2 dimensional matrices, where each matrix is n x...
Colton - Have you looked at the invert= argument of grep()? (In regular expressions, ^ means "beginning of string", and ! has no special meaning.) - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Mon, 28...
Dan - Try using "having Premie not null" instead of "having !is.na(Premie)" . - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Tue, 17 Jan 2012, Dan Abner wrote: > Hi everyone, > > I have...
Can't find what you're looking for? Try searching with Google .