Re: [R] R combining vectors into a data frame but without a continuous common variable

2012-10-04 Thread lucy88
Oh my word, you're a genius!! That is absolutely perfect, thank you so much!! I've no idea how you've learnt these things but I would never ever have been able to do that. You've just made my day so much better after the horror of confusion before. Thank you!! -- View this message in conte

Re: [R] R combining vectors into a data frame but without a continuous common variable

2012-10-04 Thread arun
   Date Event Precip #1 1901-06-02 1    0.0 #2 1905-06-02 1    0.0 #3 1906-08-03 1   15.6 #4 1908-05-08     1    0.0 #5 1911-06-02     1    3.0 #6 1911-09-15 1   23.2 A.K. - Original Message - From: lucy88 To: r-help@r-project.org Cc: Sent: Thursday, October 4

Re: [R] R combining vectors into a data frame but without a continuous common variable

2012-10-04 Thread Rui Barradas
Hello, Try the following. url1 <- "http://r.789695.n4.nabble.com/file/n4644986/Landeck_vec.txt"; url2 <- "http://r.789695.n4.nabble.com/file/n4644986/Kaurnetal_vec.txt"; dat1 <- read.table(url1, header = TRUE) dat2 <- read.table(url2, header = TRUE) str(dat1) str(dat2) # Precip is a factor,

[R] R combining vectors into a data frame but without a continuous common variable

2012-10-04 Thread lucy88
Hello, I have two different files which I'd like to combine to make one data frame but I've no idea how to do it! The first file has two columns; one is the date, the following is a binary code for debris flow events. Then my other file has also two columns; the date and then precipitation data.