mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 18:09:39 +02:00
24 lines
516 B
R
24 lines
516 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/data_plots.R
|
|
\name{get_label}
|
|
\alias{get_label}
|
|
\title{Print label, and if missing print variable name}
|
|
\usage{
|
|
get_label(data, var = NULL)
|
|
}
|
|
\arguments{
|
|
\item{data}{vector or data frame}
|
|
}
|
|
\value{
|
|
character string
|
|
}
|
|
\description{
|
|
Print label, and if missing print variable name
|
|
}
|
|
\examples{
|
|
mtcars |> get_label(var = "mpg")
|
|
mtcars |> get_label()
|
|
mtcars$mpg |> get_label()
|
|
gtsummary::trial |> get_label(var = "trt")
|
|
1:10 |> get_label()
|
|
}
|