Learn R Programming

sSeq (version 1.10.0)

rowVars: Calculating the sample variance within each row of A matrix

Description

This function helps to obtain row-wise estimation across columns.

Usage

rowVars(x)

Arguments

x
A matrix or data.frame that includes multiple columns.

Value

A vector showing the per-row variance estimates for the matrix or data.frame.

Examples

Run this code
x <- matrix(rnorm(10), 5)
rowVars(x)

Run the code above in your browser using DataLab