Skip to content
Prev 359293 / 398502 Next

please help

John Kane
Kingston ON Canada
Probably but we need to know more about what you are doing. You have told us nothing so far.  

At a guess, you want to do a t-test on the st_ur variable that you have in the two files. Is that correct? Something like this probably will work.

dat1  <-  read.csv("~/Rjunk/sonce_ljubljana.txt", sep = "\t", header = TRUE, stringsAsFactors=FALSE)
dat2  <-  read.csv("~/Rjunk/sonce_murska.txt", sep = "\t", header = TRUE, stringsAsFactors=FALSE)

dat3  <-  merge(dat1, dat2, by = "leto")
names(dat3)  <-  c("leto", "ljubljana", "murska")

with(dat3, t.test(ljubljana, murska))

However you really need to supply much more information on what you are doing.  Please read http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html for information on how to ask questions here.


Thank you for providing the data.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!