experiment_data_frame: Create an appropriate data frame for an experiment

Description Usage Arguments See Also Examples

View source: R/utils.R

Description

This is a convenience function. It creates a data frame with N * periods rows, with a column id varying from 1 to N and a column period varying from 1 to periods. The data frame is sorted by period, then by ID. N and periods can be specified manually, or you can just pass in the experiment object and the function will guess for you.

Usage

1

Arguments

experiment

an Experiment object

N

number of subjects

periods

number of periods

...

other arguments to data.frame

See Also

Other development tools: identify_seats; web_test; write_data

Examples

1
2
3
4
expt <- experiment(N=5)
s1 <- text_stage(page="<html><body>got here</body></html>")
add_stage(expt, s1, period(), times=5)
mydf <- experiment_data_frame(expt)

hughjonesd/betr documentation built on May 17, 2019, 9:11 p.m.