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.

32 lines
673B

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