Question: Suppose you have a dataframe, df, with two datetime columns in them:firstPurchaseTime and lastPurchaseTime. These columns are a time stamp that measures time to the

Suppose you have a dataframe, df, with two datetime columns in them:firstPurchaseTime and lastPurchaseTime. These columns are a time stamp that measures time to the second. What would be the outcome for the following line of code? df$timePassed = as.numeric(df$lastPurchaseTime - df$firstPurchaseTime) A new column of data the represents the amount of time that has passed in terms of: 1 point seconds minutes hours days years

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