Packages

To get started with R notebooks on pluto, some standard libraries need to be imported and config files sourced. Start with these, in this specific order:

library(DBI)
library(plutoDbR)
library(plutoR)
library(tidyverse)

options("scipen"=999)
options(stringsAsFactors = FALSE)

source("/usr/share/pluto/config.R")

The first set allows you to access pluto datasets, the second is some common-sense settings and lastly, the config file.

To get productive, add these:

source("/usr/share/pluto/goofy/plot.common.R")
source("/usr/share/pluto/goofy/misc.common.R")

library(ggthemes)
library(reshape2)
library(quantmod)
library(lubridate)
library(ggrepel)
library(PerformanceAnalytics)

options(repr.plot.width=16, repr.plot.height=8)

goofy is a set of common plotting and date-resetting functions. The rest are some commonly used packages for financial data analysis in R.

If you need any specific package for your work, either raise an issue on github or slack me!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s