Skip to content
Back to formatted view

Raw Message

Message-ID: <BD72E965703.000003C5jrkrideau@inbox.com>
Date: 2016-03-14T15:06:36Z
From: John Kane
Subject: please help
In-Reply-To: <CADsz97M5Os-+pGt=WYm1Pkxhm+jefEMrR8L61EXUg6fJRc1fkQ@mail.gmail.com>

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!