Adson Costanzi Filho

Hi! Welcome to my blog about statistics, data science and R. Here I share my ideas, tutorials and projects. Feel free to get in touch!

why-not-both

Why not both?

Motivation I believe the most common discussion on data science teams is R vs Python. I saw myself in some of these discussions a couple of times and my position is always “Why not use both?”. The idea of this post is not to compare R vs Python but to show how easy it is to integrate both languages using APIs (LIKE A PRO), this way we can use the best of each. Also, the post won’t focus on the deployment and structure needed to bring the APIs online, instead, I will demonstrate it locally (to make it simple). ...

July 13, 2021 · 7 min · 1484 words · Adson Costanzi Filho
github-actions-for-r-users

GitHub Actions for R Users

Motivation Recently I was introduced by some friends to the GitHub Actions and how it could help me execute tasks like: deploy my Shiny Apps, deploy this Blogdown, perform automated tests in packages, refresh data, and more. So, I decided to give it a try, and it was so simple and saved me so many work hours that I decided to write this post explaining how R developers can make good use of this amazing tool. ...

April 1, 2021 · 15 min · 3124 words · Adson Costanzi Filho
csgo-package

CSGo Package

Overview GitHub: adsoncostanzifilho/CSGo The CSGo package is an R client for accessing Steam’s REST API specifically for the Counter-Strike Global Offensive Game (CS Go) data. Check out the Steam documentation website and the Package Page for more information. Installation To get the current released version from CRAN: install.packages("CSGo") To get the current development version from GitHub: # install.packages("devtools") devtools::install_github("adsoncostanzifilho/CSGo") Example The first step to use the CSGo package is to have your own credentials (API key) to pull the CSGo data from the Steam API. For more information about how to get your own API Key run in your R vignette("auth", package = "CSGo"), or click here. ...

March 25, 2021 · 4 min · 647 words · Adson Costanzi Filho
package-development-tutorial

Package Development Tutorial

Motivation If you are using a script more than 3 times it is time to create a function and if you are using a function in 3 different projects it is time to create a package. “I heard it from someone, but I don’t remember who..” Recently I experienced the whole flow to create a new R package with the help of amazing packages like devtools, usethis, pkgdown, and roxygen2. That is why I decided to write about it while I still remember all the necessary steps to make your local functions available for the R community (CRAN and Github). ...

March 17, 2021 · 12 min · 2483 words · Adson Costanzi Filho
blogdown-tutorial

Blogdown Tutorial

Motivation I had the idea of writing some “walking through” about blogdown, first because it was my first time using the package and I still have all the necessary steps fresh in my mind and second because probably I will need to have it all documented if I decided to refresh this blog one day. Of course, there are a lot of great tutorials about blogdown over the internet (the blogdown book for example), but maybe someone could find this one easier in some way… ...

November 25, 2020 · 6 min · 1229 words · Adson Costanzi Filho
text-mining-tool

Text Mining Tool

Overview GitHub: adsoncostanzifilho/TextMining Text Mining Tool is an interface developed in R using mainly the shiny, tidytext and rtweet packages. The idea of this interface is to allow to you make your own text analysis using live Twitter data. The tool is online on shinyapps’ repository at the address https://adsoncostanzi.shinyapps.io/TextMining/. How does this interface work? The interface is divided into 5 tabs presented in the menu on the left: Home , Search , Word Cloud , Sentiment Analysis and, Topic Modeling . ...

November 24, 2020 · 1 min · 178 words · Adson Costanzi Filho
soothsayer

soothsayeR

Overview GitHub: adsoncostanzifilho/soothsayeR SoothsayeR is an interface based on the old prank called ‘Peter answers’.. The game’s idea is to play with your friends making questions that you know the answer, and make them believe that R is who is answering… The app demonstrates how easy it is to integrate Shiny with Javascript through the shinyjs library. The tool is online on shinyapps’ repository at the address https://adsoncostanzi.shinyapps.io/soothsayeR/. How to play with soothsayeR? You just need to press dot (.) on the keyboard in the request session and then write the answer secretly. When you press dot in the request text input everything you type will be masked, so you could put the answer without anyone noticing. ...

November 23, 2020 · 2 min · 226 words · Adson Costanzi Filho