addVarToCoords: Add variable to coordinates data.frame

addVarToCoordsR Documentation

Add variable to coordinates data.frame

Description

Adds variables to the coordinates data.frame in slot @coordinates.

Usage

addVarToCoords(object, ...)

## S4 method for signature 'SpatialData'
addVarToCoords(object, var_df, vars, overwrite = FALSE)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

var_df

Data.frame with the variables to merge.

vars

Character vector. Subset of variables to add.

overwrite

Logical value. Must be TRUE to allow overwriting.

Value

The updated input object, containing the added, removed or computed results.


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