Tools for descriptive statistics


[Up] [Top]

Documentation for package ‘DescTools’ version 0.99.8.1

Help Pages

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z misc

DescTools-package Tools for Efficient Descriptive Statistics

-- A --

AddMonths Add a Month to a Date
AllDuplicated Index Vector of All Values Involved in Ties
AndersonDarlingTest Anderson-Darling Test of Goodness-of-Fit
AreaIdent Identify Points in Plot Lying within a Rectangle or Polygon
AscToChar Converts ASCII Codes to Characters and Vice Versa
Assocs Association Measures
Atkinson Calculate the Atkinson Index
AUC Area Under the Curve
AxisBreak Place a Break Mark on an Axis

-- B --

BartelsRankTest Bartels Rank Test
Between Between Operators Check, if a Value Lies Within a Given Range
BinomCI Confidence Intervals for Binomial Proportions
BinomDiffCI Confidence Interval for a Difference of Binomials
BinToDec Converts numbers from binmode, octmode or hexmode to decimal and vice versa
BoxCox Box Cox Transformation
BoxCoxInv Box Cox Transformation
BoxCoxLambda Automatic selection of Box Cox transformation parameter
BoxedText Add Text in a Box to a Plot
BreslowDayTest Breslow-Day Test for Homogeneity of the Odds Ratios

-- C --

Canvas Canvas for Geometric Plotting
CartToPol Transform Cartesian to Polar Coordinates and vice versa
CatTable Function to write a table
CharToAsc Converts ASCII Codes to Characters and Vice Versa
ChooseColorDlg Display Color Dialog to Choose a Color
ClipToVect Reformat a Table in the Clipboard as Vector
Clockwise Calculates Begin and End Angle From a List of Given Angles in Clockwise Mode
Closest Find the Closest Value
Coalesce Return the First Element Not Being NA
CochranArmitageTest Cochran-Armitage test for trend
CochranQTest Cochran's Q test
CochranQTest.default Cochran's Q test
CochranQTest.formula Cochran's Q test
CohenKappa Cohen's Kappa and Weighted Kappa
ColorLegend Add a ColorLegend to a Plot
ColToGray Convert Colors to Grey/Grayscale
ColToGrey Convert Colors to Grey/Grayscale
ColToHex Convert a Color into Hex String
ColToHsv R Color to HSV Conversion
ColToRgb Color to RGB Conversion
compute.bagplot PlotBag, a bivariate boxplot
Concatenate Strings Concatenates two strings without any separator.
ConDisPairs Concordant and Discordant Pairs
ConnLines Add Connection Lines to a Barplot
ContCoef Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
Contrasts Pairwise Contrasts
CorCI Fisher r to z and z to r and confidence intervals
CramerV Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
CramerVonMisesTest Cramer-von Mises test for normality
CronbachAlpha Cronbach's Coefficient Alpha
CutQ Create a Factor Variable Using the Quantiles of a Continuous Variable

-- D --

