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

Description Usage Arguments 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

Examples

1
2
3
4
5
6
7
8
9
library(tidyverse)

idbank_list = get_idbank_list() #idbank list

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

hadrilec2/insee documentation built on Aug. 10, 2020, 1:53 a.m.