Skip to content

Commit 7439323

Browse files
committed
Fixing up error checking for argument sgp.quantiles
1 parent 2d24d9a commit 7439323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/studentGrowthPercentiles.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ function(panel.data, ## REQUIRED
930930
sgp.quantiles.labels <- NULL
931931
}
932932
if (is.numeric(sgp.quantiles)) {
933-
if (!(all(sgp.quantiles > 0 && sgp.quantiles < 1))) {
933+
if (!(all(sgp.quantiles > 0) & all(sgp.quantiles < 1))) {
934934
stop("Specify sgp.quantiles as as a vector of probabilities between 0 and 1.")
935935
}
936936
taus <- .create_taus(sgp.quantiles)

0 commit comments

Comments
 (0)