AttributeSpaces: Create new AttributeSpaces object

View source: R/AttributeSpaces.R

AttributeSpacesR Documentation

Create new AttributeSpaces object

Description

This function creates a new AttributeSpaces object.

Usage

AttributeSpaces(spaces, name)

Arguments

spaces

list of AttributeSpace() objects for different species.

name

character name to identify the attribute space.

Value

A new AttributeSpaces object.

See Also

AttributeSpace.

Examples

## Not run: 
space1 <- AttributeSpace(
  PlanningUnitPoints(
    matrix(rnorm(100), ncol = 2),
    seq_len(50)
  ),
  DemandPoints(
    matrix(rnorm(100), ncol = 2),
    runif(50)
  ),
  species = 1L
)

space2 <- AttributeSpace(
  PlanningUnitPoints(
    matrix(rnorm(100), ncol = 2),
    seq_len(50)
  ),
  DemandPoints(
    matrix(rnorm(100), ncol = 2),
    runif(50)
  ),
  species = 2L
)

spaces <- AttributeSpaces(list(space1, space2), "spaces")

## End(Not run)

raptr documentation built on March 31, 2023, 9:46 p.m.