mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
21 lines
597 B
Text
21 lines
597 B
Text
|
|
% 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
|
||
|
|
}
|