Question: #Included in this R project folder is the same CSV file from the Module 0 Download. # - - - - - - SETUP -

#Included in this R project folder is the same CSV file from the Module 0 Download.
#------SETUP------
#Ensure the tidyverse is installed and loaded.
#Load the CSV file into a data frame.
#Remove any records with empty/NA values
#------ASSIGNMENT------
#1. In one statement using the pipe operator, create a new data frame formed
# by first selecting the name and diameter columns/variables and then filters
# out trees with diameters in the range of 27 inches to 30 inches (inclusively).
# In Canvas for question 1, copy and paste the statement you used here.
#2. How many records are in this new data frame?
#3. How many Black Walnuts (JUGLANS NIGRA - BLACK WALNUT) are in the
# data frame created in question 1?
#4. With the data frame created in question 1, use the mutate function to add a
# third column/variable named "TREE_DBH_CM" to this data frame, which contains
# the TREE_DBH column converted from inches to centimeters.
# Conversion Formula: CM = IN *2.54
# In Canvas for question 3, copy and paste the statement you used here.
#The coordinates for the northwest corner of Logan Square are:
# Longitude (X): -75.172, Lat (Y): 39.959
#The coordinates for the southeast corner of Washington Square are:
# Longitude (X): -75.151; Lat (Y): 39.946
#(See the Boundary.png image in this project folder)
#5. Using the original data frame from the "SETUP" section, how many trees are
# within this boundary? using R studio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!