Skip to contents

Coerce columns to factors

Usage

convert_to_factor(
  x,
  to_fact = c("rep", "plot", "loc", "block", "trial", "row", "col", "type", "check",
    "clone", "geno")
)

Arguments

x

a dataframe

to_fact

a vector of column names to coerce to factor

Value

a dataframe