freq: Absolute and Percentage Frequencies of the Responses to the...

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculates and plots the absolute or percentage frequencies of the responses to each item.

Usage

1
2
3
freq(obj, columns, perc = FALSE)
## S3 method for class 'frlist'
plot(x, display = TRUE, ask = TRUE, ...)

Arguments

obj

An object containing the data imported by function read.formscanner and eventually the key added by function addkey.

columns

A vector containing which columns to use. Columns can be specified by name or number.

perc

logical; if TRUE percentage frequencies are calculated.

x

An object of class frlist returned by function freq.

display

logical; if TRUE the frequencies are displayed on the plot.

ask

logical; if TRUE the user is asked for input, before a new figure is drawn.

...

further arguments passed to or from other methods.

Value

Function freq returns an abject of class frlist containing a list with components

item

the name of the item.

tab

an object of class table containing the frequencies.

key

the key of the item.

Author(s)

Michela Battauz

See Also

read.formscanner

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(test)
data(key)
testk <- addkey(test, keydata = key)

fr <- freq(obj = testk, col = c("Question03", "Question04"))
fr
par(mfrow=c(1,2))
plot(fr, ask = FALSE)
fr <- freq(obj = testk, col = 2:11, perc = TRUE)
fr
par(mfrow = c(2,5))
plot(fr, ask = FALSE)

fsia documentation built on May 2, 2019, 5:42 a.m.