rhobo.treatments: Assign treatments

View source: R/rhobo.treatments.R

rhobo.treatmentsR Documentation

Assign treatments

Description

Create a new column for any data frame with lake treatments, based on lake names. Order the lakes by name (default) or treatment

Usage

rhobo.treatments(x, lakename = NULL, orderby = "number", order = NULL)

Arguments

x

Input dataset

lakename

Character string indicating the name of the column with the lake name information in the x dataset, or alternatively, the column index.

orderby

Choose one of c("number", "treatment", "quadrat", "own") to select the order of lakes. Default: "number".

order

Default = NULL, or must be a numeric vector with 16 numbers, specified by the user to choose an order, e.g., c(7,8,1:4, 6, 5, 9:16).

Author(s)

Rosalie Bruel


rosalieb/rhobo documentation built on Dec. 7, 2023, 10:43 p.m.