getLocation: Get the location of a sample of data

Description Usage Arguments Value Note Author(s) Examples

Description

Get the location of a sample of data

Usage

1

Arguments

table

A sample of data, can be a number, a vector or a matrix, an array or a table.

frac

The fraction of the center part of data, used in cSpread().

Value

The location of the sample.

Note

The choice of frac also represents the fraction of the sample we will compare. e.g. if frac=0.9, then everytime we will only compare the center 90 We ignore extreme values in this way

Author(s)

R. Wayne Oldford and Xiaomei Yu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
table1 <- c(1111110000,1134516000,1346578900,1234567890)
getLocation(table1)

table2 <- c(.7999, .7998, .7998, .7997)
getLocation(table2)


table3 <- -c(49991234, 49983454, 50013333, 49923333)
getLocation(table3)


table4 <- c(4220,4232,-6332,4578)
getLocation(table4)

HairEyeColor
getLocation(HairEyeColor)

rwoldford/tidy-table documentation built on May 12, 2019, 4:38 a.m.