Description Usage Arguments Value Author(s) References See Also Examples
Read '.xls' files which are written by the Microsoft Windows program 'z-Tree'. The latter is a software for developing and carrying out economic experiments (see <http://www.ztree.uzh.ch/> for more information).
1 2 3 | zTreeTables(filelist, tables = c("globals", "subjects"), sep = "\t",
zTree.silent=getOption("zTree.silent"),
zTree.encoding=getOption("zTree.encoding"))
|
filelist |
a vector of 'z-Tree' (xls-) filenames. |
tables |
a vector of table names. If you leave this empty, globals and subjects will be read. If you set tables=NULL, all tables will be read. |
sep |
Field separator. 'z-Tree' uses "\t" as a separator. If you have a manipulated file, you might need to change the separator. |
zTree.silent |
If |
zTree.encoding |
The default encoding is "LATIN1". |
A list of all tables (e.g. "globals", "subjects", etc.)
Oliver Kirchkamp
Urs Fischbacher. "z-Tree Manual 2.1 Experimenter's Manual." Zurich. 2002.
See also zTreeSbj
1 2 3 4 5 6 7 8 | ## Not run:
zTT <- zTreeTables(c("080712_1412.xls","080712_1818.xls"))
with(zTT$subjects, table(Treatment,Period))
To read all tables from all sessions in directories below the current one:
sessions<-list.files(".","[0-9]{6}_[0-9]{4}.xls",recursive=TRUE)
zTT<-zTreeTables(sessions,tables=NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.