I will suggest that you read the documentation on t.test. ?t.test
Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -----Original Message----- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Joanna > Nguyen > Sent: Wednesday, February 24, 2016 10:36 AM > To: r-help@r-project.org > Subject: [R] how to split and use notation fro stacked data > > I have a data set as below > > "temperature" "gender" "hr" > 96.3 1 70 > 96.7 1 71 > 96.9 1 74 > 96.4 2 69 > 96.7 2 62 > 96.8 2 75 > > Gender code (1) means males and Gender code (2) means females. > I have to split the data by gender and then perform a* two-sample tes*t to > see whether the population means are equivalent. When using a function > to solve this I should use the *notation for stacked data*. I *cannot assume > equal variances* How can I code them? I am just a beginner for R > programming Thanks > -- > Joanna Thuc Quyen Nguyen > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. ______________________________________________ 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.