Convert Lists to Atomic Vectors Where Possible
atomize(x, ...)# S3 method for networkLite
atomize(x, ..., upcast = FALSE)
# S3 method for tbl_df
atomize(x, ..., upcast = FALSE)
The networkLite
or tibble
with list columns replaced by
atomic vector columns where possible.
A networkLite
or tibble
object.
additional arguments
logical; are we allowed to upcast atomic types when converting lists to atomic vectors?
The tibble
method examines each column of the tibble
and replaces the column with the result of calling unlist
on
the column if all of the following are true: the column
is.list
of length greater than zero, each element of which
is.atomic
of length one, and either upcast
is
TRUE
or there is only one unique class among all elements
of the column.
The networkLite
method applies the tibble
method to
the edgelist and vertex attribute tibble
s in the
networkLite
.