Learn R Programming

madrat (version 3.15.6)

cleanComment: cleanComment

Description

Helper function to clean a comment from additional metadata information

Usage

cleanComment(
  x,
  remove = c("unit", "description", "comment", "origin", "creation date", "note")
)

Arguments

x

magclass object the comment should be read from

remove

Vector of categories to be removed

Author

Jan Philipp Dietrich

Examples

Run this code
x <- maxample("animal")
getComment(x) <- c("unit: bla", "comment: hallo", "blub: ble")
madrat:::cleanComment(x)

Run the code above in your browser using DataLab