Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help writing code in RStudio data=coasters variables=Name, Park, City, State, Country, Construction(Steel or Wood), Speed(km per hour), Height(meters), Length(meters), Inversions(Yes or No), Numinversions, Duration

Need help writing code in RStudio

data=coasters

variables=Name, Park, City, State, Country, Construction(Steel or Wood), Speed(km per hour), Height(meters), Length(meters), Inversions(Yes or No), Numinversions, Duration (seconds),GForce,Opened, Region.

1A. Compare coasters that opened before 1980 to coasters that opend after 1980. First we will need to create a variable that indicates whether the coaster is old (before 1980) and new (after 1980). We can use the mutate function and the command `ifelse'. We want to create a variable that gives the coaster an "old" if Opened<1980 and "new" for everything else. Fill in the code below to do this. Most of the code is already filled in. Try to decipher for yourself what the code is doing.

```{r} coasters_summary<-coasters%>% mutate(old_new=ifelse( <1980,"old"," ")) ```

1B. Create an appropriate graph that compares speed of old and new coasters.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions