Re: [R] squared coherency and cross-spectrum

2005-12-05 Thread Ling Jin
Ling Jin wrote: Hi All, I have two time series, each has length 354. I tried to calculate the coherency^2 between them, but the value I got is always 1. On a website, it says: Note that if the ensemble averaging were to be omitted, the coherency (squared) would be 1, independent

[R] squared coherency and cross-spectrum

2005-12-01 Thread Ling Jin
Hi All, I have two time series, each has length 354. I tried to calculate the coherency^2 between them, but the value I got is always 1. On a website, it says: Note that if the ensemble averaging were to be omitted, the coherency (squared) would be 1, independent of the data. Does any of

[R] cospectrum

2005-11-29 Thread Ling Jin
Hi, Does anyone know which function in R can compute cross-spectrum of two time series, and what lib is needed? I found ccf, which only gives cross-correlation. I need to carry that further by doing a Fourier transform. Thanks, Ling __

[R] merge

2005-07-08 Thread Ling Jin
Hi all, I have two data frames to merge by a column containing the site names (as characters). However, somehow, one of the site names of one data frame have fixed length, say 8, so the names sometimes have spaces at the end. For example, the site name is ST, but in one data frame, it is ST

[R] How to sort a dataset by one column?

2005-06-22 Thread Ling Jin
I understand how to sort a vector, but I could not find how to sort a data frame or matrix by one variable (column). Could you give me some examples? Thanks! Ling __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] How to read an excel data into R?

2005-06-22 Thread Ling Jin
Hi all, Does anybody know the easiest way to import excel data into R? I copied and pasted the excel data into a txt file, and tried read.table, but R reported that Error in read.table(data_support.txt, sep = , header = T) : more columns than column names Thanks! Ling