View source: R/track-attributes.R
emr_track.attr.export | R Documentation |
Returns attributes values of tracks.
emr_track.attr.export(track = NULL, attr = NULL, include_missing = FALSE)
track |
a vector of track names or 'NULL' |
attr |
a vector of attribute names or 'NULL' |
include_missing |
when TRUE - adds a row for tracks which do not have the 'attr' with NA, or tracks which do not exist. Otherwise tracks without an attribute would be omitted from the data frame, and an error would be thrown for tracks which do not exist. |
This function returns a data frame that contains attributes values of one or more tracks. The data frame is constituted of 3 columns named 'track', 'attr' and 'value'.
'track' parameter is optionally used to retrieve only the attributes of the specific track(s). If 'NULL', attributes of all the tracks are returned.
Likewise 'attr' allows to retrieve only specifically named attributes.
If both 'track' and 'attr' are used, the attributes that fulfill both of the conditions are returned
Overriding a track also overrides it's track attributes, the attributes will persist when the track is no longer overridden.
A data frame containing attributes values of tracks.
emr_track.attr.get
, emr_track.attr.set
emr_db.init_examples()
emr_track.attr.export()
emr_track.attr.set("sparse_track", "gender", "female")
emr_track.attr.set("sparse_track", "tag", "")
emr_track.attr.set("dense_track", "gender", "male")
emr_track.attr.export()
emr_track.attr.export(track = "sparse_track")
emr_track.attr.export(attr = "gender")
emr_track.attr.export(track = "sparse_track", attr = "gender")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.