Learn R Programming

GGIR (version 3.2-0)

getfolderstructure: Extracts folderstructure based on data directory.

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

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

Value

List with items:

  • fullfilenames: vector with all full paths to the folders including the name of the file itself

  • foldername: vector with only the names of the folder in which each file is stroed (so only the most distal folder in the folder tree).

Arguments

datadir

Argument datadir as used in various other functions in GGIR

referencefnames

vector with filename to filter on

Examples

Run this code
  if (FALSE) {
    folderstructure = getfolderstructure(datadir)
  }

Run the code above in your browser using DataLab