Computing the Sample Mean with R
Description
The following R command calculates the mean of Babe Ruth's career homers for each season that he played in major league baseball.
To use R in a Sage cell, the language must be set to R. See https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst for details.
Sage Cell
Code
ruth <- c(22, 25, 34, 35, 41, 41, 46, 46, 46, 47, 49, 54, 54, 59, 60)
mean(ruth)
Options
None
Tags
Primary Tags: Statistics: Exploratory data analysis/descriptive statistics
Secondary Tags: Exploratory data analysis/descriptive statistics: Summary statistics
Related Cells
Attribute
Permalink:
Author: T. Judson
Date: 19 Jul 2017 12:08
Submitted by: Tom Judson