Question: a ) Use gather ( ) to turn columns work.AM , home.AM , work.PM and home.PM into a key - value pair of key and

a) Use gather() to turn columns
work.AM,
home.AM,
work.PM and
home.PM into a key-value pair of key
and time (see below).
b) Use separate() to split the key into location and time_of_day. Try piping parts a and b together
into one command.
c) Using dplyr commands, find the max time for the treatment and control in the morning and afternoon.
 a) Use gather() to turn columns work.AM, home.AM, work.PM and home.PM

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!