This function sets or returns the attribute space targets for each species.

space.target(x, species, space)

space.target(x, species, space) <- value

# S3 method for RapData
space.target(x, species = NULL, space = NULL)

# S3 method for RapData
space.target(x, species = NULL, space = NULL) <- value

# S3 method for RapUnsolOrSol
space.target(x, species = NULL, space = NULL)

# S3 method for RapUnsolOrSol
space.target(x, species = NULL, space = NULL) <- value

Arguments

x

RapData(), RapUnsolved(), or RapSolved() object.

species

NULL for all species or integer indicating species.

space

NULL for all spaces or integer indicating a space.

value

numeric new target.

Value

A numeric or matrix objects.

Examples

# \dontrun{
# load data
data(sim_rs)

# extract space targets for all species
space.target(sim_rs)
#>            1
#> uniform 0.85
#> normal  0.85
#> bimodal 0.85

# set space targets for all species
space.target(sim_rs) <- 0.1

# extract target for first species for first space
space.target(sim_rs, 1, 1)
#>           1
#> uniform 0.1

# set space targets for first species for first space
space.target(sim_rs, 1, 1) <- 0.5
# }