Re: [R] Comparing data

2011-11-28 Thread Florent D.
Forgot to suggest: if labSt is the 1st column in your file, you could just add "row.names = 1" to your read.csv call. On Mon, Nov 28, 2011 at 8:06 PM, Florent D. wrote: > Unlike a data.frame, a matrix can only hold one type of data. Since > you have a column of characters ("labSt") in your origin

Re: [R] Comparing data

2011-11-28 Thread Florent D.
Unlike a data.frame, a matrix can only hold one type of data. Since you have a column of characters ("labSt") in your original data, turning it into a matrix will give you a matrix of characters. You can check it is the case by asking class(DF.m[1,1]). So you'll have to remove this labSt column be

[R] Comparing data

2011-11-28 Thread Matevž Pavlič
Hi all, i have a data set cintaining 14 columns and 11 rows. Rows represent single point and columns represent the parameter measured. I wiuld like to compare the data to see which are more alike. I used the cluster analysis, but now i ma wondering if there are some other methods, since

Re: [R] Comparing data frames

2010-04-19 Thread Laura Ferrero-Miliani
Thank you all for your help and suggestions. L On Sun, Apr 18, 2010 at 8:51 PM, Tal Galili wrote: > Would: > ?merge > Work for you ? > > > Contact > Details:--- > Contact me: tal.gal...@gmail.com |  972-52-7275845 > Read me: www

Re: [R] Comparing data frames

2010-04-18 Thread Tal Galili
Would: ?merge Work for you ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---

[R] Comparing data frames

2010-04-18 Thread Laura Ferrero-Miliani
Dear very helpful friends, It is Sunday, there is no air traffic in Europe, what better to do than try and learn me some more R. I have the following example: owner <- c(1:4) animal <- c("cat", "dog", "cat", "dog") char.1 <- c("fluffy", "playful", "mean", "stupid") food <- c("cat food", "left-ove

Re: [R] Comparing data frames and keeping non-matches

2009-03-11 Thread Pele
Hi All, I found a solution that give the correct answer.. year <- c(2100:2110) x1 <- c(F,T,T,F,F,F,T,F,T,T,F) df1 <- data.frame(cbind(year, x1)) df1$subject <- c(1,1,1,2,2,3,3,3,3,4,4) df1$match <- 1 df1$key <- paste(df1$subject, df1$match, sep="") ; df1 df2 <- data.frame(cbind(year, x1)) df2$

[R] Comparing data frames and keeping non-matches

2009-03-11 Thread Pele
Hi R users, I am trying to compare 2 data frames by subject and match and save the no matches to an object called nomatch, but I am getting unexpected results... Can anyone tell me how to correct the code to get the expected results shown in the last table? Many thanks in advance for your any h

[R] Comparing Data and Simulation

2008-12-23 Thread Koen van Rhee
Hello, I've got a function f(x) with this function. For x in -2 : 2 i've generated a vector y with function values. There is also a data set and I've constructed an estimator which should find values similar to y. My question is, what is the best way to compare these vectors? A simple exampl