Range of Data

Extract the subset of rows of the data frame where Ozone values are above 31 and Temp values are above 90. What is the mean of Solar.R in this subset?

Google search: “R subset values in one column above threshold”

This was a very helpful link:

[1] http://www.ats.ucla.edu/stat/r/faq/subset_R.htm

ProgrammingQuizW1_data_subset_range

This arrived at the correct answer:

ProgrammingQuizW1_data_subset_range_correctanswer

Advertisements

About Lisa Johnson

PhD candidate at UC Davis.
This entry was posted in Coursera, R. Bookmark the permalink.

2 Responses to Range of Data

  1. Kynan says:

    You are a life saver, been stressing over this and flicking through everything for ages.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s