The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of frequency is to provide quick and easy frequency tables from SPSS, SAS and other data files in a format that is familiar to SPSS and SAS users. Frequencies are generated with variable labels and value labels where applicable.
You can install frequency from GitHub with:
# install.packages("devtools")
::install_github("wilcoxa/frequency") devtools
Using foreign:
library(frequency)
library(foreign)
<- read.spss("mydat.sav")
dat
freq(dat) # entire dataset
freq(dat$foo) # only one variable
freq(dat[3:5]) # specific variables
Using haven:
library(frequency)
library(haven)
<- read_sav("mydat.sav", user_na = TRUE)
dat
freq(dat)
freq(dat$foo)
freq(dat[3:5])
To automatically open html output:
options(frequency_open_output = TRUE)
freq(dat)
Alternately check interactively at the console:
# produce a list of tables
<- freq(dat)
x 1] x[
Save output:
freq(dat, file = "myfile.html")
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.