% Generated by roxygen2: do not edit by hand
\name{rowMeans}
\alias{rowMeans}
\alias{colMeans}
\title{Row and Column Means of a Matrix/Data Frame}
\arguments{
  \item{x}{a numeric matrix or data frame
}
}

\details{
Compute row means of a matrix
\code{
(A <- matrix(1:9, nrow = 3))
rowMeans(A)  # = apply(A, 1, mean)
}

Compute column means of a matrix
\code{
colMeans(A)  # = apply(A, 2, mean)
}

Compute row means of a data frame
\code{
df <- data.frame(a = 1:3, b = 4:6, c = 7:9)
rowMeans(df)  # row means of the data frame
}}

