Skip to content

Commit 8c597b8

Browse files
20250408 - use apa() function
1 parent 9a588f0 commit 8c597b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

R/pValues.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ pValue <- function(value, digits = 3){
2525
if(value < .001){
2626
newValue <- "< .001"
2727
} else {
28-
newValue <- paste("=", suppressLeadingZero(specify_decimal(value, digits)), sep = "")
28+
newValue <- paste(
29+
"=",
30+
apa(value, decimals = digits, leading = FALSE),
31+
sep = "")
2932
}
3033
return(newValue)
3134
}

0 commit comments

Comments
 (0)