Learn R Programming

BioGeoBEARS (version 0.2.1)

get_fn_prefix: Get everything BEFORE the last suffix (.nex or whatever)

Description

Extracts the string from before the last suffix. I.e., "filename.nex" becomes "filename".

Usage

get_fn_prefix(fn)

Arguments

fn
The input filename.

Value

prefix The output string.

References

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

Matzke_2012_IBS

See Also

get_path_last, get_path_first

Examples

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

Run the code above in your browser using DataLab