Question
USING R 1.Show price, aircon, gasheat for houses that have no garage 2.Use summarise() to find how many houses have air conditioning and how many
USING R
1.Show price, aircon, gasheat for houses that have no garage
2.Use summarise() to find how many houses have air conditioning and how many don't
3.Create a new variable price_per_bedroom which is price divided by the number of bedrooms
4.Show only price, bedrooms, and price_per_bedroomcolumns and arrange the rows in the descending order of price_per_bedroom
5. Given the input vector below: x <- c("Atlanta, GA", "New York, NY", "Los Angeles, CA") Try to convert it to the following output using str_to_upper, str_split and str_sort: ## Cities: ATLANTA, LOS ANGELES, NEW YORK ## States: CA, GA, NY (Hint: Recall how to retrieve elements from a list/vector using square brackets)
Step 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