John Kane
Kingston ON Canada


> -----Original Message-----
> From: damjanfaks2...@gmail.com
> Sent: Mon, 14 Mar 2016 09:43:45 +0100
> To: r-help@r-project.org
> Subject: [R] please help
> 
> Dear all,
> 
> with the below 2 files I would like to to the t.test and var.test
> 
> but it does not work.
> 
> Can you help me ?
> 

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!

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to