| DUMPgrades {ProfessR} | R Documentation |
Dump grades to a file
DUMPgrades(D1, file = NULL, id = NULL, names = NULL)
D1 |
list output from do.grades |
file |
file name, a csv will be added as a suffix |
id |
vector of student IDs |
names |
character vector of student names |
Side effects
Jonathan M. Lees<jonathan.lees@unc.edu>
do.grades
DUMPgrades
misc
g = rnorm(n=130, m=82, sd=10) g[g>100] = 100 g[g<1] = 1 B = boxplot(g) divs = c(min(g), B$stats[1:4] + diff(B$stats)/2, max(g) ) ### to run interactively, remove the divs ### D1 = do.grades(g, tit="GEOL 105 Exam 1") ### otherwise use previously calculated divs: D1 = do.grades(g, divs=divs, tit="GEOL 105 Exam 1") DUMPgrades(D1, file="TEST1grades" )
R version 2.9.0 (2009-04-17)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ProfessR)
> png(filename="images/DUMPgrades_%03d.png" ,width=480, height=480)
> ### Name: DUMPgrades
> ### Title: Dump grades to a file
> ### Aliases: DUMPgrades
> ### Keywords: misc
>
> ### ** Examples
>
>
> g = rnorm(n=130, m=82, sd=10)
> g[g>100] = 100
> g[g<1] = 1
>
> B = boxplot(g)
>
> divs = c(min(g), B$stats[1:4] + diff(B$stats)/2, max(g) )
>
>
> ### to run interactively, remove the divs
> ### D1 = do.grades(g, tit="GEOL 105 Exam 1")
>
> ### otherwise use previously calculated divs:
> D1 = do.grades(g, divs=divs, tit="GEOL 105 Exam 1")
Grade divisions:
63.14409
70.3788
80.8036
87.673
95.67614
100
Letter Grade Distribution:
1 A+ 7
2 A 2
3 A- 4
4 B+ 9
5 B 14
6 B- 10
7 C+ 11
8 C 13
9 C- 17
10 D+ 12
11 D 11
12 D- 8
13 F 12
[1] "Mean Score= 74.8978200701129"
> DUMPgrades(D1, file="TEST1grades" )
>
>
>
>
>
> dev.off()
null device
1
>