Learn R Programming

cardinalR (version 1.0.6)

gen_longlinear: Generate Long Linear Data

Description

This function generates a dataset consisting of long linear data.

Usage

gen_longlinear(n = 500, p = 4)

Value

A tibble containing the long linear data.

Arguments

n

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

p

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

Examples

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

Run the code above in your browser using DataLab