Skip to content

Commit

Permalink
ditto here
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Mar 9, 2022
1 parent eca31f4 commit 1c9bd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/summary.cca.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## scaling is stored in return object so must be in numeric format
scaling <- scalingType(scaling = scaling, correlation = correlation,
hill = hill)
if (axes && length(display) && (all(!is.na(display)) && !is.null(display)))
if (axes && length(display) && !anyNA(display) && !is.null(display))
summ <- scores(object, scaling = scaling, choices = 1:axes, display = display,
...)
## scores() drops list to a matrix if there is only one item: workaround below.
Expand Down

0 comments on commit 1c9bd57

Please sign in to comment.