unpack_traces | R Documentation |
unpack_traces()
is deprecated. Please use the more general
unpack_obj()
function.
unpack_traces(object, ...)
## S3 method for class 'traces_dm'
unpack_traces(object, ..., unpack = TRUE)
## S3 method for class 'traces_dm_list'
unpack_traces(object, ..., unpack = TRUE, conds = NULL)
object |
an object of type |
... |
further arguments passed on to the respective method. |
unpack |
logical, indicating if the |
conds |
optional character, indicating specific condition(s). The
default |
unpack_traces()
was a generic function to strip away the "unnecessary"
information of traces_dm_list
and traces_dm
objects. These objects are
created when calling simulate_traces()
.
For traces_dm_list
, unpack_traces()
returns the
requested conditions (see the argument conds
). The result contains
objects of type traces_dm
if unpack = FALSE
. For unpack = TRUE
,
the result contains the plain arrays with the traces.
For traces_dm_list
, the returned value is a list, if conds
specifies more
than one condition. For example, if conds = c("foo", "bar")
, then the
returned value is a list with the two (named) entries "foo" and "bar". If
the returned list would only have one entry (either because the
traces_dm_list
has only one condition, see conds, or because a
user explicitly requested only one condition), then the underlying
array or traces_dm
object is returned directly.
For traces_dm
, unpack_traces()
returns an array with the traces, if
unpack=TRUE
. If unpack=FALSE
, the unmodified object is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.