TAF-package | R Documentation |
General framework to organize data, methods, and results used in reproducible
scientific analyses. A TAF analysis consists of four scripts (data.R
,
model.R
, output.R
, report.R
) that are run sequentially.
Each script starts by reading files from a previous step and ends with
writing out files for the next step.
Convenience functions are provided to version control the required data and software, run analyses, clean residues from previous runs, manage files, manipulate tables, and produce figures. With a focus on stability and reproducible analyses, the TAF package comes with no dependencies. TAF forms a base layer for the icesTAF package and other scientific applications.
The following diagram describes the general workflow of every TAF analysis:
See vignette("TAF")
for more detailed coverage on how to organize and
run TAF workflows.
Initial TAF steps:
draft.data | draft DATA.bib file |
draft.software | draft SOFTWARE.bib file |
period | paste period string for DATA.bib |
taf.boot | set up data files and software |
taf.example | copy example analysis from TAF package |
taf.skeleton | create empty TAF template |
Running scripts:
clean | clean TAF directories |
clean.boot | clean boot directory |
make | run R script if needed |
make.all | run all TAF scripts as needed |
make.taf | run TAF script if needed |
msg | show message |
source.all | run all TAF scripts |
source.taf | run TAF script |
File management:
convert.spaces | convert spaces |
cp | copy files |
mkdir | create directory |
os.linux | operating system |
os.macos | operating system |
os.windows | operating system |
read.taf | read CSV file |
source.dir | source all *.R files |
taf.library | load package from TAF library |
taf.unzip | unzip file |
write.taf | write CSV file |
Tables:
ddim | show data dimensions |
div | divide column values |
flr2taf | convert FLR to TAF |
long2taf | convert long format to TAF |
long2xtab | convert long format to crosstab |
plus | rename plus group column |
rnd | round column values |
sam2taf | convert SAM to TAF |
taf2html | convert data frame to HTML |
taf2long | convert TAF to long format |
taf2xtab | convert TAF to crosstab |
tt | transpose TAF table |
xtab2long | convert crosstab to long format |
xtab2taf | convert crosstab to TAF |
Plots:
lim | compute axis limits |
taf.colors | predefined colors |
taf.png | open PNG graphics device |
zoom | change lattice text size |
Example tables:
catage.long | long format |
catage.taf | TAF format |
catage.xtab | crosstab format |
summary.taf | summary results |
Example workflow:
linreg | simple linear regression |
Administrative or specialized tools:
check.software | check global package versions |
clean.data | clean boot data |
clean.library | clean TAF library |
clean.software | clean TAF software |
deps | workflow dependencies |
detach.packages | detach all packages |
dos2unix | convert line endings |
download | download file |
download.github | download repository |
draft.readme | draft introductory readme |
file.encoding | examine file encoding |
get.remote.sha | look up SHA code |
git.repo | read Git repository name |
is.r.package | check if file is an R package |
latin1.to.utf8 | convert file encoding |
line.endings | examine line endings |
pdeps | package dependencies |
read.bib | read metadata entries |
rmdir | remove empty directory |
taf.boot.path | construct path to boot folder |
taf.data.path | construct path to boot data files |
taf.install | install package in TAF library |
taf.libPaths | add TAF library to search path |
taf.libraries | load all packages from TAF library |
taf.session | show session information |
taf.sources | list metadata entries |
unix2dos | convert line endings |
utf8.to.latin1 | convert file encoding |
Arni Magnusson, Colin Millar, and Iago Mosqueira.
See vignette("TAF")
for an introduction to the TAF package.
The TAF Wiki provides additional help resources.
## Not run:
taf.example("linreg")
setwd("linreg")
taf.boot()
source.all()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.