build_jurisdiction: Create new jurisdiction data frame.

Description Usage Arguments Details Value Examples

Description

Create new jurisdiction data frame.

Usage

1
build_jurisdiction(stocfile.names)

Arguments

stocfile.names

A character vector of *.STF files.

Details

This combines all stocks found in the stocfiles listed along with the currently available jurisdiction data frame. The user can then see what stocks are missing from the jurisdiction data frame and update the country and jurisdiction columns for those new stocks.

Value

A data frame comprising unique row for each stock in the *.STF files and those found in the jurisdiction.rda file.

Examples

1
2
3
4
5
6
7
8
## Not run: 
path <- "."
stocfile.names <- list.files(path = path, pattern = "*.STF$", full.names = TRUE)
jurisdiction <- build_jurisdiction(stocfile.names)
View(jurisdiction)
jurisdiction[is.na(jurisdiction$stock.country),]

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.