Bhuwanesh Nainwal

Bhuwanesh Nainwal

13 Articles Published

Articles by Bhuwanesh Nainwal

Page 2 of 2

Manipulating Time Series Data in R with xts & zoo

Bhuwanesh Nainwal
Bhuwanesh Nainwal
Updated on 17-Jan-2023 1K+ Views

The xts and zoo are two R packages that provide tools and functions for manipulating time series data. Both packages offer functions for reading, writing, and manipulating time series data stored in various formats, such as CSV, Excel, and other data sources. We shall start by introducing xts and zoo classes, basic manipulations, merging and modifying time series, and by the end, we will be discussing applying and aggregating by time. XTS and Zoo class Syntax In R, xts extends the zoo class. An xts object is similar to a matrix of observations that are indexed by a time object. ...

Read More

Joining Data in R with data.table

Bhuwanesh Nainwal
Bhuwanesh Nainwal
Updated on 17-Jan-2023 2K+ Views

In this article, we will discuss joining data in R using data.table package. By the term “joining data” we mean to say that performing different types of joins operations like INNER JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN, AND FULL OUTER JOIN between two or more tables. The main purpose of doing join operations between tables is to access data from multiple tables on the basis of some attribute (or column) condition. R provides us data.table package with the help of which we can handle tabular data (having rows and columns) very efficiently. This package was launched as an alternative ...

Read More

Defensive R Programming

Bhuwanesh Nainwal
Bhuwanesh Nainwal
Updated on 17-Jan-2023 521 Views

Defensive programming is a software development practice that involves designing and implementing code in a way that anticipates and prevents errors and vulnerabilities. In R programming, defensive programming involves using techniques and strategies to ensure that your R code is robust, reliable, and secure. By the word “Defensive” in defensive programming, most of you might be confused about whether it means writing such a code that doesn’t fail at all. But the actual definition of “Defensive programming” is writing such a code that fails properly. By “failing properly”, we mean − If the code fails, then it should be ...

Read More
Showing 11–13 of 13 articles
« Prev 1 2 Next »
Advertisements