Skip to content

Commit

Permalink
Update zenodo-datos.R
Browse files Browse the repository at this point in the history
  • Loading branch information
JFormoso committed Nov 7, 2024
1 parent c1bf7da commit 5815221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zenodo-datos.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ df_registros <- do.call(rbind, lapply(datos_registros, as.data.frame))
ultima_actualizacion <- data.frame(timestamp = Sys.time()-hours(3))

# Días desde publicación
df_registros$dias_publicacion <- as.Date(ultima_actualizacion$timestamp) - as.Date(df_registros$fecha_creacion)
df_registros$dias_publicacion <- as.integer(as.Date(ultima_actualizacion$timestamp) - as.Date(df_registros$fecha_creacion))

# Vistas/días
df_registros$vistas_dias <- df_registros$vistas/df_registros$dias_publicacion
Expand Down

0 comments on commit 5815221

Please sign in to comment.