getCodelist: Find and import a codelist from a folder

Description Usage Arguments Value Note See Also

View source: R/getCodelist.R

Description

Loads the latest version of a codelist in a folder named according to the CALIBER codelist naming policy. The function searches through all subfolders of the folder.

Usage

1
getCodelist(folder = NULL, codelistname = NULL)

Arguments

folder

Folder in which to search for the codelist, or the name of the codelist if codelistname is NULL, in which case the function searches in the R working directory.

codelistname

The name (not filename) of the codelist

Value

Returns the a codelist object if the codelist is found, blank otherwise.

Note

This is a convenience function to avoid having to remember the exact location of a codelist file. If one of the arguments is null, the other argument is taken to be the codelist name and the function searches in the current working directory.

See Also

codelist


CALIBERcodelists documentation built on Feb. 28, 2020, 3:01 a.m.