FreesearchR/man/remove_empty_cols.Rd

23 lines
476 B
Text
Raw Normal View History

2025-02-19 13:17:16 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{remove_empty_cols}
\alias{remove_empty_cols}
\title{Removes columns with completenes below cutoff}
\usage{
remove_empty_cols(data, cutoff = 0.7)
}
\arguments{
\item{data}{data frame}
\item{cutoff}{numeric}
}
\value{
data frame
}
\description{
Removes columns with completenes below cutoff
}
\examples{
2025-03-24 14:43:50 +01:00
data.frame(a = 1:10, b = NA, c = c(2, NA)) |> remove_empty_cols(cutoff = .5)
2025-02-19 13:17:16 +01:00
}