nfactors | R Documentation |
stri_split and extract
nfactors(x, sep = guess_sep(x))
split_extract_fixed(x, sep, i)
split_extract_regex(x, sep, i)
split_extract(x, i, sep = guess_sep(x))
x |
character vector |
sep |
string |
i |
integer |
character vector
# Read
file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
x <- object$sample_id[1:5]
nfactors(x)
# Split
split_extract_fixed(x, '.', 1:2)
split_extract_fixed(x, '.', seq_len(nfactors(x)-1))
split_extract_fixed(x, '.', nfactors(x))
split_extract_fixed(fdt(object)$PUBCHEM, ';', 1) # with NA values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.