Author Archives: hj2473

R Open Lab Fall 2018 – R Shiny

If you still haven’t got any idea of how amazing and powerful R can be, here is the time. In this open lab, I introduce my favourite part of R —- R shiny, which is a package to bulid interactive web app for data visualization, dashboard, map interaction and so on. I start from showing several fancy example from shiny official gallery, then ui.R and server.R are introduced separately and also how they connect. The example of control widgets of input and output are given and practiced by attendee. The topic of leaflet —- a package to build map in R are discussed. At the end of the lab, all attendee can build one simple app on Shiny which really satisfy them.

Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018

If you have further questions regarding topics covered in the material, please feel free to drop in during consultation hours or leave a comment.

R Open Lab Fall 2018 – Text data in R

R is also a powerful tool to deal with text data. This time we first clarified the concept between character and string by practicing some tricky examples and some basic ideas that we can play with our text data such as substring, combining and replacing. Then a txt file was introduced to let attendee play with it. The result really interested them a lot.

Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018

If you have further questions regarding topics covered in the material, please feel free to drop in during consultation hours or leave a comment.

R Open Lab Fall 2018 – Dataframe and basic visualization

This week we stepped into the most basic but important data structure called dataframe, several ways of constructing dataframes and importing dataframes are introduced. At the mean time, we reviewed the basic idea of extracting data by index/condition by giving some exercises to practice. Then, we focused on how to show the general picture of a dataset in numeric and graphic way at first glance.

Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018

If you have further questions regarding topics covered in the material, please feel free to drop in during consultation hours or leave a comment.

R Open Lab Fall 2018 – More Fundamentals

We reviewed a little bit about what is R and R Studio, how they work together and then continued the starter kit of R. First we talked about how to do calculation, commenting and assignment value to variables in R, then we also gave some tricky example to clarify those coding standards such as case sensitivity. The most important part of this open lab was to introduce different classes in R, which would be really useful after understanding this concept. Filtering or slicing is shown by some demonstrated examples and it can be deal with in R in multiple ways. We also started the beginning part of function and loop, and they would be interpreted and practiced in the next session. Hope all of you will get more interests in R and know the fact that how powerful it is in the World of Data

Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018

If you have further questions regarding topics covered in the material, please feel free to drop in during consultation hours or leave a comment.