R - Sample

Card Puncher Data Processing

About

Sample is a function that return a random subset of a data set.

Example

set.seed(1)
# random subset of the original data so that N=15
sample = data[sample(nrow(data), 15), ]

where:





Discover More
Card Puncher Data Processing
R - (Numeric|Double) Vector

Numeric vector for real numbers Generate 5 random numeric between 0 and 1. See Random in the normal distribution
Clustered Data Generated R
R - Cluster Generation

How to generate cluster data. To generate clustered data, the mean of random generated group of data is shifted. where: the seed is set rnorm is a random generation function for the normal...
R Elipse
R - Data Generator

where: See also:



Share this page:
Follow us:
Task Runner