Skip to content

Commit c9a04b8

Browse files
committed
Simplify one line of code
1 parent e4b2e69 commit c9a04b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/cpm.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ cpm <- function(conmat, behav, ...,
131131
seq_along(behav)
132132
},
133133
exclude = Reduce(
134-
function(x, y) intersect(x, y),
134+
intersect,
135135
list(
136136
which(stats::complete.cases(conmat)),
137137
which(stats::complete.cases(behav)),

0 commit comments

Comments
 (0)