You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
827B

  1. % Generated by roxygen2 (4.0.1): do not edit by hand
  2. \encoding{UTF-8}
  3. \name{loadLabelsFromFile}
  4. \alias{loadLabelsFromFile}
  5. \title{Load labels from a flat file}
  6. \usage{
  7. loadLabelsFromFile(dataframe, file)
  8. }
  9. \arguments{
  10. \item{dataframe}{The dataframe to which you want to assign labels}
  11. \item{file}{The flat file from which to load the label data}
  12. }
  13. \value{
  14. The dataframe with label attributes
  15. }
  16. \description{
  17. Loads label values from a flat file and applies them to the provided dataframe
  18. }
  19. \details{
  20. This function takes a dataframe and adds label attributes to the variables.
  21. The file must be formatted like so :
  22. variablename = "Label for the variable"
  23. with one line per variable
  24. As always, be careful of the case sensitiveness and the use of double quotes !
  25. }
  26. \examples{
  27. \dontrun{df <- loadLabelsFromFile(df,"labels.txt")}
  28. }