.convertNa | R Documentation |
This function converts/standardizes names of 'query' to standard names from 'ref' (list of possible names (char vect) where names define standardized name). It takes 'query' as character vector and return character vecor (same length as 'query') with 'converted/corrected' names
.convertNa(query, ref, partMatch = TRUE)
query |
(matrix or data.frame, min 2 columns) main input |
ref |
(list) list of multiple possible names associated to given group, reference name for each group is name of list |
partMatch |
(logical) allows partial matching (ie name of 'ref' must be in head of 'query') |
This function returns a character vector
daPa <- matrix(c(1:5,8,2:6,9), ncol=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.