lattach | R Documentation |
Loads an EDF and any associated annotation files from a
sample-list
loaded by lsl
.
lattach(sl, idx = "")
sl |
a sample-list as loaded by |
idx |
either an integer number (in which case, it means to attach the EDF/annotations specified on that row of the sample-list), or a string value (in which case, it is interpreted as the ID of the individual/EDF to be attached) |
No explicit return value: this command sets the in-memory EDF
representation to reflect this EDF header/file, by calling ledf
As well as attaching that EDF, this calls lstat
to display some
basic information about it. If the index or ID is out-of-range/not found, this
command will give an error
Unlike many R functions, lattach()
does not return an object that represents the
data (i.e. the EDF). Rather, lunaR
is designed to operate on one EDF at a time;
attached EDFs can be displayed with the lstat
function. Attaching a new EDF
effectively detaches any previously attached EDF.
## Not run:
> lattach(sl, 2)
nsrr02 : 14 signals, 10 annotations, of 09:57:30 duration
> lattach(sl, "nsrr02")
nsrr02 : 14 signals, 10 annotations, of 09:57:30 duration
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.