omit_na_cols {pivotea}R Documentation

Remove all NA cols

Description

Remove all NA cols

Usage

omit_na_cols(df)

Arguments

df

A dataframe.

Value

A dataframe.

Examples

library(tidyr)
library(dplyr)
library(purrr)
library(ggplot2)
hogwarts %>%
  pivot(row = "hour", col = "wday", 
        value = c("subject", "teacher", "room"), 
        split = c("house", "grade"))
hogwarts %>%
  pivot(row = "hour", col = "wday", 
        value = c("subject", "room", "house", "grade"), 
        split = c("teacher"))
starwars %>%
  pivot(row = "homeworld", col = "species", value = "name", split = "sex")
msleep %>%
  pivot(row = "vore", col = "conservation", value = "name") %>%
  na2empty() %>%
  print(n = nrow(.))
tibble::as_tibble(Titanic) %>%
  pivot(row = "Age", col = c("Sex", "Survived"), 
        value = "n", split = "Class")
diamonds %>%
  pivot(row = "cut", col = "color", value = "price", split = "clarity")


[Package pivotea version 1.0.1 Index]