Description Usage Arguments Details Value Author(s) See Also Examples

This function standardizes a vector by taking each element of the vector and subtracting the mean and dividing by the standard deviation of the vector.

1 |

`x` |
numeric vector |

`na.rm` |
logical, if TRUE NA's are removed for computing the mean and standard deviation. |

`tol` |
tolerance of similarity between elements in the vector, if each element is within the tolerance of each other a vector of zeros is returned |

You can set a tolerance level, which is required if the values in the vector to be standardized are equal. If all values in the vector are within the 'tol' level of each other the standardized values will be set to 0.

Returns a vector the same length as x

Michael Malick

1 2 3 4 5 |

michaelmalick/r-malick documentation built on May 22, 2017, 6:37 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.