INTRODUCTION This R package is aimed at accessing the openaq API. OpenAQ is a community of scientists, software developers, and lovers of open environmental data who are building an open, real-time database that provides programmatic and historical access to air quality data. The package contains 5 functions that correspond to the 5 different types of […]

## PDF tables with kableExtra and RMarkdown – exercises

INTRODUCTION The goal of this tutorial is to introduce you to kableExtra, which you can use to build common complex tables and manipulate table styles. It imports the pipe %>% symbol from magrittr and verbalizes all the functions in order to permit you to add “layers” to the kable output. In combination with R Markdown, […]

## PDF tables with kableExtra and RMarkdown – exercises : solutions

Below are the solutions to these exercises on pdf tables with kableExtra and RMarkDown. #################### # # # Exercise 1 # # # #################### — title: "Kable" author: Name date: January 31, 2018 output: pdf_document — #################### # # # Exercise 2 # # # #################### — title: "Kable" author: Name date: January 31, 2018 […]

## How to Use KableExtra and RMarkdown to Create Tables in PDF Documents

INTRODUCTION The goal of this tutorial is to introduce you to kableExtra, which you can use to build common complex tables and manipulate table styles. It imports the pipe %>% symbol from magrittr and verbalizes all the functions in order to permit you to add “layers” to the kable output. In combination with R Markdown, you […]

## Bonus: Built-in Numerical Functions: Solutions

Below are the solutions to these exercises on “Built-in Functions.” #################### # # # Exercise 1 # # # #################### abs(-10) #################### # # # Exercise 2 # # # #################### sqrt(36) #################### # # # Exercise 3 # # # #################### ceiling(4.5678) #################### # # # Exercise 4 # # # #################### floor(4.5678) #################### […]

## Protected: Bonus: Built-in Numerical Functions: Exercises

There is no excerpt because this is a protected post.

## DT Exercises: Solutions

Below are the solutions to these exercises on data tables with DT. #################### # # # Exercise 1 # # # #################### library(DT) datatable(iris) #################### # # # Exercise 2 # # # #################### library(DT) datatable(iris, class = ‘cell-border stripe’) #################### # # # Exercise 3 # # # #################### library(DT) datatable(mtcars) #################### # # […]

## Creating interactive data tables: Exercises

INTRODUCTION The package DT offers an R “window” to JavaScript DataTables. R uses data in matrices’ or data frames’ form; with DT, they can be displayed as tables on HTML pages. The important thing is that filtering, pagination, sorting, etc. are used to transform it into a really useful tool. Before proceeding, please follow our […]

## How to Create Interactive Data Tables With DT

.INTRODUCTION The package “DT” offers an R “window” to JavaScript DataTables. R uses data in matrices’ or data frames’ form and with DT, they can be displayed as tables on HTML pages. The important thing is that filtering, pagination, sorting, etc. are used to transform it into a really useful tool. PACKAGE INSTALLATION & DATA […]

## Lattice Exercises – Solutions

Below are the solutions to these exercises on Lattice Graphs. #################### # # # Exercise 1 # # # #################### library(lattice) attach(mtcars) gear.f<-factor(gear,levels=c(3,4,5), labels=c(“3gears”,”4gears”,”5gears”)) #################### # # # Exercise 2 # # # #################### library(lattice) attach(mtcars) cyl.f <-factor(cyl,levels=c(4,6,8), labels=c(“4cyl”,”6cyl”,”8cyl”)) #################### # # # Exercise 3 # # # #################### library(lattice) attach(mtcars) densityplot(~mpg, main=”Density Plot”, xlab=”Miles […]