d.diamonds Data diamonds
d.periodic Periodic Table of Elements
d.pizza Data pizza
d.units Unit Conversion
d.world Some World Population and Geographic Data
Date Create a Date from Numeric Representation
Day Basic Date Functions
day.abb Build-in Constants Extension
day.name Build-in Constants Extension
Day<- Basic Date Functions
DecToBin Converts numbers from binmode, octmode or hexmode to decimal and vice versa
DecToHex Converts numbers from binmode, octmode or hexmode to decimal and vice versa
DecToOct Converts numbers from binmode, octmode or hexmode to decimal and vice versa
DegToRad Convert Degrees to Radians and vice versa
Desc Describe Data
Desc.character Describe a Factor, an Ordered Factor Or a Character Vector
Desc.data.frame Describe a data.frame Or a List
Desc.Date Describe a Date Vector
Desc.default Describe Data
Desc.factor Describe a Factor, an Ordered Factor Or a Character Vector
Desc.flags Describe a Set of Dichotomous Variables
Desc.formula Describe Variables by Groups
Desc.integer Describe an integer variable
Desc.Lc Lorenz Curve
Desc.list Describe a data.frame Or a List
Desc.logical Describe a dichotomous variable
Desc.matrix Describe a 2-dimensional Contingency Table
Desc.numeric Describe a numeric vector
Desc.ordered Describe a Factor, an Ordered Factor Or a Character Vector
Desc.table Describe a 2-dimensional Contingency Table
DescFactFact Describe Variables by Groups
DescFactNum Describe Variables by Groups
DescNumFact Describe Variables by Groups
DescNumNum Describe Variables by Groups
DescTools Tools for Efficient Descriptive Statistics
DescToolsOptions System Information And DescTools Options
DescWrd Use Word as Reporting Tool for Describing Data
DescWrd.data.frame Use Word as Reporting Tool for Describing Data
DescWrd.default Use Word as Reporting Tool for Describing Data
DescWrd.formula Use Word as Reporting Tool for Describing Data
DiffDays360 Basic Date Functions
DivCoef Rao's diversity coefficient also called quadratic entropy
DivCoefMax Maximal value of Rao's diversity coefficient also called quadratic entropy
DrawAnnulus Draw One or Several Annuli
DrawAnnulusSector Draw a Sector of an Annulus
DrawArc Draw Elliptic or Circular Arc(s)
DrawBand Draw Confidence Band
DrawBezier Draw a Bezier Curve
DrawCircle Draw a Circle
DrawEllipse Draw an Ellipse
DrawRegPolygon Draw Regular Polygon(s)
Dummy Generate Dummy Codes for a Factor

-- E --

Entropy Shannon Entropy and Mutual Information
ErrBars Add Error Bars to an Existing Plot
EtaSq Effect size calculations for ANOVAs
ExpFreq Expected frequencies
Explore Interactive Explorer

-- F --

Factorize Prime Factorization of Integers
FctArgs Retrieve a Functions' Arguments
Fibonacci Fibonacci Series
FindColor Get Color on a Defined Color Range
FisherZ Fisher r to z and z to r and confidence intervals
FisherZInv Fisher r to z and z to r and confidence intervals
FixToTab Text to Table
Flags Describe a Set of Dichotomous Variables
FormatFix Format to a fixed format representation
FormatSig Significance Representation of a P-Value
Frac Return the Fractional Part of a Numeric Value
Freq Frequency Table

-- G --

GCD Greatest Common Divisor and Least Common Multiple
GetAllSubsets Get All Subsets out of a List of Elements
GetCurrPP Create a new PowerPoint Instance
GetCurrWrd Get a Handle to a Running Word Instance
GetCurrXL Get a Handle to a Running Word Instance
GetNewPP Create a new PowerPoint Instance
GetNewWrd Create a new Word Instance
GetNewXL Create a new Excel Instance
GetPairs Get All Pairs out of one or two Sets of Elements
Gini Gini Coefficient
GiniSimpson Compute Gini-Simpson Coefficient
Gmean Geometric Mean and Standard Deviation
GoodmanKruskalGamma Goodman Kruskal's Gamma
GoodmanKruskalTauA Goodman Kruskal's Tau a
Gsd Geometric Mean and Standard Deviation

-- H --

hblue Some Custom Palettes
hecru Some Custom Palettes
Herfindahl Concentration Measures
HexToCol Identify closest match to a color given by a hexadecimal string
HexToDec Converts numbers from binmode, octmode or hexmode to decimal and vice versa
HexToRgb Convert a Hexstring Color to a Matrix With Three Red/Green/Blue Rows
hgreen Some Custom Palettes
HighLow Return the Lowest and the Highest Values and Their Frequencies
Hmean Harmonic mean
HmsToSec Convert h:m:s To/From Seconds
HodgesLehmann Hodges-Lehmann Estimator of Location
HoeffD Matrix of Hoeffding's D Statistics
horange Some Custom Palettes
HotellingsT2Test Hotelling's T2 Test
HotellingsT2Test.default Hotelling's T2 Test
HotellingsT2Test.formula Hotelling's T2 Test
Hour Basic Date Functions
hred Some Custom Palettes
HuberM Safe (generalized) Huber M-Estimator of Location
hyellow Some Custom Palettes

