Skip to content

lessR

4.5.6Package record

Less Code with More Comprehensive Results

2packages depend
33.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Each function replaces multiple standard R functions. For example, two function calls, Read() and CountAll(), generate summary statistics for all variables in the data frame, plus histograms and bar charts. Other functions provide data aggregation via pivot tables; comprehensive regression, ANOVA, and t-test; visualizations including integrated Violin/Box/Scatter plot for a numerical variable, bar chart, histogram, box plot, density curves, calibrated power curve; reading multiple data formats with the same call; variable labels; time series with aggregation and forecasting; color themes; and Trellis (facet) graphics. Also includes a confirmatory factor analysis of multiple-indicator measurement models, pedagogical routines for data simulation (e.g., Central Limit Theorem), generation and rendering of regression instructions for interpretative output, and both interactive construction of visualizations and interactive visualizations with plotly.

Changes in 4.5.6

Updates

Chart(), X() and XY(): Parameter type renamed to form, which names the perceptual form of the visualization within the analytic view, such as form="bars" for Chart(). The old name type is still accepted, now with a message that announces the new name form.

Chart(), X() and XY(): The variable arguments x, y, by, and facet now accept expressions, such as Chart(cut(rnorm(50), 3)), X(log(Salary)), or XY(Years, Salary, by=cut(Pre, 2)). An expression evaluates first against the columns of the data frame, then against the user's workspace, with the expression text as the variable label. A vector of variable names such as c(Years, Salary) retains its column-selection meaning.

Chart(): Parameter facet now works for treemap, icicle charts, and bubble charts.

XY(): A multi-column data frame passed directly as x and y generates a scatterplot matrix, so the variable list can be stored once and reused: vec <- d[, c("Years","Pre","Post")] then XY(vec, vec, data=NULL).

XY(): Parameter 'facet' now works for all forms of relationship visualizations beyond only scatterplots.

XY(): With a vector of x (or y) variables, facet repeats the multi-series overlay across its panels, each panel the full overlay for one level of the facet variable, all panels on a common scale: XY(c(Pre, Post), Salary, facet=Gender). Parameter by does not apply with a vector of x or y variables, as the multiple series already occupy the color (series) dimension of the plot.

Regression() and Logit(): A term of the model formula may now be an expression of variables, such as reg(log(Salary) ~ Years + I(Years^2)), evaluated against the data frame with the expression text as the term label, so no need to first create the transformed variable with Transform().

ttest() and ANOVA(): Model terms may also be expressions, such as ttest(log(Salary) ~ Gender), ttest(log(Pre), log(Post)), or ANOVA(Salary ~ cut(Years, 3)), with the expression text as the label. An ANOVA() expression for a factor must produce categories, such as with cut() or factor(). Previously, ttest() with an expression response in a formula silently analyzed the untransformed variable.

Correlation(): The variables may also be expressions, such as Correlation(log(Years), Salary), with the expression text as the label. An expression that yields a data frame, such as Correlation(d[, 1:4]), specifies a correlation matrix.

Model(): Expanded to call more possibilities for analysis of a model.

Bug Fixes

Show all changes in 4.5.6Hide the rest of the changes in 4.5.6

Chart(): When displaying counts with labels="input", the inner ring counts now displayed correctly.

Chart(): The Plotly 100% stacked bar chart is now computed correctly.

Regression(): With one numeric and one categorical predictor, the Type II ANOVA table mislabeled the factor's adjusted sum of squares with the covariate's name, and listed the remaining rows per indicator variable with unadjusted (sequential) sums of squares. The table now correctly reports one Type II row per term: the covariate and the factor, each adjusted for the other.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.1 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 4.5.6
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 4.5.6Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
87
Examples that run
92%71 run in a plain check · 6 hold no code
Exported functions with examples
100%
Documented parameters
98%
Return-value docs
51%
Help pages citing references
33%
Vignettes (1)

Downloads

33.6K
CRAN downloads in the past year
Rank #2,491 · ~92/day · ~2.8K/mo
Daily download trend is not available in this view yet.
2.9K30 days
6.3K90 days
33.6K1 year
Compare downloads with other packages →
Also on384 r2u6 autocran

Dependencies

Declared dependencies
27 external dependencies (excludes base and recommended)

Installing lessR adds 91 packages (54 with compiled code, 82 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 3.6.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
1indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 1.5 (2010)
School of Business, Portland State University
Listed in earlier versions (4)
Show 4 peopleHide 4 people
School of Business Administration
no longer listed · 1.5 to 3.6.5
Portland State University
no longer listed · 1.5 to 4.3.6
The School of Business
no longer listed · 3.6.6 to 4.3.6
David Gerbing
no longer listed · 3.9.2 to 4.3.6
Releases (136)

Pick two releases to compare their code metrics.

Show 138 earlier eventsHide 138 earlier events

Package metadata

First published
2010-10-25
Total releases
136 / 16 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.6.0
Bundled data
38 KB / 17 files
Download size
1.7 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("lessR")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.32614/cran.package.lessr, 10.1080/26939169.2021.1999871.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lessR version 4.5.6 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy