Skip to content

Commit

Permalink
use safer subset
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Sep 5, 2024
1 parent 29f7ccb commit f5371c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/fscores.internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ setMethod(
newmod@Data <- list(data=rp, tabdata=large$tabdata2, K=object@Data$K[pick],
tabdatalong=large$tabdata, Freq=large$Freq, ngroups=1L,
covdata=covdata, mins=rep(0L, ncol(response.pattern))[pick])
newmod@Internals$CUSTOM.IND <- object@Internals$CUSTOM.IND[pick]
if(length(object@Internals$CUSTOM.IND))
newmod@Internals$CUSTOM.IND <- object@Internals$CUSTOM.IND[
pick %in% object@Internals$CUSTOM.IND]
if(!is.null(covdata)){
newmod@Data$fulldata <- list(large$tabdata)
lrPars <- newmod@ParObjects$lrPars
Expand Down

0 comments on commit f5371c5

Please sign in to comment.