Learn R Programming

nestedpp (version 0.2.0)

generate_random_example: Generates random data frame

Description

Function that returns a random data frames

Usage

generate_random_example(seed = 1234, nrow = 10, ncol = 5, withNA = TRUE)

Value

a data frame with random data

Arguments

seed

seed for random generation

nrow

number of rows

ncol

number of columns

withNA

bool to indicate if we want to include some NA values in the data frame

Examples

Run this code
example_data = generate_random_example(seed = 123456, nrow = 15, ncol=6)

Run the code above in your browser using DataLab