Skip to content

Commit

Permalink
Update peekbankr.R
Browse files Browse the repository at this point in the history
Added integer casting to RLE to avoid int64s
  • Loading branch information
smeylan authored Aug 27, 2024
1 parent 215dcef commit cc93102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/peekbankr.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ get_aoi_timepoints <- function(dataset_id = NULL, dataset_name = NULL,
tidyr::nest(trial_data = -c(.data$administration_id, .data$trial_id)) %>%
dplyr::mutate(
rle_vector = purrr::map(.data$trial_data, function(td) {
`class<-`(list(lengths = td$length, values = td$aoi), "rle")
`class<-`(list(lengths = as.integer(td$length), values = td$aoi), "rle")
}),
aoi = purrr::map(.data$rle_vector, inverse.rle),
t_norm = purrr::map(.data$trial_data, function(td) {
Expand Down

0 comments on commit cc93102

Please sign in to comment.