On 2012-11-14 20:52, nilsonern wrote:
I am trying to do a two sample t-test with data that i received in a text
document.  one list has the slab weights and the second has the company it
is associated with.  here is an example.

weights  company
1                  A
2                  A
2                  B
3                  B

I was able to import the data but i cannot figure out how separate the data.
I want to put them in two separate sets, one being A and one being B.  Any
help would be appreciated.  Thanks.


Why separate? The 'long' form is generally preferred in
statistical analyses.
Just use the formula version of t.test().

Peter Ehlers



--
View this message in context: 
http://r.789695.n4.nabble.com/Importing-Data-for-a-two-sample-t-test-tp4649565.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
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.


______________________________________________
R-help@r-project.org mailing list
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