nfactors {autonomics}R Documentation

stri_split and extract

Description

stri_split and extract

Usage

nfactors(x, sep = guess_sep(x))

split_extract(x, i, sep = guess_sep(x))

Arguments

x

string

sep

string

i

integer

Value

character

Examples

require(magrittr)
file <- download_data('halama18.metabolon.xlsx')
object <- read_metabolon(file, plot=FALSE)
x <- object$sample_id[1:5]
nfactors(x)
split_extract(x, 1:2)
split_extract(x, seq_len(nfactors(x)-1))
split_extract(x, nfactors(x))

# With NA values
split_extract(fdata(object)$PUBCHEM, 1, ';')

[Package autonomics version 1.1.7 Index]