Learn R Programming

xxIRT (version 2.0.1)

freq: Count Frequency

Description

Count (cumulative) frequency and percentage using user-defined values

Usage

freq(x, val)

Arguments

x

a vector being counted

val

a vector of valid counting values

Examples

Run this code
# NOT RUN {
freq(sample(1:4, 150, replace=TRUE), 5:1)
freq(sample(1:4, 150, replace=TRUE), 1:3)
# }

Run the code above in your browser using DataLab