Recent Posts

data.table

When you are doing a lot of R, you can find two different kind of people, the dplyr and the data.table people. Indeed, those to packages are used for table ...

Workflow

How you organise yourself when doing R will make it easier for you if you need to go back to your script weeks or years after, and to share with others peop...

Creating a function

In R, most of people used build-in functions which are very useful for all basics statistical analyses. When you need to do more complex statistics you can ...

For loop

Using loop with R is not the proper behaviour to have. Indeed, using the apply functions family such as tapply, lapply, and so one are a better way to do it...

Convert factor to character

In R, you used sometimes functions to convert vectors to another format with as.character, as.factor or as.numeric.