Learn R Programming

cardinalR (version 1.0.6)

gen_gridcube: Generate Cube with grid points

Description

This function generates a grid dataset with specified grid points along each axes.

Usage

gen_gridcube(n = 500, p = 4)

Value

A tibble containing the cube with grid points.

Arguments

n

An integer vector (default: 500) representing the sample size.

p

An integer value (default: 4) representing the number of dimensions.

Examples

Run this code
set.seed(20240412)
gridcube <- gen_gridcube(n = 500, p = 4)

Run the code above in your browser using DataLab