Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrustl committed Jun 18, 2024
1 parent 8534ef1 commit 55909fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/read_balance.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ blocks <- tibble::tibble(id = seq_len(length(block_start)),
end_idx = block_end)


budget <- lapply(seq_len(nrow(blocks)), function(i) {
lapply(seq_len(nrow(blocks)), function(i) {

block_sel_txt <- lines[blocks$start_idx[i]:blocks$end_idx[i]]

Expand All @@ -48,7 +48,7 @@ bal_id_start <- grep("Length", block_sel_txt)
bal_id_end <- length(block_sel_txt)


lapply(block_sel_txt[bal_id_start:bal_id_end], function(x) {
balance <- lapply(block_sel_txt[bal_id_start:bal_id_end], function(x) {
stringr::str_extract_all(x, "\\d+?\\.\\d+")[[1]] %>% as.double() %>% t() %>%
tibble::as_tibble()
}) %>%
Expand Down

0 comments on commit 55909fd

Please sign in to comment.