From 2cebad6b934f9c97f3efc91940b27a2b417cedf7 Mon Sep 17 00:00:00 2001 From: Vladyslav Shevchenko <105541001+astrochemx@users.noreply.github.com> Date: Mon, 6 Jan 2025 04:04:50 +0200 Subject: [PATCH] fix: correct conversion from `in` to `mm` in `convmeters` function --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index 345ca64b..b8370069 100644 --- a/R/utils.R +++ b/R/utils.R @@ -118,7 +118,7 @@ convmeters <- function(unit, x) { if (identical("cm", unit)) { x <- x * 2.54 } else if (identical("mm", unit)) { - x <- x * 254 + x <- x * 25.4 } x }