DescTools v0.99.8.1

0

Monthly downloads

0th

Percentile

by Andri Signorell

Tools for descriptive statistics

DescTools contains a bunch of basic statistic functions and convenience wrappers for efficiently describing data, creating specific plots, doing reports using MS Word, Excel or PowerPoint. The package's intention is to offer a toolbox, which facilitates the (notoriously time consuming) first descriptive tasks in data analysis, consisting of calculating descriptive statistics, drawing graphical summaries and reporting the results. Many of the included functions can be found scattered in other packages and other sources written partly by Titans of R. The reason for collecting them here, was primarily to have them consolidated in ONE instead of dozens of packages (which themselves might depend on other packages which are not needed at all), and to provide a common and consistent interface as far as function and arguments naming, NA handling, recycling rules etc. are concerned. Google style guides were used as naming rules (in absence of convincing alternatives). The 'camel style' was consequently applied to functions borrowed from contributed R packages as well.

Functions in DescTools

Name Description
Atkinson Calculate the Atkinson Index
ExpFreq Expected frequencies
CronbachAlpha Cronbach's Coefficient Alpha
Frac Return the Fractional Part of a Numeric Value
AllDuplicated Index Vector of All Values Involved in Ties
DrawEllipse Draw an Ellipse
SetAlpha Add an Alpha Channel To a Color
JonckheereTerpstraTest Exact Version of Jonckheere-Terpstra Test
CochranQTest Cochran's Q test
Desc Describe Data
Desc.numeric Describe a numeric vector
DrawCircle Draw a Circle
BoxedText Add Text in a Box to a Plot
BinomDiffCI Confidence Interval for a Difference of Binomials
AndersonDarlingTest Anderson-Darling Test of Goodness-of-Fit
Large Kth Smallest/Largest Values
ClipToVect Reformat a Table in the Clipboard as Vector
ChooseColorDlg Display Color Dialog to Choose a Color
CochranArmitageTest Cochran-Armitage test for trend
DegToRad Convert Degrees to Radians and vice versa
BinToDec Converts numbers from binmode, octmode or hexmode to decimal and vice versa
ICC Intraclass Correlations (ICC1, ICC2, ICC3 from Shrout and Fleiss)
AUC Area Under the Curve
IsEuclid Is a Distance Matrix Euclidean?
MeanDiffCI Confidence Intervals for Difference of Means
LsFct List Functions of a Package
ColToHsv R Color to HSV Conversion
DrawAnnulus Draw One or Several Annuli
Desc.integer Describe an integer variable
HmsToSec Convert h:m:s To/From Seconds
Between Between Operators Check, if a Value Lies Within a Given Range
MeanCI Confidence Interval for the Mean
Label Label Attribute of an Object
AxisBreak Place a Break Mark on an Axis
Coalesce Return the First Element Not Being NA
ColToGrey Convert Colors to Grey/Grayscale
Herfindahl Concentration Measures
AreaIdent Identify Points in Plot Lying within a Rectangle or Polygon
ColToHex Convert a Color into Hex String
PlotACF Combined Plot of a Time Series and it's ACF and PACF
Freq Frequency Table
GetCurrWrd Get a Handle to a Running Word Instance
LOF Local Outlier Factor
AddMonths Add a Month to a Date
Clockwise Calculates Begin and End Angle From a List of Given Angles in Clockwise Mode
EtaSq Effect size calculations for ANOVAs
Explore Interactive Explorer
ErrBars Add Error Bars to an Existing Plot
CramerVonMisesTest Cramer-von Mises test for normality
Canvas Canvas for Geometric Plotting
BoxCoxLambda Automatic selection of Box Cox transformation parameter
Entropy Shannon Entropy and Mutual Information
DrawBezier Draw a Bezier Curve
DrawRegPolygon Draw Regular Polygon(s)
Date Functions Basic Date Functions
Contrasts Pairwise Contrasts
Gini Gini Coefficient
PlotViolin Plot Violins Instead of Boxplots
BinomCI Confidence Intervals for Binomial Proportions
PlotQQ QQ-Plot for Any Distribution
MeanSE Standard error of mean
KendallTauB Kendall tau-b
BoxCox Box Cox Transformation
MosesTest Moses Test of Extreme Reactions
MeanAD Mean Absolute Deviation From a Center Point
HighLow Return the Lowest and the Highest Values and Their Frequencies
StrPos Find Position of First Occurrence Of a String
Gmean Geometric Mean and Standard Deviation
PostHocTest Post-Hoc Tests
Desc.logical Describe a dichotomous variable
Closest Find the Closest Value
PlotMultiDens Plot Multiple Density Curves
FctArgs Retrieve a Functions' Arguments
BreslowDayTest Breslow-Day Test for Homogeneity of the Odds Ratios
Lambda Goodman Kruskal Lambda
DrawAnnulusSector Draw a Sector of an Annulus
WrdCaption Insert Caption to Word
Desc.factor Describe a Factor, an Ordered Factor Or a Character Vector
DescTools-package Tools for Efficient Descriptive Statistics
ConDisPairs Concordant and Discordant Pairs
CatTable Function to write a table
DescWrd Use Word as Reporting Tool for Describing Data
CohenKappa Cohen's Kappa and Weighted Kappa
Desc.formula Describe Variables by Groups
DrawBand Draw Confidence Band
DivCoefMax Maximal value of Rao's diversity coefficient also called quadratic entropy
FormatSig Significance Representation of a P-Value
DivCoef Rao's diversity coefficient also called quadratic entropy
Dummy Generate Dummy Codes for a Factor
FormatFix Format to a fixed format representation
Permn Determine All Possible Permutations of a Set
DescTools-internal Internal DescTools objects
IsDichotomous Test If a Variable Contains Only Two Unique Values
GiniSimpson Compute Gini-Simpson Coefficient
GoodmanKruskalTauA Goodman Kruskal's Tau a
Association measures Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
ConnLines Add Connection Lines to a Barplot
LinScale Perform a linear scaling of x
ColorLegend Add a ColorLegend to a Plot
Recode Recode a Factor
Hmean Harmonic mean
GetNewXL Create a new Excel Instance
JarqueBeraTest (Robust) Jarque Bera Test
PpPlot Add Slides, Insert Texts and Plots to PowerPoint
IsDate Check if an Object is of Type Date
BartelsRankTest Bartels Rank Test
HexToCol Identify closest match to a color given by a hexadecimal string
Mar Set Plot Margins
%like% Like operator
Mbind Bind k nxm-matrices with the same dimension
InDots Is a Specific Argument in the Dots-Arguments?
Rotate Rotate a Geometric Structure
SignTest Sign Test
Desc.table Describe a 2-dimensional Contingency Table
TheilU Theil's U index of inequality
ToWide Reshape a Vector From Long to Wide Shape Or Vice Versa
PlotMarDens Scatterplot with Marginal Densities
median.factor Median for Ordered Factors
IsOdd Checks if an integer is even or odd
MixColor Compute the convex combination of two colors
ParseFormula Parse a Formula and Create a Model Frame
PlotArea Create an Area Plot
WhichFlags Get the Flags, Factors or Numerics of a data.frame
DrawArc Draw Elliptic or Circular Arc(s)
CutQ Create a Factor Variable Using the Quantiles of a Continuous Variable
WrdPlot Insert Active Plot to Word
Desc.data.frame Describe a data.frame Or a List
FindColor Get Color on a Defined Color Range
IsWhole Is x a Whole Number?
OddsRatio Odds Ratio Estimation and Confidence Intervals
GCD, LCM Greatest Common Divisor and Least Common Multiple
PlotBag PlotBag, a bivariate boxplot
WrdInsertBookmark Insert a Bookmark, Goto Bookmark and Update the Text of a Bookmark
Kappam Kappa for m raters
KendallW Kendall's Coefficient of Concordance W
Strata Stratified sampling
LOCF Last Observation Carried Forward
Lc Lorenz Curve
KrippAlpha Krippendorff's Alpha Reliability Coefficient
split.formula Formula Interface for Split
Ndec Count Decimal Places of a Number
SiegelTukeyTest Siegel-Tukey Test for equality in variability
GetNewPP Create a new PowerPoint Instance
SampleTwins Sample Twins
PlotBubble Draw a Bubble Plot
WrdInsTab Insert a Table in a Word Document
LogLin Log Linear Hybrid, Generalized Log
RunsTest Runs Test for Randomness
PageTest Exact Page Test for Ordered Alternatives
Factorize Prime Factorization of Integers
Outlier Outlier
PairApply Pairwise Calculations
XLGetWorkbook Get the Values of All Sheets of an Excel Workbook
Untable Recover Original Data From Contingency Table
reorder.factor Reorder the Levels of a Factor
PlotHorizBar Plot Horizontal Bars
PlotDotCIp Plot a Dotchart with Binomial Confidence Intervals
d.world Some World Population and Geographic Data
PlotDotCI Plot a Dotchart with Confidence Intervals
GetAllSubsets Get All Subsets out of a List of Elements
PlotFct Plot a Function
PlotMatrix Scatterplot Matrix
WrdSetFont Set the Font in Word
Mode Mode
ParseSASDatalines Parse a SAS Dataline Command
MoveAvg Moving Average
StrRev Reverse a String
Keywords List valid Keywords for R man pages
PoissonCI Poisson Confidence Interval
%nin% Find Matching (or Non-Matching) Elements
Recycle Recyle a List of Elements
LehmacherTest Lehmacher's Test for Marginal Homogenity
Logit Generalized Logit and Inverse Logit function
DescTools Palettes Some Custom Palettes
PearsonTest Pearson chi-square test for normality
RgbToCol Find the Named R-Color Which Is Nearest to a Given RGB-Color
Mround Round to Multiple
Measures of Shape Skewness and Kurtosis
PlotCirc Plot Circular Plot
PartCor Find the Correlations for a Set x of Variables With Set y Removed
PlotCandlestick Plot Candlestick Chart
Str Compactly Display the Structure of an Arbitrary R Object
PolarGrid Plot a Grid in Polar Coordinates
lines.lm Add a Linear Regression Line
SelectVarDlg Select Elements of a Set by Click
SomersDelta Somers' Delta
Midx Find the Midpoints of a Numeric Vector
SortMixed Order or Sort Strings With Embedded Numbers So That The Numbers Are In The Correct Order
MedianCI Confidence Interval for the Median
LeveneTest Levene's Test for Homogeneity of Variance
ImportDlg Get Path of a Data File to Be Opened
Ray Compact Information About the Columns of a Data Frame
PercTable Percentage Table
VecRot Vector Rotation
XLView Use Excel as Viewer for a Data.Frame
IsValidWrd Check Word Pointer
StuartMaxwellTest Stuart-Maxwell Marginal Homogeneity Test
day.name Build-in Constants Extension
RobScale Robust Scaling With Median and Mad
Sort Sort a Vector, a Matrix, a Table or a Data.frame
MultinomCI Confidence Intervals for Multinomial Proportions
SpearmanRho Spearman Rank Correlation
StrIsNumeric Does a String Contain Only Numeric Data
identify.formula Identify points in a plot using a formula.
lines.loess Add a Loess Smoother
PlotVenn Plot a Venn Diagram
PtInPoly Point in Polygon
StrDist Compute Distances Between Strings
PlotWeb Plot a Web of Connected Points
%c% Concatenates two strings without any separator.
PlotCorr Plot a Correlation Matrix
RelRisk Relative Risk
RobRange Robust Range
WrdText Insert Normal Text to Word
PlotFdist Frequency Distribution Plot
WrdTable Produces a Table in Word
ScheffeTest Scheffe Test for Pairwise and Otherwise Comparisons
%overlaps% Determines If And How Extensively Two Date Ranges Overlap
StrCap Capitalize the First Letter of a String
UncertCoef Uncertainty Coefficient
WrdR Insert a R Command and It's Output in a Word Document
PlotPolar Plot Values on a Circular Grid
ZTest Z Test for Known Population Standard Deviation
SpreadOut Spread out a vector of numbers to a minimum interval
StrTrim Trim a string
ColToRgb Color to RGB Conversion
StrChop Split a String in a Number of Pieces With Fixed Length
StrTrunc Truncate Strings and Add Ellipses If a String is Truncated.
StrAbbr String Abbreviation
PlotTreemap Create a Treemap
IsPrime IsPrime Property
StrPad Pad a String With Justification
LogSt Started Logarithmic Transformation and It's Inverse
MHChisqTest Mantel-Haenszel Chi-Square Test
WoolfTest Woolf Test
SysInfo System Information And DescTools Options
Fibonacci Fibonacci Series
PlotRCol Information plots
VarCI Confidence Interval for the Variance
HodgesLehmann Hodges-Lehmann Estimator of Location
TukeyBiweight Calculate Tukey's Biweight Robust Mean
PlotDesc Display descriptive plots
d.periodic Periodic Table of Elements
Zodiac Calculate the Zodiac of a Date
StrVal Extract All Numbers From a String
PlotMonth Plot Monthly or Seasonal Effects Of a Univariate Time Series
FixToTab Text to Table
XLGetRange Get the Values of Cell Range(s) in Excel
d.diamonds Data diamonds
Winsorize Winsorize
Primes Find all Primes Less Than n
PlotPyramid Draw a Back To Back Pyramid Plot
Rev Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
d.pizza Data pizza
AscToChar Converts ASCII Codes to Characters and Vice Versa
StrCountW Count Words in a String
Trim Trim a Vector
HoeffD Matrix of Hoeffding's D Statistics
GetNewWrd Create a new Word Instance
FisherZ Fisher r to z and z to r and confidence intervals
CartToPol Transform Cartesian to Polar Coordinates and vice versa
Date Create a Date from Numeric Representation
GoodmanKruskalGamma Goodman Kruskal's Gamma
NPV One Period Returns, Net Present Value and Internal Rate of Return
Rename Change Names of a Named Object
StuartTauC Stuart Tau C
ShapiroFranciaTest Shapiro-Francia test for normality
UnitConv Unit Conversion
Vigenere Vigenere Cypher
Assocs Association Measures
Desc.Date Describe a Date Vector
Desc.flags Describe a Set of Dichotomous Variables
GetPairs Get All Pairs out of one or two Sets of Elements
HexToRgb Convert a Hexstring Color to a Matrix With Three Red/Green/Blue Rows
HuberM Safe (generalized) Huber M-Estimator of Location
HotellingsT2Test Hotelling's T2 Test
LillieTest Lilliefors (Kolmogorov-Smirnov) test for normality
PasswordDlg Password Dialog
PlotFaces Chernoff Faces
TextContrastColor Choose Textcolor Depending on Background Color
wdConst Word VBA constants
No Results!

Last month downloads

Details

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/DescTools)](http://www.rdocumentation.org/packages/DescTools)