height_to_mm: Pin Height to mm

View source: R/height_to_mm.R

height_to_mmR Documentation

Pin Height to mm

Description

turn any pin heights into mm, in a column named pin_height

Usage

height_to_mm(data)

Arguments

data

a data frame; must have a column named either 'height_cm' or 'height_mm'

Value

the original data frame, but if there was a 'height_cm' or 'height_mm' column, it is now named 'pin_height'. If original readings were in cm, they have been transformed into mm.

Examples

df <- data.frame(site = c("SET1", "SET2"), height_cm = c(15, 18))
height_to_mm(df)

df <- data.frame(site = c("SET1", "SET2"), height_mm = c(156, 182))
height_to_mm(df)

swmpkim/SETr documentation built on May 6, 2024, 11:15 p.m.