-- I --

ICC Intraclass Correlations (ICC1, ICC2, ICC3 from Shrout and Fleiss)
identify.formula Identify points in a plot using a formula.
ImportDlg Get Path of a Data File to Be Opened
InDots Is a Specific Argument in the Dots-Arguments?
Interval Determines If And How Extensively Two Date Ranges Overlap
IRR One Period Returns, Net Present Value and Internal Rate of Return
IsDate Check if an Object is of Type Date
IsDichotomous Test If a Variable Contains Only Two Unique Values
IsEuclid Is a Distance Matrix Euclidean?
IsLeapYear Basic Date Functions
IsOdd Checks if an integer is even or odd
IsPrime IsPrime Property
IsValidWrd Check Word Pointer
IsWeekend Basic Date Functions
IsWhole Is x a Whole Number?

-- J --

JarqueBeraTest (Robust) Jarque Bera Test
JonckheereTerpstraTest Exact Version of Jonckheere-Terpstra Test
JonckheereTerpstraTest.default Exact Version of Jonckheere-Terpstra Test
JonckheereTerpstraTest.formula Exact Version of Jonckheere-Terpstra Test

-- K --

Kappam Kappa for m raters
KendallTauB Kendall tau-b
KendallW Kendall's Coefficient of Concordance W
Keywords List valid Keywords for R man pages
KrippAlpha Krippendorff's Alpha Reliability Coefficient
Kurt Skewness and Kurtosis

-- L --

Label Label Attribute of an Object
Label.data.frame Label Attribute of an Object
Label.default Label Attribute of an Object
Label<- Label Attribute of an Object
Label<-.data.frame Label Attribute of an Object
Label<-.default Label Attribute of an Object
Lambda Goodman Kruskal Lambda
Large Kth Smallest/Largest Values
Lc Lorenz Curve
LCM Greatest Common Divisor and Least Common Multiple
LehmacherTest Lehmacher's Test for Marginal Homogenity
LeveneTest Levene's Test for Homogeneity of Variance
LeveneTest.default Levene's Test for Homogeneity of Variance
LeveneTest.formula Levene's Test for Homogeneity of Variance
LeveneTest.lm Levene's Test for Homogeneity of Variance
LillieTest Lilliefors (Kolmogorov-Smirnov) test for normality
lines.Lc Lorenz Curve
lines.lm Add a Linear Regression Line
lines.loess Add a Loess Smoother
LinScale Perform a linear scaling of x
LOCF Last Observation Carried Forward
LOCF.data.frame Last Observation Carried Forward
LOCF.default Last Observation Carried Forward
LOCF.matrix Last Observation Carried Forward
LOF Local Outlier Factor
LogGen Log Linear Hybrid, Generalized Log
Logit Generalized Logit and Inverse Logit function
LogitInv Generalized Logit and Inverse Logit function
LogLin Log Linear Hybrid, Generalized Log
LogSt Started Logarithmic Transformation and It's Inverse
LogStInv Started Logarithmic Transformation and It's Inverse
LsData List Functions of a Package
LsFct List Functions of a Package
LsObj List Functions of a Package

-- M --

Mar Set Plot Margins
MarginTable Percentage Table
Mbind Bind k nxm-matrices with the same dimension
MeanAD Mean Absolute Deviation From a Center Point
MeanCI Confidence Interval for the Mean
MeanDiffCI Confidence Intervals for Difference of Means
MeanDiffCI.default Confidence Intervals for Difference of Means
MeanDiffCI.formula Confidence Intervals for Difference of Means
MeanSE Standard error of mean
median.factor Median for Ordered Factors
MedianCI Confidence Interval for the Median
MHChisqTest Mantel-Haenszel Chi-Square Test
Midx Find the Midpoints of a Numeric Vector
Min Basic Date Functions
MixColor Compute the convex combination of two colors
Mode Mode
Month Basic Date Functions
MosesTest Moses Test of Extreme Reactions
MosesTest.default Moses Test of Extreme Reactions
MosesTest.formula Moses Test of Extreme Reactions
MoveAvg Moving Average
Mround Round to Multiple
MultinomCI Confidence Intervals for Multinomial Proportions
MutInf Shannon Entropy and Mutual Information

