na2empty {pivotea} | R Documentation |
replace NA character into ""
Description
replace NA character into ""
Usage
na2empty(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 = Inf)
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.2 Index]