# Articles by Avi Blinder

### Regular Expressions Exercises – Part 1

October 30, 2016 |

A common task performed during data preparation or data analysis is the manipulation of strings. Regular expressions are meant to assist in such and similar tasks. A regular expression is a pattern that describes a set of strings. Regular expressions can range from simple patterns (such as finding a single ... [Read more...]

### Creating Sample Datasets – Exercises

October 7, 2016 |

Creating sample data is a common task performed in many different scenarios. R has several base functions that make the sampling process quite easy and fast. Below is an explanation of the main functions used in the current set of exercices: 1. set.seed() – Although R executes a random mechanism of ... [Read more...]

### Dates and Times – Simple and Easy with lubridate Exercises (part 3)

October 4, 2016 |

Welcome to the third and last part of the “lubridate” exercises. If you missed Part 1 and 2 then please refer to the links below: Part 1 Part 2 In this part, I’ll cover the following topics: 1. Durations (exact spans of time) 2. Periods (relative spans of time) 3. Rounding dates As always, in […] [Read more...]

### Dates and Times – Simple and Easy with lubridate exercises (part 2)

August 29, 2016 |

This is the second part in the series teaching the “lubridate” package. As a short recap from the previous part, I mentioned that date/date_time formats are easily parced using the ymd set of functions (for example, dmy, ymd_h, etc). I also explained that arithmetic calculations are performed ... [Read more...]

### Dates and Times – Simple and Easy with lubridate exercises (part 1)

August 15, 2016 |

As in any programming language, handling date and time variables can be quite frustrating, since, for example, there is no one single format for dates, there are different time zones and there are issues such as daylight saving time. Base R provides several packages for handling date and time variables, ... [Read more...]

# Never miss an update! Subscribe to R-bloggers to receive e-mails with the latest R posts.(You will not see this message again.)

Click here to close (This popup will not appear again)