I have a data file with 3 columns and I need to take only 2, how to do that ? [[alternative HTML version deleted]]
I'm not quite sure what you mean, but if you are wanting to select columns of a data frame, have a look at> help("[")David On 13/10/06, laba diena <juscio at gmail.com> wrote:> I have a data file with 3 columns and I need to take only 2, how to do that > ? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >-- ================================David Barron Said Business School University of Oxford Park End Street Oxford OX1 1HP
I suggest you look at one of the guides: http://cran.r-project.org/other-docs.html before answering questions like this to the mailing list... please read the posting guide! laba diena schrieb:> I have a data file with 3 columns and I need to take only 2, how to do that > ? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. > > >
--- laba diena <juscio at gmail.com> wrote:> I have a data file with 3 columns and I need to take > only 2, how to do thatHave a look at the manual? An Introduction to R 2.7 Index vectors; selecting and modifying subsets of a data set