AFM241 Midterm: R Lab Notes

38 views5 pages

Document Summary

#load libraries install. packages(ggplot2) install. packages(psych) install. packages(dbplyr) install. packages(dplr) install. packages(dplyr) library(ggplot2) library(psych) library(dbplyr) library(dplr) library(dplyr) Chemicals_it mean(iw500a)) #find the bottom and top 20 data points sort(iw500a) [1:20] sort(iw500a, decreasing=true) [1:20] #find % of data points that are within 2. 2 sd of the mean of a normal distribution pnorm(2. 2) #find average it spending from 2008 to 2011. #graph average it spending from 2008 to 2011. #find average it spending from 2008 to 2011 for the insurance industry with(ins_it, mean(itspending[year>2007 & year<2012]))

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents