create_rand: Random data set creation

Description Usage Arguments Examples

View source: R/create_rand.R

Description

A simple function for creating a n by 2 matrix filled with random numbers. The matrix is stored as a csv file. The function get_rand returns where the file is stored.

Usage

1
2
3
create_rand(filename = NULL, n = 10000, seed = NULL)

get_rand()

Arguments

filename

A filename (should have a .csv extension)

n

Number of rows

seed

Optional seed

Examples

1
2
3
4
## Not run: 
create_rand("inst/raw-data/rand.csv", n=1e5, 1)

## End(Not run)

jr-packages/jrBig documentation built on Jan. 1, 2020, 2:02 p.m.