Learn R Programming

teachingApps (version 1.0.8)

gadget_clean_columns: Visually remove columns from data set

Description

Shiny gadget used to visually inspect columns in a data set and select columns to remove

Usage

gadget_clean_columns(
  data,
  rownames = TRUE,
  theme = "flatly",
  width = "100%",
  height = "600px",
  css = NULL
)

Arguments

data

A data set

rownames

logical Should rownames be included?

theme

character A bootswatch theme provided to shinythemes::shinytheme

width

character Width of the gadget (in valid css units)

height

character Height of the gadget (in valid css units)

css

character Path to a custom css file

Value

A list of length 2

data

A data.frame containing the columns that were not removed

script

A line of code that can be used to replicate cleaning performed in the gadget

A printed shiny app

Examples

Run this code
# NOT RUN {
clean_columns(mtcars)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab