This is an example project using the box
R package. Read more about how to use box
on the package website or in my blog post.
├── box
│ └── graph
│ ├── wrangle
│ │ ├── clean
│ │ │ ├── import
│ │ │ │ └── raw.R
│ │ │ └── cols.R
│ │ └── vars.R
│ └── scatter.R
├── README.md
├── pengbox.Rproj
└── run.R
6 directories, 7 files
The run.R
file includes the following:
# import
box::use(box/graph/wrangle/clean/import/raw)
str(raw$csv(), give.attr = FALSE)
# clean columns
box::use(box/graph/wrangle/clean/cols)
names(cols$snakes())
# wrangle variables
box::use(box/graph/wrangle/vars)
str(vars$scatter())
# graph
box::use(box/graph/scatter)
scatter$ggp2()