...@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
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 directory using the command
> 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 I
> got all the rows in
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
wrote:
> So, I up
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 grea
5 matches
Mail list logo