Learn R Programming

atlantistools (version 0.4.3)

convert_factor: Function to convert any column with information about functional groups to a factor whose levels use the LongName of the functional groups file.

Description

This function is used to match the labels of the plots!

Usage

convert_factor(data_fgs, col)

Arguments

data_fgs

Dataframe with information about functionalGroups. Usually loaded with load_fgs().

col

Column of the dataframe which is converted to a factor.

Value

Column of a dataframe in factor format.

See Also

Other convert functions: convert_bgm, convert_time