JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Quiz Tutorial 6: Date & Time Data with lubridate
This quiz complements Tutorial 6: Date & Time Data with lubridate. It is only for your own self-assessment so you are free to submit as many times as you want.
Link to tutorial:
https://www.kaggle.com/anichh/tutorial-6-date-time-data-with-lubridate
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Q1: Which of the following is a date data?
*
1 point
2020-09-15
4:09:24
2020-09-15 4:09:24
none of the above
Q2: What data type is this: 2017-09-19 19:00:00?
*
1 point
date
time
datetime
all of the above
Q3: What is different about the outputs' data types of today() and now()? (Select all that apply)
*
1 point
today() gives us datetime data
now() gives us datetime data
today() gives us date data
now() gives us date data
Required
Q4: What is the difference between %/% and %%?
*
1 point
%% retains integer, %/% retains the remainder
%/% retains integer, %% retains the remainder
%% divides, %/% multiplies
There are no differences
Q5: Using the Friends_visits data frame, which of the following code will give us a new column named "Year_Month" that only has information of the year and month of each friend visit?
*
1 point
Friends_visits %>% mutate("Year_Month" = make_datetime(Year, Day))
Friends_visits %>% mutate(Year_Month = make_datetime(Day, Month))
Friends_visits %>% mutate(Year_Month = make_datetime(Year, Month))
none of the above
Q6: What is the difference between %>% and +? (Select all that apply)
*
1 point
%>% is pipe
+ is used in ggplot
+ adds more functions to the ggplot blank canvas
%>% can only be used with mutate
Required
Q7: What should the binwidth be if we want to have each data point to represent a separate 2 hour interval?
*
1 point
2000
2
120
7200
Q8: We can use now() to calculate our age as well.
*
1 point
True
False
Q9: Which of these functions account for date and time changes throughout the years? (Select all that apply)
*
1 point
day
ddays
year
dyears
dweeks
Required
Q10: What happens when we use ddays() or dyears() in days or years that do not experience any special time/date changes?
*
1 point
R will give us a warning sign
R will give us an inaccurate output
R will take a very long time to load and eventually crash
Nothing happens, R will function normally
Submit
Page 1 of 1
Clear form
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms