In R, you can index rows based on values from one column using the subset() function. Here is an example:
251 chars9 lines
In the above example, the subset() function is used to index rows where the 'Age' column value is greater than 25. This will return a new data frame with only the rows that meet the specified condition.
gistlibby LogSnag