Skip to content

mjfrigaard/pengbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pengbox

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/

├── box
│     └── graph
│         ├── wrangle
│         │     ├── clean
│         │     │     ├── import
│         │     │     │     └── raw.R
│         │     │     └── cols.R
│         │     └── vars.R
│         └── scatter.R
├── README.md
├── pengbox.Rproj
└── run.R

6 directories, 7 files

run.R

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()

Releases

No releases published

Packages

No packages published

Languages