hemilist.from.prefixed.list: Create a hemilist from a named list with keys prefixed with...

View source: R/hemilist.R

hemilist.from.prefixed.listR Documentation

Create a hemilist from a named list with keys prefixed with 'lh_' and 'rh_'.

Description

A hemilist is a named list with entries 'lh' and/or 'rh', see hemilist.

Usage

hemilist.from.prefixed.list(
  named_list,
  report_ignored = TRUE,
  return_ignored = FALSE
)

Arguments

named_list

a named list, the keys must start with 'lh_' or 'rh_' to be assigned to the 'lh' and 'rh' entries of the returned hemilist. Other entries will be ignored.

report_ignored

logical, whether to print a message with the ignored entries, if any.

return_ignored

logical, whether to add a key 'ignored' to the returned hemilist, containing the ignored entries.

Value

a hemilist

See Also

Other hemilist functions: hemilist(), hemilist.derive.hemi(), hemilist.get.combined.data(), hemilist.unwrap(), hemilist.wrap(), is.hemilist()


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.