Learn R Programming

BioGeoBEARS (version 0.2.1)

get_path_first: Get the text that comes before the last slash

Description

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

Usage

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.

References

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

Matzke_2012_IBS

See Also

get_path_last

Examples

Run this code
get_path_first("/Users/nickm/Library/Psychotria_geog.data")

Run the code above in your browser using DataLab