Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
exam-statistics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon Pintarelli
exam-statistics
Commits
0597289c
Commit
0597289c
authored
Sep 05, 2016
by
Simon Pintarelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme added
parent
8afaa873
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
Readme.rst
Readme.rst
+21
-0
statistics.Rnw
statistics.Rnw
+6
-0
No files found.
Readme.rst
0 → 100644
View file @
0597289c
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).
statistics.Rnw
View file @
0597289c
% 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment