Comparing my R Code against an R expert code

Following the great post: “How To Learn R, Part 1: Learn From A Master Data Scientist’s Code” where you can see which functions are most frequently used functions by an R expert.

The next graph sums up this fact:

unnamed-chunk-19-1.png

So, we can see he is using ggplot2 a lot, but also some useful functions as: filter, mutate, group_by from package dplyr.

Next step, is get the same graph for my functions. This is the result:

Rplot01

So, what we can see is that mainly I am using the base package. Obviuosly the functions used depend on the functionality we need to develop, but we can get some conclusions:

  • The package dplyr seems a very useful package
  • The ggplot2 is the package choosen by graph, so it is important to use it better.
  • In general, I am using the base package mainly for all, so I can save time, understanding better other libraries as broom.

Still job to do to become an R expert! 😉

 

 

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s