more
```cpp
include
include
using namespace std;
void hartal(vector & days, int h) {
int n = days.size();
int t = h - 1;
while (t < n) {
int r = t % 7;
if (r != 5 && r != 6)
days[t] = true;
t += h;
}
}继续阅读 »
Twelve days after the initial commit, pipeR tutorial is released!
If you want to write R code fluently and process data elegantly, I strongly recommend that you read this tutorial which is designed to serve as a complete guide to pipeR package, including how it works with dplyr, rlist, and rvest with vivid examples.继续阅读 »
(This post is rewritten to adapt to the latest release of pipeR)
Pipeline is receiving increasing attention in R community these days. It is hard to tell when it begins but more people start to use it since the easy-and-fast dplyr package imports the magic operator %>% from magrittr, the pioneer package of pipeline op继续阅读 »
pipeR 0.4 is released! Check it out at the project page. In this new version, two things happen. First, %>>% handles everything. Second, the introduction of Pipe object.继续阅读 »
rlist 0.3 is released! This package now provides a wide range of functions for dealing with list objects. It can be especially useful when they are used to store non-tabular data.继续阅读 »
(This article is adapted to the latest version of rvest package.)
In my previous post, I demonstrated how we can scrape online data using existing packages.继续阅读 »