gather_attrs moves variable-level attributes to the data frame level and
spread_attrs reverses that operation.
1 2 3
A data frame.
import attempts to standardize the return value from the various import functions to the extent possible, thus providing a uniform data structure regardless of what import package or function is used. It achieves this by storing any optional variable-related attributes at the variable level (i.e., an attribute for
mtcars$mpg is stored in
attributes(mtcars$mpg) rather than
gather_attrs moves these to the data frame level (i.e., in
spread_attrs moves attributes back to the variable level.
x, with variable-level attributes stored at the data frame level.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.