Skip to content

R Stimulation II--Dynamic report by knitr(intermediat­e, online,RS002)

Photo of Vivian Zhang
Hosted By
Vivian Z.
R Stimulation II--Dynamic report by knitr(intermediat­e, online,RS002)

Details

R Stimulation program track 2 ---Dynamic Reporting by Knitr

We will focus on the book http://www.amazon.com/Dynamic-Documents-knitr-Chapman-Series/dp/1482203537

and a few real word show cases.

Date: April 1st to May 20th

Length: 7 weeks

Format: online course room, go to http://www.nycdatascience.com

Course Content:

-----1st week

Content

preparation before compilation

introduction of all needed tools

install packages,configure rstudio

special preparation for lyx, emacs users

simple markdown, latex examples

main functions of knitr,knit(),spin()

Assignment

make simple analytic reports

regression, use Meteorite data to generate a decision tree algorithm report

——2nd week Content

options and syntax of each block

output options, print(),

make tables

Local options, global options

highlighted code

reformatting by format()

show and hide codes and insertaion

Assignment

generate tables using different tables, such as hmisc, xtable,tables, sjplot

make spss and sas style of tables

——3rd week:

Content

graphic drive and cache

graphic control, graphic device, allignment, font, size,

how to use graph in latex, file path of graphics

how to turn on and turn off cache

how to start and delete cache and at when

how to force re-cache at certian time points

Set cache dependency and cache configuration between code blocks in three ways

  1. as long as there is update, dependent block will update and reset.

2)part B depends on part A,we manually update B

3)Analyze through code, automatically update(99% reliability)

Assignment

make animation

demo presentation using animation package for two purposes:

  1. demonstration goal

demonstrate methodology and principles

  1. analytic goal

draw different plots based on the conditions

how to control the movement inside of plot, such as regression between two variables, change in surface, 3D effect

——4th week Content

Book chapter 9, 10 ,11 of Yihui Xie's new book

a) quotation relationship among blocks

file management through relationship among main file and child files

b) extension between code blocks

hook(),

after generate your graph, cut sides of the plot, or compress the plots

c)language engine: c++, python

Assignment

use templates to generate report,

make 50 reports on the fly for diferent states

optional hw (which depends on whether you program in c++,python)

——5th week Content

example in application

package vignette

write your analysis into function and put in your R package

make documentation for your function

make your vignette and explain the analysis in the report

Assignment

write your own R packages with the basic skeleton, a few dummy functions with your own stuff, we will supply you a structured folder to get started

——6th week Content

examples in application

make your own website, dynamically make a website such as our website: http://vis.supstat.com/

Assignment

make your own blog on github

——7th week

exmaples in application

make your own book

Assignment

turn all students' homework submission into a book

Photo of NYC Data Science Academy group
NYC Data Science Academy
See more events
NYC Data Science Academy Online Courses
www.nycdatascience.com · New York, NY