Description Usage Arguments Value Author(s) Examples
View source: R/add_to_metadata.R
Add new items to metadata, effectively a dplyr::bind_rows on top of current metadata
1 2 | add_to_metadata(metadata = meta, code, name, label = NA, value = NA,
class = "numeric")
|
metadata |
metadata data.frame |
code |
variable code of the new var in data |
name |
a more expressive variable name |
label |
vector of labels for each value |
value |
each value as a vector |
class |
class of the new vector as |
data.frame
Markus Kainu <markuskainu@gmail.com>
1 2 3 4 | ## Not run:
add_to_metadata(metadata=meta, code = "sex", name = "Repondents sex", label=c("male","female"), value=c(1:2), class="factor")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.