Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

R1. Import the data beginning in line 19 of alc_abuse.txt as a data frame. a. How many variables are recorded in the data in this

R1. Import the data beginning in line 19 of alc_abuse.txt as a data frame.

a. How many variables are recorded in the data in this file?

b. How many rows of data are there?

c. What percent of the participants in this data frame are married?

R2. Use the map() function to find the mean of every column in mtcars. Complete the following exercises based on the flights tibble from the nycflights13 package:

R3. Sort flights by carrier and within each carrier, sort flights by distance.

R4. Find all the flights that arrived at least one hour late but did not depart late.

R5. Use the between( ) operator within a filter( ) function to find all the flights that were scheduled to depart between 12:00am and 4:00am. (Note: in the data, 12:00am is represented as time 000)

R6. Of the planes (talinum, in the dataset) that flew at least 20 flights, which one had the highest average arrival delay time?

R7. Add a row of values to flights using the add_row() function. Your new row should contain data for each variable (data you make up) and should not be empty

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Accounting questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago