load_mapfile: Load mapfile

load_mapfileR Documentation

Load mapfile

Description

Loads a mapfile in different ways.

Usage

load_mapfile(path = NULL, type = NULL, s3bucket = "cm2data")

Arguments

type

see above. Currently only used to specify a local RDS file by setting type to 'local'.

s3bucket

see path. When type is not local, path is the name of an s3 file and s3bucket is the name of the bucket.

path.

If path is NULL, an empty map is returned. If path ends with xlsx, this is the path to an xlsx file. If type is 'local', path must be a valid path to an RDS file. Otherwise, path must be the name of an s3 file in the specified s3 bucket.

Value

A valid causal map.

Examples

load_mapfile() # returns an empty map.

stevepowell99/CausalMapFunctions documentation built on Oct. 12, 2023, 11:13 a.m.