Pick the given or first (alpha sorted) plot from a ViewFullTable.

pick_plotname(vft, plot_nm = NULL)

Arguments

vft

Dataframe; particularly a ForestGEO ViewFullTable.

plot_nm

Length-1 character vector of the value of PlotName (or plotname) to pick from vft.

Value

A dataframe.

See also

Other functions to pick or drop rows of a ForestGEO dataframe: drop_twice_dead

Examples

vft <- data.frame(PlotName = c("a", "b"), stringsAsFactors = FALSE) pick_plotname(vft)
#> Using: a.
#> PlotName #> 1 a
pick_plotname(vft, "b")
#> Using: b.
#> PlotName #> 2 b