mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 09:59:39 +02:00
22 lines
415 B
Text
22 lines
415 B
Text
|
% 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()
|
||
|
}
|