Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.44 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.44 KB

tidbits

The goal of tidbits is to package up some utility functions that have proven useful in multiple data analysis projects and teaching, so they can be properly documented and more easily deployed. Including autoread() function which wraps readers for a wide variety of data formats so the same script can run on different files without editing the file-loading code.

Installation

You can install tidbits from github with:

# install.packages("devtools")
devtools::install_github("bokov/tidbits")

Example

This is a basic example which shows you how to solve a common problem:

library(tidbits);
#> 
#> Attaching package: 'tidbits'
#> The following object is masked from 'package:grDevices':
#> 
#>     cm
# Read data from the NAACCR website ...
dat00 <- autoread('https://www.naaccr.org/wp-content/uploads/2017/02/naaccr_cina_2009_2013_stage.sas7bdat');
# Build an automatic data dictionary
dct0 <- tblinfo(dat00)

Travis-CI Build Status Coverage Status AppVeyor Build Status