Skip to content

sjmisc

Data and Variable Transformation Functions

v2.8.11 · Jul 30, 2025 · GPL-3

Description

Collection of miscellaneous utility functions, supporting data transformation tasks like recoding, dichotomizing or grouping variables, setting and replacing missing values. The data transformation functions also support labelled data, and all integrate seamlessly into a 'tidyverse'-workflow.

Downloads

CRAN

25.1K

Last 30 days

740th

88.9K

Last 90 days

388.2K

Last year

Trend: -20.4% (30d vs prior 30d)

r2u

104

Last 30 days

532

Last 90 days

1.5K

Last year

Trend: -34.2% (30d vs prior 30d)

r2u: no daily series yet

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 3, 2026
ERROR r-devel-windows-x86_64

examples

Running examples in 'sjmisc-Ex.R' failed
The error most likely occurred in:

> ### Name: count_na
> ### Title: Frequency table of tagged NA values
> ### Aliases: count_na
> 
> ### ** Examples
> 
> if (require("haven")) {
+   x <- labelled(
+     x = 
...[truncated]...
at, x)
+   count_na(dat, x, y)
+ }
Loading required package: haven
Error in as.data.frame.integer(x[[i]], optional = TRUE) : 
  row names contain missing values
Calls: count_na ... data.frame -> as.data.frame -> as.data.frame.integer
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (10)

Dependency Network

Dependencies Reverse dependencies dplyr insight datawizard magrittr purrr rlang sjlabelled tidyselect MRG NBDCtools ggiraphExtra lacrmr moonBook pubh sjPlot acledR mlbplotR sjlabelled sjmisc

Version History

47 tracked
new 2.8.11 Mar 10, 2026
updated 2.8.11 ← 2.8.10 diff Jul 29, 2025
updated 2.8.10 ← 2.8.9 diff May 12, 2024
updated 2.8.9 ← 2.8.7 diff Dec 2, 2021
updated 2.8.7 ← 2.8.6 diff May 11, 2021
updated 2.8.6 ← 2.8.5 diff Jan 6, 2021
updated 2.8.5 ← 2.8.4 diff May 27, 2020
updated 2.8.4 ← 2.8.3 diff Apr 2, 2020
updated 2.8.3 ← 2.8.2 diff Jan 9, 2020
updated 2.8.2 ← 2.8.1 diff Sep 23, 2019
updated 2.8.1 ← 2.8.0 diff Jun 16, 2019
updated 2.8.0 ← 2.7.9 diff Jun 11, 2019
updated 2.7.9 ← 2.7.8 diff Mar 16, 2019
updated 2.7.8 ← 2.7.7 diff Mar 11, 2019
updated 2.7.7 ← 2.7.6 diff Jan 1, 2019