Learn R Programming

MplusAutomation (version 1.2)

splitFilePath: Split File and Path into Separate Parts

Description

This is a helper function to split path into path and filename. Code adapted from R.utils filePath command.

Usage

splitFilePath(filepath, normalize = FALSE)

Value

A list with elements for the directory, filename, and absolute path.

Arguments

filepath

A character string of the file path

Examples

Run this code
  if (FALSE) {
  splitFilePath("dir1/subdir1/mplus1.inp")
  }

Run the code above in your browser using DataLab