zTreeSbj: Read '.sbj' files generated by 'z-Tree' into R

Description Usage Arguments Value Author(s) References See Also Examples

Description

Read '.sbj' 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).

Usage

1
2
zTreeSbj(files, sep = "\t", zTree.silent=getOption("zTree.silent"),
	zTree.encoding=getOption("zTree.encoding"))

Arguments

files

A vector of 'z-Tree' .sbj filenames

sep

'z-Tree' uses "\t" as a separator. If you have a manipulated file, you might need to change the separator.

zTree.silent

If TRUE, generates less verbose output.

zTree.encoding

The default encoding is "LATIN1".

Value

A matrix with one entry for each subject.

Author(s)

Oliver Kirchkamp

References

Urs Fischbacher. "z-Tree Manual 2.1 Experimenter's Manual." Zurich. 2002.

See Also

See also zTreeTables

Examples

1
2
3
4
5
6
## Not run: 
files <- list.files(pattern = "*.sbj$",recursive=TRUE)
fname <- sub(".*/","",files)
sbj <- zTreeSbj(aggregate(files,list(fname),function(x) x[1])$x)

## End(Not run)

kirchkamp/zTree documentation built on May 20, 2019, 10:23 a.m.