Description Usage Arguments See Also Examples
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.
1 |
dirname |
directory name that stores files for selected activity |
Other functions for implan output loading:
output_combine()
,
output_format_tax()
,
output_read_csv()
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"), "/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.