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
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.
>
>
> ____
&
__
> 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
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'
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
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=
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
7 matches
Mail list logo