add_wh: Add width and height or x and y

add_whR Documentation

Add width and height or x and y

Description

Adds image dimensions width and height as variables to a data.frame of x and y corodiantes or vice versa.

Usage

add_wh(df, hrange = NULL)

add_xy(df, x = "x", y = "y")

Arguments

df

A data.frame that contains at least the two numeric variables x and y or width and height.

Value

Input data.frame with two additional variables named width and height or x and y.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.