R-Studio Assignment 1

Question 1:
Write a code to find those numbers which are divisible by 7, between 1500 and
2700 (both included).
Question 2:
Print the even numbers from a given list.
Sample List : [1, 2, 3, 4, 5, 6, 7, 8, 9]
Expected Result : [2, 4, 6, 8]
Question 3:
import the following AirBnb data set (http://becomingvisual.com/rfundamentals/airbnb.csv).
to create ordered factor variables for the room_type and neighbourhood_group variables.
Split the data frame created into 2 pieces and print them on screen.
For the variable created do the following:
a. Add up all the values of price column.
b. Count the number of rows for each room_type.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.