Browse Source

tweaked grades example (need some R help in plotting histogram)

Eric Schulte 16 years ago
parent
commit
02634f7d85
1 changed files with 7 additions and 0 deletions
  1. 7 0
      org-babel.org

+ 7 - 0
org-babel.org

@@ -50,8 +50,10 @@ cd ~ && du -sc * |grep -v total
 pie(dirs[,1], labels = dirs[,2])
 pie(dirs[,1], labels = dirs[,2])
 #+end_src
 #+end_src
 
 
+
 *** operate in/on tables (processing grades)
 *** operate in/on tables (processing grades)
 
 
+#+tblname: grades-table
 | student | grade | letter |
 | student | grade | letter |
 |---------+-------+--------|
 |---------+-------+--------|
 |       1 |    18 | F      |
 |       1 |    18 | F      |
@@ -79,6 +81,11 @@ end
 rand(100)
 rand(100)
 #+end_src
 #+end_src
 
 
+#+srcname: show-distribution
+#+begin_src R :var grades=grades-table
+
+#+end_src
+
 
 
 ** communication between people
 ** communication between people