get_path_first: Get the text that comes before the last slash

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_generics_v1.R

Description

Extracts the path from a full path, removing the filename.

Usage

1
  get_path_first(inpath, addslash = "FALSE")

Arguments

inpath

A string of class character.

addslash

If TRUE, add a slash at the end of the path.

Value

outpath A string with the full path, without the file.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

get_path_last

Examples

1
get_path_first("/Users/nickm/Library/Psychotria_geog.data")

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.