At the unholy intersection of the tidyverse, the shinyverse, and
Microsoft Excel is the tibblefiddle
package, which allows you to
manually change values in a data.frame
object using shiny.
devtools::install_github("presagia-analytics/tibblefiddle")
Say you want to check whether or not the cars in the mtcars data set are aesthetic and/or practical.
library(tibblefiddle)
library(dplyr)
library(tibble)
# Take the `mtcars` model and tell if a car is aesthetic and/or practical.
my_pics <- mtcars %>%
head() %>%
mutate(make = rownames(.)) %>%
mutate(aesthetic = FALSE, practical = FALSE) %>%
tibblefiddle(
annotate_vars = c("aesthetic", "practical"),
hide_vars = c("mpg", "disp")
)
# The `aesthetic` and `practical columns in the `my_pics` dataframe reflect
# your choices.
my_pics
#> # A tibble: 6 ร 3
#> make aesthetic practical
#> <chr> <lgl> <lgl>
#> 1 Mazda RX4 TRUE TRUE
#> 2 Mazda RX4 Wag FALSE TRUE
#> 3 Datsun 710 FALSE FALSE
#> 4 Hornet 4 Drive TRUE FALSE
#> 5 Hornet Sportabout FALSE FALSE
#> 6 Valiant FALSE FALSE