R can be used as a generic calculator. 1 + 1 ## [1] 2 2-3 ## [1] -1 6 / 2 ## [1] 3 3 * 4 ## [1] 12 Since R is so widely used, there are many people who contribute to continuously i...
Reading Data in Python
CSV File Using the Pandas library, it is very easy to open a CSV file using Python. Simply import the package, and then use the line pd.read_csv(). See this example below: import pandas as pd df ...
Jupyter Notebook
Jupyter Notebook is a web-based interactive computing platform, and it can be used for many things, aside from Python. You can even use both R and Python within the same document. You can even crea...
Searching for files with the `findR` package
It is good practice to have descriptive but concise file names so one can easily find the code they are looking for. But as projects grow, the number of scripts can become quite large (unless you...
Data Structures in R
\usepackage{amsmath} There are many different data structure types in R, each with varying levels of complexity and uses. The simplest data structure in R is a vector. Vectors are one-dimensional ...
Introduction to Python
Python can be used as a calculator 1 + 1 ## 2 2-3 ## -1 6 / 2 ## 3.0 3 * 4 ## 12 Since Python is so widely used, there are many people who contribute to continuously improving and ...
Making Colorblind-Friendly Figures
The default color palettes ggplot2 provides are generally good enough for a quick check, but they are overused and do not have very high contrast: library('ggplot2') # for fancy figures librar...
Changing the RStudio Theme
Color schemes are a matter of preference, but I think many of us can agree that RStudio’s default theme is quite bright and low-contrast. Fortunately, RStudio offers some alternative themes, which ...