clean_table: Remove columns filled only with NA (missing value)

Description Usage Arguments Value Examples

View source: R/clean_table.R

Description

Remove columns filled only with NA (missing value)

Usage

1

Arguments

df

the dataframe to be cleaned

Value

a dataframe without columns containing only NA

Examples

1
2
3
4
5
6
7
library(tidyverse)

idbank_empl =
 get_idbank_list("EMPLOI-SALARIE-TRIM-NATIONAL") %>% #employment
 mutate(title = get_insee_title(idbank)) %>%
 separate(title, sep = " - ", into = paste0("title", 1:5), fill = "right") %>%
 clean_table()

hadrilec/insee documentation built on Oct. 13, 2021, 12:03 p.m.