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) <- valueRapData(), RapUnsolved(), or RapSolved() object.
NULL for all species or integer indicating species.
NULL for all spaces or integer indicating a space.
numeric new target.
A numeric or matrix objects.
# \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
# }