Description Usage Arguments Value Examples
View source: R/exclude_empty_observations.R
Exclude empty observations
1 | exclude_empty_observations(df, columns)
|
df |
Dataframe |
columns |
Columns to be considered |
The dataframe, where observations are removed if they are completely empty or 0
1 2 3 4 | df <- data.frame(a = c(0, 2, 0),
b = c(0, 3, 0),
c = c(NA, 1, 2))
exclude_empty_observations(df, c("a", "b", "c"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.