Re: [R] Apply acf to data frame containing 'NA'

2013-06-24 Thread arun
as.data.frame(t(sapply(res,c))) but it did not work. I would like to export the file and store in column mood. Thanks, Atem. From: arun To: Zilefac Elvis Sent: Sunday, June 23, 2013 2:33 PM Subject: Re: [R] Apply acf to da

Re: [R] Apply acf to data frame containing 'NA'

2013-06-23 Thread Bert Gunter
or in acf(na.omit(x)) : 'lag.max' must be at least 0 > In addition: Warning message: > In split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : > data length is not a multiple of split variable" > > AE. > > > ____ &

Re: [R] Apply acf to data frame containing 'NA'

2013-06-23 Thread Hannah Barron
__ > From: arun > To: Zilefac Elvis > Cc: R help > Sent: Sunday, June 23, 2013 11:41 AM > Subject: Re: [R] Apply acf to data frame containing 'NA' > > > Hi, > May be this helps: > set.seed(24) > A <- matrix(sample(c(NA,rnorm(1500)),150

Re: [R] Apply acf to data frame containing 'NA'

2013-06-23 Thread arun
lt(x = seq_len(nrow(x)), f = f, drop = drop, ...) :   data length is not a multiple of split variable" AE. From: arun To: Zilefac Elvis Cc: R help Sent: Sunday, June 23, 2013 11:41 AM Subject: Re: [R] Apply acf  to data frame containing 'NA'

Re: [R] Apply acf to data frame containing 'NA'

2013-06-23 Thread Zilefac Elvis
data length is not a multiple of split variable" AE. From: arun To: Zilefac Elvis Cc: R help Sent: Sunday, June 23, 2013 11:41 AM Subject: Re: [R] Apply acf to data frame containing 'NA' Hi, May be this helps: set.seed(24) A <- mat

Re: [R] Apply acf to data frame containing 'NA'

2013-06-23 Thread arun
nday, June 23, 2013 1:29 PM Subject: [R] Apply acf to data frame containing 'NA' Hi, I have a data frame with each column representing a separate site. Following this code, I can apply acf to all columns in A. 'A' contains randomly generated data. A <- matrix(rnorm(1500),nrow=

[R] Apply acf to data frame containing 'NA'

2013-06-23 Thread Zilefac Elvis
Hi, I have a data frame with each column representing a separate site. Following this code, I can apply acf to all columns in A. 'A' contains randomly generated data. A <- matrix(rnorm(1500),nrow=500) par(mfrow=c(ncol(A),1)) lapply(split(A,col(A)), acf) #OR lapply(split(A,col(A)), function(snow