select_list: Select elements of a named list

Description Usage Arguments Value See Also Examples

Description

select elements of a named list using a regex on the name.

Usage

1

Arguments

list

A named list

regex

A regular expression used to select elements

Value

subset of the original list where the name matches regex

See Also

Other load tcx functions: load_tcx_dir, load_tcx_file, merge_list, selectdf

Examples

1
2
3
4
5
6
7
8
select(list("a" = 1, "abba" = 2, "b" = 3), "a")
    $ a   : num 1
    $ abba: num 2
select(list("a" = 1, "abba" = 2, "b" = 3), "b")
    $ abba: num 2
    $ b   : num 3
select(list("a" = 1, "abba" = 2, "b" = 3), "[[:alpha:]]{4}")
    $ abba: num 2

VCCRI/CardiacProfileR documentation built on May 25, 2019, 2:22 p.m.