Learn R Programming

PCMBase (version 1.2.14)

PCMListMembers: A vector of access-code strings to all members of a named list

Description

A vector of access-code strings to all members of a named list

Usage

PCMListMembers(
  l,
  recursive = TRUE,
  format = c("$", "$'", "$\"", "$`", "[['", "[[\"", "[[`")
)

Value

a vector of character strings denoting each named member of the list.

Arguments

l

a named list object.

recursive

logical indicating if list members should be gone through recursively. TRUE by default.

format

a character string indicating the format for accessing a member. Acceptable values are c("$", "$'", '$"', '$`', "[['", '[["', '[[`') of which the first one is taken as default.

Examples

Run this code
PCMListMembers(PCMBaseTestObjects$model_MixedGaussian_ab)
PCMListMembers(PCMBaseTestObjects$model_MixedGaussian_ab, format = '$`')
PCMListMembers(PCMBaseTestObjects$tree.ab, format = '$`')

Run the code above in your browser using DataLab