results_get: Retrieve rows with judgment information for a job.

Description Usage Arguments Details Value See Also Examples

Description

results_get retrieves rows with judgment information for the job ID indicated in the request. Specifying unit retrieves only judgments for a specific row (unit).

Usage

1
2
results_get(id, n = Inf, unit = NULL, type = c("aggregated", "full"),
  verbose = TRUE, ...)

Arguments

id

A character string containing an ID for job.

n

Number of rows to return. Specify only n or unit, but not both.

unit

A “unit id” for a specific row. Specify only n or unit, but not both.

type

How responses should be aggregated ("aggregate", to take aggregated responses; or "full" for all responses)

verbose

A logical indicating whether to print additional information about the request.

...

Additional arguments passed to cf_query.

Details

Note that multiple choice responses get aggregated by collapsing all responses into a single value.

Value

A data.frame containing judgment information

See Also

job_status, report_get

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
# create new job
f1 <- system.file("templates/instructions1.html", package = "crowdflower")
f2 <- system.file("templates/cml1.xml", package = "crowdflower")
j <- job_create(title = "Job Title", 
                instructions = readChar(f1, nchars = 1e8L),
                cml = readChar(f2, nchars = 1e8L))

# add data
d <- data.frame(variable = 1:3)
job_add_data(id = j, data = d)

# launch job
job_launch(id = j)

# get first result
results_get(id = j, n = 1)

# get all results
results_get(id = j)

# delete job
job_delete(j)

## End(Not run)

cloudyr/crowdflower documentation built on May 13, 2019, 8:20 p.m.