Skip to content
Snippets Groups Projects
Commit 5b02a100 authored by gdutz's avatar gdutz
Browse files

Remove the now ignored directory man

parent e271db08
No related branches found
No related tags found
No related merge requests found
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/leo_format.R
\name{leo.format}
\alias{leo.format}
\title{Condenses rows and columns of a frequency table by summing the cells.}
\usage{
leo.format(a, upper, lower, left, right)
}
\arguments{
\item{a}{A leo_table object.}
\item{upper}{An integer.}
\item{lower}{An integer.}
\item{left}{An integer.}
\item{right}{An integer.}
}
\value{
An xtabs object.
}
\description{
Condenses rows and columns of a frequency table by summing the cells.
}
\examples{
example <- example
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/leo_design.R
\name{leo_getdesign}
\alias{leo_getdesign}
\title{Creates survey design objects for LEO 2010 and 2018.}
\usage{
leo_getdesign(leodata, year = 2018)
}
\arguments{
\item{leodata}{Original dataframe of LEO 2010 or LLEO 2018.}
\item{year}{Either 2010 or 2018.}
}
\value{
A survey design object.
}
\description{
Creates survey design objects for LEO 2010 and 2018.
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/leo_svydesign.R
\name{leo_svydesign}
\alias{leo_svydesign}
\title{Creates survey design objects for LEO 2010 and 2018.}
\usage{
leo_svydesign(df, survey_name = "leo2018", list = FALSE)
}
\arguments{
\item{df}{Survey data}
\item{survey_name}{leo2010 and leo2018 (leo2018hoch) implemented}
}
\value{
A survey design object.
}
\description{
Creates survey design objects for LEO 2010 and 2018.
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/leo_tab.R
\name{leo_tab}
\alias{leo_tab}
\title{Creates survey design objects for LEO 2010 and 2018.}
\usage{
leo_tab(
varName,
Richtung = 1,
sheet.Name = "Mappe",
Excel.Name,
ListenName = leoList,
pWert = FALSE
)
}
\arguments{
\item{varName}{Original dataframe of LEO 2010 or LLEO 2018.}
\item{Richtung}{Either 2010 or 2018.}
\item{Excel.Name}{Either 2010 or 2018.}
\item{ListenName}{Either 2010 or 2018.}
\item{pWert}{Either 2010 or 2018.}
\item{sheet.name}{Either 2010 or 2018.}
}
\value{
A dataframe with frequencies
}
\description{
Creates survey design objects for LEO 2010 and 2018.
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/leo_table.R
\name{leo_table}
\alias{leo_table}
\title{Calculates frequency tables for multiply imputed and weighted data.}
\usage{
leo_table(rowvar, colvar, supercolvar, weight, data)
}
\arguments{
\item{rowvar}{A vector or a dataframe of multiply imputed variables.}
\item{colvar}{A vector or a dataframe of multiply imputed variables.}
\item{supercolvar}{A vector or a dataframe of multiply imputed variables.}
\item{weight}{A vector with frequency weights.}
\item{data}{A dataframe that contains above variables}
}
\value{
An xtabs object.
}
\description{
Calculates frequency tables for multiply imputed and weighted data.
}
\examples{
leo <- haven::read_sav("~/leo.sav")
leo$f001 <- labelled::to_factor(leo$f001)
leo$altgr5 <- labelled::to_factor(leo$altgr5)
pvs <- leo \%>\% select(matches("^alpha.pv[0-9]+")) \%>\% to_factor()
# 1-way
leo_table(rowvar = pvs, weight = leo$pgewges, data = leo)
# 2-way
leo_table(rowvar = leo$pol001, colvar = pvs, weight = leo$pgewges, data = leo)
# 3-way
leo_table(rowvar = pvs, colvar = leo$altgr5, supercolvar = leo$f001, weight = leo$pgewges, data = leo)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment