output: Read and Summarize Implan output

Description Usage Arguments See Also Examples

View source: R/output.R

Description

This wraps output_read_csv and output_combine. It also will assume nested directories represent dimensions of interest. For example, if the top-level directory contains no csv files, it will inspect sub-directories and append the subdirectory names to a "dimension" variable.

Usage

1

Arguments

dirname

directory name that stores files for selected activity

See Also

Other functions for implan output loading: output_combine(), output_format_tax(), output_read_csv()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
output_dir <- system.file("extdata", "output", package = "implan")

# we can see the nested struture of these files (i.e., multiple dimensions)
list.files(output_dir, recursive = TRUE)

# pull one dimension of results
dirname <- file.path(output_dir, "region1", "bike")
output(dirname)

# pull all results
df <- output(output_dir)

# parse dimensions
tidyr::separate(df, dimension, c("region", "act"), "/")

southwick-associates/implan documentation built on Feb. 28, 2020, 10:45 a.m.