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
Hi Lucy, No problem. Just a correction to my earlier email. dat1<-read.table("Landeck_vec.txt",sep="",header=TRUE,stringsAsFactors=FALSE) dat2<-read.table("Kaurnetal_vec.txt",sep="",header=TRUE,stringsAsFactors=FALSE) colnames(dat1)[1]<-"Date" (Rui: #dat2 Date format is inconsistent.) dat2$Date

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,