R Instructions

To open R with the dataset preloaded, right-click here and choose "Save Target As" to download the file to your computer. Then find the downloaded file and double-click it to open it in R. The data have been loaded into the data frame actor_age. Enter the command actor_age to see the data. The only variable

R Instructions

To open R with the dataset preloaded, right-click here and choose "Save Target As" to download the file to your computer. Then find the downloaded file and double-click it to open it in R.

The data have been loaded into the data frame actor_age. Enter the command actor_age to see the data. The only variable (column title) in the data frame actor_age is Age.

The following command will show you the five-number summary for the actors' age data and the mean value of the data as well:

summary(actor_age$Age)

To get specific descriptive statistics from the data set consider the following commands:

For the Mean:

mean(actor_age$Age)

For the Standard Deviation:

sd(actor_age$Age)

For the Variance:

var(actor_age$Age)

For the Median:

median(actor_age$Age

For the Inter-quartile range:

IQR(actor_age$Age)

For the Minimum:

min(actor_age$Age)

For the Maximum:

max(actor_age$Age)

For the Sample Size (n):

length(actor_age$Age)

For the First Quartile (25th percentile, Q1):

quantile(actor_age$Age, 0.25)

For the Third Quartile (75th percentile, Q3):

quantile(actor_age$Age, 0.75)

ncG1vNJzZmirY2LCtHnWnqqtZWJjrq6t2ailmq%2BjY7CwuY6onKuemaGytHuiqKWcnaCpwGy1zWSKrZmknsC1tcKsZpqro560r7nEp6usZ5KkxbG4zq1opZqUZK%2BwxM%2Blpq1pnJexoL6PZ5%2BtpZw%3D

 Share!