transferAttributes | R Documentation |
Preserves data.frame attributes.
transferAttributes(d, dsub)
d |
A data.frame or tibble that follows RANADU conventions. |
dsub |
A second data.frame or tibble, often a subset of the first, with variables that all appear in the first. |
Given a RANADU-convention reference data.frame or tibble and a second (usually subset) data.frame, this function transfers the attributes to variables in the second from the same variables in the first. This avoids the loss of attributes that often occurs when subset data.frames are constructed.
A modified tibble or data.frame with attributes added to match those in the original data.frame.
William Cooper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.