-- N --

Ndec Count Decimal Places of a Number
Now Basic Date Functions
NPV One Period Returns, Net Present Value and Internal Rate of Return

-- O --

OctToDec Converts numbers from binmode, octmode or hexmode to decimal and vice versa
OddsRatio Odds Ratio Estimation and Confidence Intervals
OPR One Period Returns, Net Present Value and Internal Rate of Return
options Tools for Efficient Descriptive Statistics
OrderMixed Order or Sort Strings With Embedded Numbers So That The Numbers Are In The Correct Order
Outlier Outlier

-- P --

PageTest Exact Page Test for Ordered Alternatives
PageTest.default Exact Page Test for Ordered Alternatives
PageTest.formula Exact Page Test for Ordered Alternatives
PairApply Pairwise Calculations
PalDescTools Some Custom Palettes
PalHelsana Some Custom Palettes
PalRedBlackGreen Some Custom Palettes
PalRedToBlack Some Custom Palettes
PalRedWhiteGreen Some Custom Palettes
PalSteeblueWhite Some Custom Palettes
PalTibco Some Custom Palettes
ParseFormula Parse a Formula and Create a Model Frame
ParseSASDatalines Parse a SAS Dataline Command
PartCor Find the Correlations for a Set x of Variables With Set y Removed
PasswordDlg Password Dialog
PearsonTest Pearson chi-square test for normality
PercTable Percentage Table
PercTable.default Percentage Table
PercTable.formula Percentage Table
PercTable.matrix Percentage Table
PercTable.table Percentage Table
Permn Determine All Possible Permutations of a Set
Phi Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
plot.bagplot PlotBag, a bivariate boxplot
plot.Lc Lorenz Curve
plot.PostHocTest Post-Hoc Tests
PlotACF Combined Plot of a Time Series and it's ACF and PACF
PlotArea Create an Area Plot
PlotArea.default Create an Area Plot
PlotArea.formula Create an Area Plot
PlotBag PlotBag, a bivariate boxplot
PlotBagPairs PlotBag, a bivariate boxplot
PlotBubble Draw a Bubble Plot
PlotCandlestick Plot Candlestick Chart
PlotCirc Plot Circular Plot
PlotCorr Plot a Correlation Matrix
PlotDesc Display descriptive plots
PlotDesc.data.frame Display descriptive plots
PlotDesc.Date Display descriptive plots
PlotDesc.default Display descriptive plots
PlotDesc.factor Display descriptive plots
PlotDesc.flags Display descriptive plots
PlotDesc.integer Display descriptive plots
PlotDesc.logical Display descriptive plots
PlotDesc.numeric Display descriptive plots
PlotDesc.ordered Display descriptive plots
PlotDesc.table Display descriptive plots
PlotDescFactFact Display descriptive plots
PlotDescFactNum Display descriptive plots
PlotDescNumFact Display descriptive plots
PlotDescNumNum Display descriptive plots
PlotDotCI Plot a Dotchart with Confidence Intervals
PlotDotCIp Plot a Dotchart with Binomial Confidence Intervals
PlotFaces Chernoff Faces
PlotFct Plot a Function
PlotFdist Frequency Distribution Plot
PlotGACF Combined Plot of a Time Series and it's ACF and PACF
PlotHorizBar Plot Horizontal Bars
PlotMar Information plots
PlotMarDens Scatterplot with Marginal Densities
PlotMatrix Scatterplot Matrix
PlotMonth Plot Monthly or Seasonal Effects Of a Univariate Time Series
PlotMultiDens Plot Multiple Density Curves
PlotMultiDens.default Plot Multiple Density Curves
PlotMultiDens.formula Plot Multiple Density Curves
PlotPar Information plots
PlotPolar Plot Values on a Circular Grid
PlotPyramid Draw a Back To Back Pyramid Plot
PlotQQ QQ-Plot for Any Distribution
PlotRCol Information plots
PlotTreemap Create a Treemap
PlotVenn Plot a Venn Diagram
PlotViolin Plot Violins Instead of Boxplots
PlotViolin.default Plot Violins Instead of Boxplots
PlotViolin.formula Plot Violins Instead of Boxplots
PlotWeb Plot a Web of Connected Points
PoissonCI Poisson Confidence Interval
PolarGrid Plot a Grid in Polar Coordinates
PolToCart Transform Cartesian to Polar Coordinates and vice versa
PostHocTest Post-Hoc Tests
PostHocTest.aov Post-Hoc Tests
PpAddSlide Add Slides, Insert Texts and Plots to PowerPoint
PpPlot Add Slides, Insert Texts and Plots to PowerPoint
PpText Add Slides, Insert Texts and Plots to PowerPoint
Primes Find all Primes Less Than n
print.Assocs Association Measures
print.Freq Frequency Table
print.HoeffD Matrix of Hoeffding's D Statistics
print.ICC Intraclass Correlations (ICC1, ICC2, ICC3 from Shrout and Fleiss)
print.mtest Lehmacher's Test for Marginal Homogenity
print.PostHocTest Post-Hoc Tests
PtInPoly Point in Polygon

