Re: [R] Difficulty subsetting data frames using logical operators

2016-07-02 Thread John Kane
...@st-andrews.ac.uk > Sent: Fri, 1 Jul 2016 02:11:48 -0700 > To: r-help@r-project.org > Subject: [R] Difficulty subsetting data frames using logical operators > > So, I uploaded a data set via my directory using the command data <- > data.frame(read.csv("hw1_data.cs

Re: [R] Difficulty subsetting data frames using logical operators

2016-07-02 Thread Ulrik Stervbo
Hi Giles, Look at ?mean In addition it seems you need to read a few tutorials on R. Several are already mentioned on this list otherwise Google can direct. Hope this helps, Ulrik Giles Bischoff schrieb am Fr., 1. Juli 2016 18:55: > So, I uploaded a data set via my

Re: [R] Difficulty subsetting data frames using logical operators

2016-07-01 Thread David Winsemius
> On Jul 1, 2016, at 2:11 AM, Giles Bischoff wrote: > > So, I uploaded a data set via my directory using the command data <- > data.frame(read.csv("hw1_data.csv")) and then tried to subset that data > using logical operators. Specifically, I was trying to make it so that

Re: [R] Difficulty subsetting data frames using logical operators

2016-07-01 Thread jim holtman
You may need to re-read the Intro to R. data[data$Ozone > 31,] or subset(data, Ozone > 31) Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Fri, Jul 1, 2016 at 5:11 AM, Giles Bischoff

[R] Difficulty subsetting data frames using logical operators

2016-07-01 Thread Giles Bischoff
So, I uploaded a data set via my directory using the command data <- data.frame(read.csv("hw1_data.csv")) and then tried to subset that data using logical operators. Specifically, I was trying to make it so that I got all the rows in which the values for "Ozone" (a column in the data set) were