ghdecompose: ghdecompose

ghdecomposeR Documentation

ghdecompose

Description

Decomposes a path of a set of files (or dirs) in several parts:

Usage

ghdecompose(files, dirs = FALSE)

Arguments

files

character vector: path of files

dirs

logical: directory or files names (default: FALSE)

Details

  • outpath the path part which is common to all files (basically the place where the ZIP file was extracted)

  • inpath the path part which is not necessary for a unique address in teh ZIP file

  • minpath the minimal path part such that all files addressable in unique manner,

  • filename the basename of the file, and

  • source the input to shortpath.

Value

a data frame with five variables

Examples

ghget("local")
pdf <- ghdecompose(ghlist(full.names=TRUE))
pdf

mmstat4 documentation built on May 29, 2024, 11:15 a.m.