Absolute and Percentage Frequencies of the Responses to the Items.
Calculates and plots the absolute or percentage frequencies of the responses to each item.
freq(obj, columns, perc = FALSE) ## S3 method for class 'frlist' plot(x, display = TRUE, ask = TRUE, ...)
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. |
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. |
Michela Battauz
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.