freq {fsia} | R Documentation |
Absolute and Percentage Frequencies of the Responses to the Items.
Description
Calculates and plots the absolute or percentage frequencies of the responses to each item.
Usage
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 |
columns |
A vector containing which columns to use. Columns can be specified by name or number. |
perc |
logical; if |
x |
An object of class |
display |
logical; if |
ask |
logical; if |
... |
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 |
key |
the key of the item. |
Author(s)
Michela Battauz
See Also
Examples
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)