knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
stickyr provides data frames that hold certain columns and attributes persistently for data processing in dplyr. It can also hide specific columns.
install.packages("stickyr")
You can install the development version of stickyr from GitHub with:
# install.packages("devtools") devtools::install_github("UchidaMizuki/stickyr")
library(stickyr) library(dplyr) sticky_starwars <- new_sticky_tibble(dplyr::starwars, cols = c(height, mass, birth_year), col_show = !birth_year, col_summary = list(height = mean, mass = sum, birth_year = median)) sticky_starwars
sticky_starwars |> select(name, species)
sticky_starwars |> group_by(species) |> summarise()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.