data-raw/ProcessData_taxa_bugs_genus.R

# Prepare data for example for MMIcalc.R;
#
# Sample Taxa - Bugs - Genus
#
# [email protected]
# 20170601
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# 0. Prep ####
# library(devtools)
wd <- getwd()
# assume wd is package root

# 1. Get data and Process #####
# 1.1. Import Data
myFile <- "taxa_bugs_genus.tab"
data.import <- read.delim(file.path(".","data-raw",myFile))
# 1.2. Process Data
View(data.import)
names(data.import)
dim(data.import)

##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2. Save as RDA for Use in Package ####
#
taxa_bugs_genus <- data.import
devtools::use_data(taxa_bugs_genus, overwrite = TRUE)
leppott/MMIcalc documentation built on Aug. 18, 2017, 8:14 p.m.