Learn R Programming

eatTools

eatTools contains various functions required for R packages eatModel, eatRep, eatPrep and eatGADS. Most functions are related to data preparation, cleaning, descriptive analyses and weighted statistics.

Installation

# Install stable version from CRAN via
install.packages("eatTools")

# Install development version from GitHub via
devtools::install_github("weirichs/eatTools")

Copy Link

Version

Install

install.packages('eatTools')

Monthly Downloads

562

Version

0.7.8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Weirich

Last Published

December 18th, 2024

Functions in eatTools (0.7.8)

set.col.type

Set the Class of Columns in a Data Frame
rbind_fill_vector

Combine vectors of unequal length by row, filling missing columns with NA.
recodeLookup

Recode a variable according to a lookup table
seq2

Sequence generation
roundDF

Round a data.frame.
removeNonNumeric

Removes all non-numeric characters from a string.
removePattern

Removes a specified pattern from a string.
wtdVar

Computed weighted variance
readMultisep

Read in data.frames with separator characters >=1Byte
rbind_common

Combine data.frames by row, using only common columns.
wtdTable

Computed weighted frequency tables
removeNumeric

Removes alphanumeric characters from a string.
multiseq

multiple sequences
wideToLong

Transform wide format data sets into the long format necessary for eatRep analyses
whereAre

Matches a scalar with elements of a vector.
tableUnlist

Frequency table for data frames, e.g. across multiple columns
pwc

Part-whole correlation for numeric data frames
tablePattern

Creates skeleton for frequency tables with desired values
%$$%

Extract Parts of an Object (list)
print_and_capture

Easy integration of (small) tables into (error) messages
descr

Descriptive statistics for one or several variables
contr.wec.weighted

Calculates contrasts for a weighted factor variable based on weighted effect coding
do_call_rbind_withName

Row bind a list while assigning names to rows
eatTools-package

eatTools: Miscellaneous Functions for the Analysis of Educational Assessments
cleanifyString

Removes special characters
catch_asNumericIfPossible

Use asNumericIfPossible with modified warning.
existsBackgroundVariables

Internally needed function for consistency checks and data preparation.
addLeadingZerosToCharInt

Add leading zeros to all columns that can be identified as integers in a character data.frame
crop

Remove Trailing and Leading Characters From Character Strings
asNumericIfPossible

Convert a Vector, Matrix or Data Frame Into Numeric Values If Possible
makeDataFrame

Converts tbl or data.table objects to plain data.frames for internal processing
facToChar

Transform columns in a data frame
na_omit_selection

Drop rows containing missing values
mergeAttr

Merge Two Data Frames with additional messages and maintain variable attributes
makeTria

Reshapes an unordered covariance/correlation matrix into triangular shape
halveString

Split string exactly in two parts
gsubAll

Pattern matching and replacement
insert.col

Insert Columns into a data.frame at a Specific Position
num.to.cat

Transform continuous variables into ordered factors