# nint_validateSpace: Validate Space In docopulae: Optimal Designs for Copula Models

## Description

`nint_validateSpace` performs a couple of checks on a space or list structure of spaces to ensure it is properly defined.

## Usage

 `1` ```nint_validateSpace(x) ```

## Arguments

 `x` a space or list structure of spaces.

## Value

`nint_validateSpace` returns 0 if everything is fine, or an error code. See `nint_ERROR`.

`nint_ERROR`, `nint_space`
 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36``` ```## valid s = nint_space() s nint_validateSpace(s) s = nint_space(nint_intvDim(-1, 1)) s nint_validateSpace(s) ## -1001 s = nint_space(1) s nint_validateSpace(s) ## -1002 s = nint_space(list(nint_scatDim(c(1, 2)), nint_scatDim(c(1, 2, 3)))) s nint_validateSpace(s) s = nint_space(nint_scatDim(c(1, 2)), nint_scatDim(c(1, 2, 3))) s nint_validateSpace(s) ## -1003 nint_validateSpace(1) nint_validateSpace(list(nint_space())) # valid nint_validateSpace(list(1)) ## -1004 s1 = nint_space(nint_gridDim(1:3), nint_scatDim(c(0, 1))) s2 = nint_space(s1[[1]]) s1 # 2D s2 # 1D nint_validateSpace(list(s1, s2)) ```