Skip to content

Commit 1e2a294

Browse files
committed
fixed bug in sub_count
1 parent 7018a45 commit 1e2a294

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/joint_model.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ joint_model <- function(data, cov = NULL, family = "poisson",
263263

264264
# subset count data to remove sites without traditional samples
265265
count_df <- as.data.frame(data$count)
266-
sub_count <- count_df[rowSums(is.na(count_df)) != ncol(count_df), ]
266+
sub_count <- as.data.frame(
267+
count_df[rowSums(is.na(count_df)) != ncol(count_df), ]
268+
)
267269

268270
# add site index to count data
269271
index_match <- as.data.frame(cbind(unique(count_all$L_ind),

0 commit comments

Comments
 (0)