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

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

View source: R/BioGeoBEARS_generics_v1.R

Description

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

Usage

1

Arguments

fn

The input filename.

Value

prefix The output string.

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, get_path_first

Examples

1
2
get_fn_prefix("/Users/nickm/Library/R/Psychotria_geog.data")
get_fn_prefix("Psychotria_geog.data")

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