extract_fn_from_path: Get the filename from a path

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mod09nrt.R

Description

The filename is split on slashes, and the last item is taken; this should be just the filename.

Usage

1
extract_fn_from_path(fn_with_path)

Arguments

fn_with_path

The filename, with partial or full path

Value

fn The extracted filename

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

See Also

strsplit

Examples

1
2
3
fn_with_path = "/Library/Frameworks/R.framework/Versions/2.15/Resources/library/modiscloud/extdata
/2002raw/MYD35_L2.A2002185.1910.005.2007206043609.hdf"
extract_fn_from_path(fn_with_path)

mod09nrt documentation built on May 29, 2017, 6:08 p.m.

Search within the mod09nrt package
Search all R packages, documentation and source code