bgmfiles: bgmfiles.

Description Usage Arguments Details Value Examples

View source: R/bgmfiles-package.r

Description

Raw data files are maintained here: https://github.com/AustralianAntarcticDivision/box-geometry-models.git

Return the full paths to all files in the extdata/bgm/ folder of this package.

Usage

1

Arguments

pattern

optional pattern string to filter files returned, see list.files for details

Details

This package contains a simple workflow to update from that source repo and install the raw files into extdata/ of the installed package.

Value

character vector of file paths

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## obtain all example files installed
bfiles <- bgmfiles()
print(basename(bfiles))

## filter based on an input pattern
afiles <- bgmfiles(pattern = "^antarc")
print(basename(afiles))

## read all the text from all files and table raw characters
## (for no reason)
lapply(bfiles, function(x) table(unlist(strsplit(paste(readLines(x), collapse = ""), ""))))

AustralianAntarcticDivision/bgmfiles documentation built on May 5, 2019, 9:21 a.m.