Skip to content

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.

408 results for “from:Phil Spector”

JPEG struct mismatch on Intel Macs (PR#9209)
Phil Spector · Sep 6, 2006 · r-devel

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...

Help Please!
Phil Spector · Feb 10, 2010 · r-help

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...

NA matrix operation
Phil Spector · Dec 15, 2010 · r-help

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...

Extracting Numeric Columns from Data Fram
Phil Spector · Feb 16, 2013 · r-help

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...

Resource for learning C/R interface
Phil Spector · Dec 18, 2010 · r-help

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...

simulate AR(1) process
Phil Spector · May 5, 2011 · r-help

?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...

Suppressing printing in the function
Phil Spector · Oct 1, 2010 · r-help

?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...

Creating an Excel file with multiple spreadsheets
Phil Spector · Mar 9, 2009 · r-help

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...

list operation
Phil Spector · Jun 23, 2010 · r-help

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...

removing a non empty directory
Phil Spector · Jun 11, 2010 · r-help

?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...

chron library: format.times, parse.format and h:m (PR#8507)
Phil Spector · Jan 19, 2006 · r-devel

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...

How to change a numeric vector to a character value
Phil Spector · Dec 3, 2010 · r-help

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...

listing files recursively
Phil Spector · Aug 30, 2010 · r-help

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...

efficient test for missing values (NAs)
Phil Spector · Oct 20, 2010 · r-help

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...

labeling outliers with subject numberss
Phil Spector · Sep 15, 2010 · r-help

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...

No funtions for character code?
Phil Spector · Oct 13, 2009 · r-help

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...

R2
Phil Spector · Dec 29, 2009 · r-help

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...

average matrices across a list
Phil Spector · Sep 12, 2010 · r-help

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...

Not-In operator
Phil Spector · Jun 28, 2010 · r-help

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...

Using !is.na() in a HAVING clause in sqldf() XXXX
Phil Spector · Jan 17, 2012 · r-help

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 .