get_bids_entity | R Documentation |
Get 'BIDS' entity values from file
get_bids_entity(x, key, value_only = TRUE, ifnotfound = NULL)
get_bids_entity_rules(x)
x |
'BIDS' file path or parsed object; see 'Examples' |
key |
entity key |
value_only |
whether to return the value only; default is true; set
to |
ifnotfound |
default value to return is the entity is missing |
'BIDS' entity value or object, depending on value_only
Zhengjia Wang
# Quick usage
get_bids_entity("ieeg/sub-YAB_ses-01_task-AV_ieeg.mat", "sub")
get_bids_entity_rules("ieeg/sub-YAB_ses-01_task-AV_channels.tsv")
# Full usage
parsed <- parse_path_bids_entity(
path = "ieeg/sub-YAB_ses-01_task-AV_channels.tsv")
parsed$get_bids_entity("sub")
parsed$get_bids_entity_rules()
parsed$description
parsed$entities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.