FreesearchR/man/apply_labels.Rd

21 lines
597 B
Text
Raw Permalink Normal View History

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-labels.R
\name{apply_labels}
\alias{apply_labels}
\title{Apply a named label vector to a data frame}
\usage{
apply_labels(df, labels)
}
\arguments{
\item{df}{A data frame.}
\item{labels}{A named character vector (names = column names, values = labels).
Typically the output of \code{\link[=extract_labels]{extract_labels()}}. Labels for absent columns are
silently ignored.}
}
\value{
\code{df} with \code{"label"} attributes set on matching columns.
}
\description{
Apply a named label vector to a data frame
}