Description Usage Arguments Details Value Author(s)
selectRows returns row indices of a data.frame matching column-value criteria
1 |
meta |
a data.frame from which to select rows |
criteria |
a list of named vectors, where the names correspond to columns of meta, and the elements are values of those columns to include. NA is a permissible value. Logically, the values within each element of criteria act as an OR; values between elements are treated as an AND. |
rownames |
logical; if TRUE, rownames are returned rather than numeric indices |
not |
character vector specifying names of criteria where only rows of meta that do NOT include the elements specified in the criteria list |
reorder |
logical; if TRUE, reorder the row indices by the values of the columns specified by criteria, applied in order |
The criteria are applied in order, so this will run faster if the most exclusive criteria are applied first. However, the reorder option orders the indices according to the order of the criteria annotations
Returns a vector of numeric row indices (rownames==FALSE) or character rownames of meta that matched the criteria specified
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.