Commit 0597289c authored by Simon Pintarelli's avatar Simon Pintarelli

readme added

parent 8afaa873
Installation
===============
Required packages in R: ``dplyr, ggplot2, reshape, knitr``. Use ``install.packages('pkngname')`` in R shell.
Usage
======
.. code-block:: R
library(knitr)
knit('statistics.Rnw')
Data is read form a csv file ``data.csv`` with columns ``Nummer, Familienname, A1,..., An`` in
``ISO-8859-1`` encoding. Change the parameters in ``USER SETTINGS`` on line 103 in
``statistics.Rnw`` to adapt the grading scale to your needs.
`ess-mode <http://ess.r-project.org/>`_ in emacs supports convenient editing of R and Rnw files (noweb files with R code blocks).
% Author: Simon Pintarelli <simon.pintarelli@sam.math.ethz.ch>
% Emacs hint: use M-x ess-noweb-set-code-mode, then type R-mode
\documentclass[a4paper]{article}
......@@ -154,6 +155,11 @@ plot1 + theme(legend.title=element_blank())
print(xtable(data.frame(Grade=scale$grade[I], Points=scale$s[I])), include.rownames=FALSE, floating=FALSE)
@
<<out1, echo=FALSE>>=
ncand <- nrow(grades)
passed <- sum(grades$grade>=4)
@
\vspace{0.5cm}
{\Large \Sexpr{ passed } of \Sexpr{ncand} candidates have passed.}
\pagebreak
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment