Fix condition to require at least 2 rows to compute screen metrics

pull/95/head
JulioV 2020-03-03 12:20:36 -05:00
parent f4367806f3
commit 2c856f1cfc
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ get_android_screen_episodes <- function(screen){
")$"))) ")$")))
} }
if(nrow(screen) < 1){ if(nrow(screen) < 2){
episodes <- data.frame(episode = character(), episodes <- data.frame(episode = character(),
time_diff = numeric(), time_diff = numeric(),
local_start_date_time = character(), local_start_date_time = character(),