Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use Rstudio please only Rstudio r code!!!!!!!!!!!!!!!!!!!!!!!!! #install_packages(tidyr) library(tidyr) data(us_rent_income) rent $ variable == rent), ] income == income),] a. (1 pts) Which states have
use Rstudio please only Rstudio r code!!!!!!!!!!!!!!!!!!!!!!!!!
\#install_packages("tidyr") library(tidyr) data("us_rent_income") rent $ variable == "rent"), ] income == "income"),] a. (1 pts) Which states have median rent that is greater than 1,300 and less than 1,500? b. (1 pts) Which states have median rent that is greater than 1,500 or less than 500 ? c. (1 pts) How to check if all states have median rent that is less than 2,000 ? d. (1 pts) Check if the state names and their orders are the same in the income and rent data frames. e. (1 pts) Print the states where median income is less than 30,000 and median rent is greater than 1,000. f. (2 pts) Create a subset income1 from income by only including the cases where median income is greater than 35,000 or less than 25,000 . Check if there is any missing values in g. (1 pts) Create a subset rent1 from rent by deleting variable. Then, check the number of rows and columns. h. (1 pts) Create a subset rent_Cent_East from rent 1 by excluding following 13 states: "Nevada", "New Mexico", "Montana", "Arizona", "Idaho", "Alaska", "Oregon", "Wyoming", "Washington", "Utah", "California", "Colorado", "Hawaii". How many cases remain in rent_Cent_EastStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started