FreesearchR/man/remove_na_attr.Rd

24 lines
423 B
Text
Raw Normal View History

2025-01-16 11:45:04 +01:00
% 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{
2025-03-24 14:43:50 +01:00
ds <- mtcars |> lapply(\(.x) REDCapCAST::set_attr(.x, label = NA, attr = "label"))
ds |>
remove_na_attr() |>
str()
2025-01-16 11:45:04 +01:00
}