Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmagerber committed Jun 15, 2023
2 parents 3d3c7ff + a80467b commit b35642c
Show file tree
Hide file tree
Showing 8 changed files with 669 additions and 529 deletions.
510 changes: 320 additions & 190 deletions R/LIM_Read.R

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions R/aevar.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ aevar <- function(x, respiration) {

# Search and extract living node names that also have AE
aecols <- paste0(ae.search, collapse = "|") # Find columns that match AE
aemat <- living.mat[, grep(pattern = aecols,
colnames(living.mat), invert = FALSE),
drop = FALSE] # Drop all columns that are not AE columns
aemat <- living.mat[, grep(
pattern = aecols,
colnames(living.mat), invert = FALSE
),
drop = FALSE
] # Drop all columns that are not AE columns
with.ae <- names(which(rowSums(is.na(aemat)) != ncol(aemat))) # Extract names of compartments with AE

# Define AE variables only for compartments with AE
Expand Down
Loading

0 comments on commit b35642c

Please sign in to comment.