FreesearchR/man/remove_na_attr.Rd
Andreas Gammelgaard Damsbo e9422a418b
Some checks failed
pkgdown.yaml / pkgdown (push) Has been cancelled
docs
2025-03-24 14:43:50 +01:00

23 lines
423 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{remove_na_attr}
\alias{remove_na_attr}
\title{Remove NA labels}
\usage{
remove_na_attr(data, attr = "label")
}
\arguments{
\item{data}{data}
}
\value{
data.frame
}
\description{
Remove NA labels
}
\examples{
ds <- mtcars |> lapply(\(.x) REDCapCAST::set_attr(.x, label = NA, attr = "label"))
ds |>
remove_na_attr() |>
str()
}