Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rsml (version 1.3)

addRootToPlant: Add a root to an existing plant. Returns the plant with the added root

Description

Add a root to an existing plant. Returns the plant with the added root

Usage

addRootToPlant(pl, ro)

Arguments

pl
the plant to add the root to
ro
the root object to add to the plant.

Value

the new plant, with the added root

Examples

Run this code
data(lupin)
r <- root()
lupin <- addRootToPlant(lupin, r)

Run the code above in your browser using DataLab