nerdexam
CompTIA

DA0-001 · Question #124

What R package makes it easy to work with dates?

The correct answer is A. Lubridate. Lubridate is an R package from the tidyverse ecosystem specifically designed to simplify parsing, manipulating, and performing arithmetic on date-time objects. Stringr handles string manipulation, ggplot (ggplot2) is used for data visualization, and Datemath is not a real R…

Data Analysis

Question

What R package makes it easy to work with dates?

Options

  • ALubridate.
  • BDatemath.
  • CStringr.
  • Dggplot.

How the community answered

(41 responses)
  • A
    90% (37)
  • B
    5% (2)
  • C
    2% (1)
  • D
    2% (1)

Explanation

Lubridate is an R package from the tidyverse ecosystem specifically designed to simplify parsing, manipulating, and performing arithmetic on date-time objects. Stringr handles string manipulation, ggplot (ggplot2) is used for data visualization, and Datemath is not a real R package - Lubridate is the correct and well-known answer for date handling in R.

Topics

#R programming#Date-time data#Data manipulation#Lubridate package

Community Discussion

No community discussion yet for this question.

Full DA0-001 Practice