Another suggestion of my colleague in the office. He asked me about loops in R. But I decided to do a more general post, because loops are structures that you will find in every programming language. So it is interesting to understand how they work and then apply the concept to a specific language. Loops…
Month: September 2020
R – reading data. Part I: Excel files.
Since a couple of months I’ve been sharing the office with an intern (aka “el Brian” ) who is learning to program. He has many doubts and one of them was how to read data in R. I remember the first time I saw the R console, I thought, “How the f**k can I read…
R – rendering multiple reports
Some years ago I had to do a lot of reports for different breeders. They were reports based on the results of a research and it was the same report with data for each separated herd. Logically, I could have done it in Word, one by one, but they were around 50 herds. So I…
R – De “factor” à “numeric”
Dans R, nous avons un objet spécial appelé factor. De manière simple, nous pouvons dire que factor est une variable catégorique et qu’il est très important pour la modélisation statistique (plus d’informations sur cet objet: page d’aide dans R ?factor, ou bien vous trouverez un bon résume ici). C’est un moyen très efficace de stocker…