multivariate_grid {hstats} | R Documentation |
Multivariate Grid
Description
This function creates a multivariate grid. Each column of the input x
is turned
(independently) into a vector of grid values via univariate_grid()
.
Combinations are then formed by calling expand.grid()
.
Usage
multivariate_grid(
x,
grid_size = 49L,
trim = c(0.01, 0.99),
strategy = c("uniform", "quantile"),
na.rm = TRUE
)
Arguments
x |
A vector, matrix, or data.frame to turn into a grid of values. |
grid_size |
Controls the approximate grid size. If |
trim |
The default |
strategy |
How to find grid values of non-discrete numeric columns?
Either "uniform" or "quantile", see description of |
na.rm |
Should missing values be dropped from the grid? Default is |
Value
A vector, matrix, or data.frame with evaluation points.
See Also
Examples
multivariate_grid(iris[1:2], grid_size = 4)
multivariate_grid(iris$Species) # Works also in the univariate case