View source: R/prepare_path_data.R
prepare_path_data | R Documentation |
This function gets a data frame containing path information as input. It
filters for rows with value "file" in column type
and keeps only the
columns path
and size
. If pattern
is not NULL
,
the data frame is then filtered for rows in which path
matches the
given pattern. Finally, the common root of all paths in column path
is
removed and the resulting data frame is returned.
prepare_path_data(path_info, pattern = NULL)
path_info |
data frame containing file path information as returned by
|
pattern |
pattern by which to select a subset of paths or |
data frame with columns path
and size
. See Description.
path_info <- kwb.utils::noFactorDataFrame( path = c("/path/to/root/", "/path/to/root/file_1", "/path/to/root/file_2"), type = c("directory", "file", "file"), size = c(0L, 10L, 20L) ) path_info kwb.fakin:::prepare_path_data(path_info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.