In R, you can create a sub dataframe based on the values of specific columns using the subset() function or using dplyr package.
Using subset():
main.r161 chars9 lines
Using dplyr:
main.r201 chars12 lines
Both of these methods create a sub dataframe where only the rows that meet the condition specified in the subset() or filter() function are included.
gistlibby LogSnag