-- Q --

Quarter Basic Date Functions

-- R --

RadToDeg Convert Degrees to Radians and vice versa
Ray Compact Information About the Columns of a Data Frame
Recode Recode a Factor
Recycle Recyle a List of Elements
RelRisk Relative Risk
Rename Change Names of a Named Object
reorder.factor Reorder the Levels of a Factor
Rev Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
Rev.data.frame Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
Rev.default Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
Rev.matrix Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
Rev.table Reverse Elements of a Vector or the Rows/Columns of Matrices and Tables
RgbToCol Find the Named R-Color Which Is Nearest to a Given RGB-Color
RgbToLong Find the Named R-Color Which Is Nearest to a Given RGB-Color
RobRange Robust Range
RobScale Robust Scaling With Median and Mad
Rosenbluth Concentration Measures
Rotate Rotate a Geometric Structure
RunsTest Runs Test for Randomness
RunsTest.default Runs Test for Randomness
RunsTest.formula Runs Test for Randomness

-- S --

SampleTwins Sample Twins
ScheffeTest Scheffe Test for Pairwise and Otherwise Comparisons
ScheffeTest.aov Scheffe Test for Pairwise and Otherwise Comparisons
ScheffeTest.default Scheffe Test for Pairwise and Otherwise Comparisons
Sec Basic Date Functions
SecToHms Convert h:m:s To/From Seconds
SelectVarDlg Select Elements of a Set by Click
SelectVarDlg.data.frame Select Elements of a Set by Click
SelectVarDlg.default Select Elements of a Set by Click
SelectVarDlg.factor Select Elements of a Set by Click
SetAlpha Add an Alpha Channel To a Color
ShapiroFranciaTest Shapiro-Francia test for normality
SiegelTukeyRank Siegel-Tukey Test for equality in variability
SiegelTukeyTest Siegel-Tukey Test for equality in variability
SiegelTukeyTest.default Siegel-Tukey Test for equality in variability
SiegelTukeyTest.formula Siegel-Tukey Test for equality in variability
SignTest Sign Test
SignTest.default Sign Test
SignTest.formula Sign Test
Skew Skewness and Kurtosis
Small Kth Smallest/Largest Values
SomersDelta Somers' Delta
Sort Sort a Vector, a Matrix, a Table or a Data.frame
Sort.data.frame Sort a Vector, a Matrix, a Table or a Data.frame
Sort.default Sort a Vector, a Matrix, a Table or a Data.frame
Sort.matrix Sort a Vector, a Matrix, a Table or a Data.frame
Sort.table Sort a Vector, a Matrix, a Table or a Data.frame
SortMixed Order or Sort Strings With Embedded Numbers So That The Numbers Are In The Correct Order
SpearmanRho Spearman Rank Correlation
split.formula Formula Interface for Split
SpreadOut Spread out a vector of numbers to a minimum interval
Str Compactly Display the Structure of an Arbitrary R Object
StrAbbr String Abbreviation
Strata Stratified sampling
StrCap Capitalize the First Letter of a String
StrChop Split a String in a Number of Pieces With Fixed Length
StrCountW Count Words in a String
StrDist Compute Distances Between Strings
StrIsNumeric Does a String Contain Only Numeric Data
StrPad Pad a String With Justification
StrPos Find Position of First Occurrence Of a String
StrRev Reverse a String
StrTrim Trim a string
StrTrunc Truncate Strings and Add Ellipses If a String is Truncated.
StrVal Extract All Numbers From a String
StuartMaxwellTest Stuart-Maxwell Marginal Homogeneity Test
StuartTauC Stuart Tau C
summary.dist Is a Distance Matrix Euclidean?
SysInfo System Information And DescTools Options

