getfolderstructure: Extracts folderstructure based on data directory.

Description Usage Arguments Value Examples

View source: R/getfolderstructure.R

Description

Extracts folderstructure based on data directory. This is used when accelerometer files are stored in a hierarchical folder structure and the user likes to have a reference to the exact position in the folder tree, rather than just the filename. Function not intended for direct use by package user.

Usage

1
getfolderstructure(datadir=c(),referencefnames=c())	

Arguments

datadir

Argument datadir as used in various other functions in GGIR

referencefnames

vector with filename to filter on

Value

List with items: itemfullfilenamesvector with all full paths to the folders including the name of the file itself itemfoldernamevector with only the names of the folder in which each file is stroed (so only the most distal folder in the folder tree)

Examples

1
2
3
4
## Not run: 
folderstructure = getfolderstructure(datadir)

## End(Not run)

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.