Learn R Programming

exams.forge (version 1.0.10)

data_n: Number of Observations

Description

Generates a sequence of sample sizes in a range from min=5 to a max:

  • whose root is an integer (data_nsq), and

  • that are divisible only by 2 and 5 (data_n25)

Usage

data_n(max, min = 5)

data_nsq(max, min = 5)

data_n25(max, min = 5)

dn(max, min = 5)

dn25(max, min = 5)

dnsq(max, min = 5)

Value

A sequence of integers.

Arguments

max

integer: maximum sample size

min

integer: minimum sample size (default: 5)

Examples

Run this code
data_n(10)
data_nsq(1000)
data_n25(1000)

Run the code above in your browser using DataLab