Linux Format

Build calendars with date and time types

The subject of this tutorial is creating calendars using R. The R language of statistical computing is a free implementation of the S language. This tutorial will show you how to use a Docker image to execute RStudio and how to work with dates and times in R, before explaining how to create calendars – being able to work with dates and times, and knowing how to extract the desired parts from a date string or structure is really important for defining the calendar you want.

We’ll then move on toexplaning how to use Python 3 to create a calendar heat map with random data.

Installing R

You can install R using your favourite package manager or by following the instructions found in the R FAQ (https://cran.r-project.org/doc/FAQ/R-FAQ.html). As you will see, you can also run R and RStudio using a Docker image.

You can enter the R shell by executing R on your favourite terminal. You can find the version of R you are using by executing the R --version command, provided that the directory of the R binary is in your PATH environment variable. The output will be similar to the following below:

If you have time and want to see some of the capabilities of

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related