inst/extdata/filter-species.R

# Simple program that reads in a dataset, modifies it and writes it out.
specInfo <- read.csv("sample-data.csv")
specFiltered <- subset(data, nutr >= "5")
outFile <- tempfile(fileext=".csv")
write.csv(specFiltered, file=outFile, row.names=FALSE)

Try the datapack package in your browser

Any scripts or data that you put into this service are public.

datapack documentation built on Aug. 29, 2017, 5:08 p.m.