Learn R Programming

qs2 (version 0.2.1)

generate_test_data: Generate deterministic mixed-column test data

Description

Creates a small deterministic data frame with string, numeric, and integer columns. The numeric and integer columns combine seeded random noise with a mild linear trend so downstream smoke tests exercise both repetition and variation.

Usage

generate_test_data(nrows, seed = 1L)

Value

A data frame with columns string, numeric, and int.

Arguments

nrows

Number of rows to generate.

seed

Integer seed used to make the output reproducible.