
Annotate Data Frame with Column Descriptions
append_meta.Rd
Adds descriptions as comments to all columns in a given data frame.
Examples
results <- append_meta(
results = iris,
colname_descriptions = c(
"Sepal.Length" = "Length of the sepal in cm",
"Sepal.Width" = "Width of the sepal in cm",
"Petal.Length" = "Length of the petal in cm",
"Petal.Width" = "Width of the petal in cm",
"Species" = "Species of iris"
)
)
# Example to show column descriptions are stored as comments
comment(results$Sepal.Length)
#> [1] "Length of the sepal in cm"