Skip to content

Commit 11522c2

Browse files
committed
just use is.na not apply
1 parent 4766545 commit 11522c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/trace_generation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @export
77
layer2traces <- function(l, d, misc) {
88
not.na <- function(df){
9-
na.mat <- sapply(df, is.na)
9+
na.mat <- is.na(df)
1010
to.exclude <- apply(na.mat, 1, any)
1111
df[!to.exclude, ]
1212
}

0 commit comments

Comments
 (0)