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
Get step-by-step solutions from verified subject matter experts
