[R] acf() with two df?

Spencer Graves spencer.graves at pdf.com
Wed Apr 30 16:20:48 CEST 2003


Have you considered merge or cbind to create one data.frame from the two?

hth.  spencer graves

Martin Wegmann wrote:
> Hello,
> 
> I have two dataframes, one with a time series of variables and another
> one with biological data of each plot. the column names correspond to
> each other
> 
> 
>         plot1 plot 2.......
> 1983  ...     ....
> 1984  ...     ....
> ...
> 
> and
> 
>         plot 1 plot2
>   1      ...         ...
>   2
> 
> is it somehow possible to use acf() with two data frames and get a p
> values for the whole correaltion of these two frames? AND to have the
> lag function with p values? otherwise I think that cor() could do the
> job but this one hasn't implemented the lag function.
> 
> an idea? thanks Martin
> 
> 
> 
> 
> --
> Martin Wegmann
> Department of Animal Ecology and Tropical Biology
> Zoology III, Biocenter
> Am Hubland
> 97074 Würzburg
> Germany
> 0931/888-4378
> wegmann at biozentrum.uni-wuerzburg.de
> m.wegmann at web.de
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list