-- T --

TextContrastColor Choose Textcolor Depending on Background Color
TheilU Theil's U index of inequality
Today Basic Date Functions
ToLong Reshape a Vector From Long to Wide Shape Or Vice Versa
ToWide Reshape a Vector From Long to Wide Shape Or Vice Versa
Trim Trim a Vector
TschuprowT Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
TukeyBiweight Calculate Tukey's Biweight Robust Mean

-- U --

UncertCoef Uncertainty Coefficient
UnitConv Unit Conversion
Untable Recover Original Data From Contingency Table

-- V --

VarCI Confidence Interval for the Variance
VecRot Vector Rotation
Vigenere Vigenere Cypher

-- W --

wdConst Word VBA constants
Week Basic Date Functions
Weekday Basic Date Functions
WhichCharacters Get the Flags, Factors or Numerics of a data.frame
WhichFactors Get the Flags, Factors or Numerics of a data.frame
WhichFlags Get the Flags, Factors or Numerics of a data.frame
WhichNumerics Get the Flags, Factors or Numerics of a data.frame
Winsorize Winsorize
WoolfTest Woolf Test
WrdCaption Insert Caption to Word
WrdGetFont Set the Font in Word
WrdGoto Insert a Bookmark, Goto Bookmark and Update the Text of a Bookmark
WrdInsertBookmark Insert a Bookmark, Goto Bookmark and Update the Text of a Bookmark
WrdInsTab Insert a Table in a Word Document
WrdPlot Insert Active Plot to Word
WrdR Insert a R Command and It's Output in a Word Document
WrdSetFont Set the Font in Word
WrdTable Produces a Table in Word
WrdTable.default Produces a Table in Word
WrdTable.Freq Produces a Table in Word
WrdText Insert Normal Text to Word
WrdUpdateBookmark Insert a Bookmark, Goto Bookmark and Update the Text of a Bookmark

-- X --

XLGetRange Get the Values of Cell Range(s) in Excel
XLGetWorkbook Get the Values of All Sheets of an Excel Workbook
XLView Use Excel as Viewer for a Data.Frame

-- Y --

Year Basic Date Functions
YearDay Basic Date Functions
YearMonth Basic Date Functions
YuleQ Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T
YuleY Cramer's V, Pearson's Contingency Coefficient and Phi Coefficient Yule's Q and Y, Tschuprow's T

-- Z --

Zodiac Calculate the Zodiac of a Date
ZTest Z Test for Known Population Standard Deviation
ZTest.default Z Test for Known Population Standard Deviation
ZTest.formula Z Test for Known Population Standard Deviation

-- misc --

%()% Between Operators Check, if a Value Lies Within a Given Range
%(]% Between Operators Check, if a Value Lies Within a Given Range
%)(% Between Operators Check, if a Value Lies Within a Given Range
%)[% Between Operators Check, if a Value Lies Within a Given Range
%c% Concatenates two strings without any separator.
%like% Like operator
%nin% Find Matching (or Non-Matching) Elements
%overlaps% Determines If And How Extensively Two Date Ranges Overlap
%[)% Between Operators Check, if a Value Lies Within a Given Range
%[]% Between Operators Check, if a Value Lies Within a Given Range
%](% Between Operators Check, if a Value Lies Within a Given Range
%][% Between Operators Check, if a Value Lies Within a Given Range