Question: Question 1 0 Part 1 : Using household form the tidyr package, extract the month and date from dob _ child 1 and dob _

Question 10
Part 1: Using household form the tidyr package, extract the month and date from dob_child1 and dob_child2.
Part 2: Next, create a new column diff where you subtract the two dates: dob_child1. Use diff to calculate the number of months between the two children. Hint: subtracting the dates creates a time objects, you can turn this into a numeric column with
Part 3: Can you use the month and date columns you create in part 1 to recreate your result from part 2.
Question 11
With the data set from the tidyr package, create a new column date with the function.
Does your created date column have a day specified?
Question 1 0 Part 1 : Using household form the

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 Programming Questions!