Question: Before you begin please provide a solution rather than guidance. I have some work that I would like to cross-reference and need solutions Submit R
Before you begin please provide a solution rather than guidance. I have some work that I would like to cross-reference and need solutions
Submit R code which does the following:
- Clean the data set by removing rows and columns so there are 51 rows (one for each state plus DC) and 5 columns with the following names: stateName, Census, Estimates, Pop2010, Pop2011.
- Make sure the data in the last four columns are numbers rather than strings
- Store your data set in a data frame.
- Write a function which will accept a vector, and return the mean, median and standard deviation of the vector.
-

THE TTTTTTTT tttt----- HHHHHHHH HHHHHHHH HHHHHHHH TTTTTTTTT , ttt------ ######## ###### table with row headers in column A and column headers in rows 3 through 4. (leading dots indicate sub-parts Table 1. Annual Estimates of the population for the United States, Regions, States and Puerto Rico: April 1, 2010 Geographi 1-Apr-10 Population Estimates (as of July 1) Census Estimates 2010 2011 United Stat ######## Northeast ######## Midwest South West Alabama 4,779,736 4,779,735 4,785,401 4,802.740 .Alaska 710,231 710,231 714,146 722,718 .Ar zona 6,392,017 6,392,013 6,413,158 6,482,505 Arkans 2,915,918 2.915,921 2.921,588 2,937,979 .Califor na Colorado 5,029,196 5,029,196 5,047,692 5.116,796 .Cannecticl 3,574,097 3.574,097 3.57 5,498 3,580,709 .Delaware 897,934 897,934 899,792 907,135 .District of 601,723 601,723 604,912 617,996 .Florida ######################## .Georgia 9,687,653 9,687,660 9,712,157 9,815,210 .Hawaii 1,360,301 1,360,301 1,363,359 1,374,810 Idaho 1,567,582 1,567,582 1,571,102 1,584,985 Illinois ################################ .Indiana 6,483,802 6,483,800 6,490,622 6,516,922 .lowa 3,046,355 3,046,350 3,050,202 3,062,309 .Kansas 2,853,118 2,853,118 2,859,143 2,871,238 [Kentucky 4,339,367 4,339,362 4,347,223 4,365,356 Louis and 4.533,372 4.533,372 4.545,343 4.574,836 .Maine 1,328,361 1,328,361 1,327,379 1,328,188 Maryland 5.73.552 5.73.552 5,785,681 5,828.289 Massachu 6.547,629 6.547,629 6.555,466 6,587,536 Michigan 9,883,640 9,883,635 9,877,143 9,876.187 Minnesote 5,303,925 5,303,925 5,310,658 5,344,861 Mississpp 2.967,297 2.967,297 2.970,072 2.978.512 Missouri 5.988,927 5,988,927 5.995,715 6,010,688 .Montana 989,415 989,415 990,958 998,199 .Nebrka 1,826,341 1,826,341 1,830,141 1,842,641 .Nevada 2,700,551 2,700,551 2,704,283 2,723,322 .New Ham 1,316,470 1,316,472 1,316,807 1,318,194 .New Jerse 8,791,894 8,791,894 8,799,593 8,821,155 .New Mexi 2,059,179 2,059,180 2,065,913 2,082,224 ######### DA MEN, .Nath Cart 9.535,483 9.535,475 9,560,234 3,656,401 .North Dak 672,591 672,591 674,629 683,932 Ohio ######################## .OkIdoma 3,751,351 3,751,354 3,760,184 3791,508 Oregon 3,831,074 3,831,074 3,838,332 3,871,859 .Pennsylva ################################ Rhode Isla 1,052,567 1,052,567 1,052,528 1,051,302 South Cari 4,625,364 4,625,364 4,637,106 4,679,230 South Dak 814,180 814,180 816,598 824,082 Tennessee 6,346,105 6,346,110 6,357,436 6,403,353 Texas ################################ .Utah 2,763,885 2,763,885 2,775,479 2,817,222 .Vermont 625,741 625,741 625,909 626,431 Virginia 8,001,024 8,001,030 8,023,953 8,096,604 Washingte 6,724,540 6,724,540 6,742,950 6,830,038 West Virgi 1,852,994 1,852,996 1,854,368 1,855,364 Wisconsin 5,686,986 5,686,986 5,691,659 5,711,767 Wyoming 563,626 563,626 564,554 568,158 Puerto Rice 3,725,789 3,725,789 3,721,978 3,706,690 Note: The April 1, 2010 Population Estimates base reflects changes to the Census 2010 population from geograph Suggested Citation: Table 1. Annual Estimates of the population for the United States, Regions, States and Puerto Rico: April 1, 2010 Source: U.S. Census Bureau, Population Division Release Date: December 2011
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
