[R] please help

John Kane jrkrideau at inbox.com
Mon Mar 14 16:06:36 CET 2016

John Kane
Kingston ON Canada

> -----Original Message-----
> From: damjanfaks2015 at gmail.com
> Sent: Mon, 14 Mar 2016 09:43:45 +0100
> To: r-help at 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!

More information about the R-help mailing list