makeMatrix: Make Matrix

Description Arguments Details Author(s) Examples

Description

This function is specifically designed for the generation of 2 groups of points within a matrix.

Arguments

x

A numerical vector of length 2 specifying the range of values possible for group 1.

y

A numerical vector of length 2 specifying the range of values possible for group 2.

dim

The number of dimensions (columns) to generate.

points

The number of data points in each group.

by

Indicates the frequency of ponts which are subsequently randomly picked according to the points argument.

seed

Sets the seed to make results reproducible.

replace

Passed to the sample function.

...

Arguments to pass on.

Details

Makes a matrix containing data for two groups of points. Specifying a specific number of points, dimensions, and range of points for each group is suported. The resulting matrix will have group 1 occupying the top half of the matrix and group 2 the bottom half.

Author(s)

Jason Serviss

Examples

1
mat <- makeMatrix(x=c(0,1), y=c(0,1), dim=2, points=10)

GranderLab/ClusterSignificanceExtras documentation built on May 6, 2019, 6:30 p.m.