SampleMeanVector: Sample Mean Vector

Description Usage Arguments Details Value Examples

View source: R/SampleMeanVector.R

Description

Returns the mean vector of the given matrix.

Usage

1

Arguments

x

A Matrix, where each variable represents a column

Details

Given a matrix of data, an algorithm is employed to calculate the sample mean vector.

Value

A vector of the sample means

Examples

1
2
3
myMat = c(3,4,2,6,8,2,5, 5,5.5,4,7,10,5,7.5)
dim(myMat) = c(7,2) # Creates a 2x7 matrix
mySampleMeanVariable = SampleMeanVector(myMat)

OUStudent/Lab1Intro documentation built on Jan. 30, 2020, 6:25 a.m.