Learn R Programming

genvar (version 0.0.2.0)

builddata: creates a dataset of a given number of observations

Description

Creates a dataset of a given number of observations. Does so by creating a variable called "v1" with all missing values.

Usage

builddata(n, replace = FALSE)

Arguments

n

the number of observations to make the new dataset

replace

if TRUE, replace a dataset in memory, if FALSE, error if a dataset is already loaded

Value

returns NULL, invisibly

Examples

Run this code
# NOT RUN {
builddata(100, replace=TRUE)
listif()
# }

Run the code above in your browser using DataLab