Learn R Programming

raptr (version 0.0.3)

space.held: Extract attribute space held for a solution

Description

This function returns the attribute space held for each species in a solution.

Usage

space.held(x, y, species, space)

# S3 method for RapSolved space.held(x, y = 0, species = NULL, space = NULL)

Arguments

x

RapResults or RapSolved object.

y

NULL to return all values, integer 0 to return values for best solution, integer value greater than 0 for y'th solution value.

species

NULL for all species or integer indicating species.

space

NULL for all spaces or integer indicating a specific space.

Value

codematrix object.

See Also

RapResults, RapSolved.

Examples

Run this code
# NOT RUN {
data(sim_rs)
# space held (\%) for each species in best solution
space.held(sim_rs, 0)
# space held (\%) for each species in second solution
space.held(sim_rs, 2)
# space held (\%) for each species in each solution
space.held(sim_rs)
# }

Run the code above in your browser using DataLab