Skip to content

Instantly share code, notes, and snippets.

@sankars
Created April 17, 2014 17:21
Show Gist options
  • Select an option

  • Save sankars/10999318 to your computer and use it in GitHub Desktop.

Select an option

Save sankars/10999318 to your computer and use it in GitHub Desktop.
Subset operations in R
# http://stackoverflow.com/questions/9860090/in-r-why-is-better-than-subset
subset(airquality, Month == 8 & Temp > 90)
airquality[airquality$Month == 8 & airquality$Temp > 90, ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment