Skip to content

Commit

Permalink
Added id column
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Feb 5, 2025
1 parent 36891fd commit 273fc9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/late.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ late_aes <- function(editor) {
nstars <- unlist(lapply(days, function(u) sum(u > c(12L, 18L, 24L) * 7)))
articles$stars <- stringr::str_dup("*", nstars)
output <- dplyr::arrange(articles, date) |> as.data.frame()
rownames(output) <- output$id
output[output$stars != "", c("date", "ae", "stars")]
output[output$stars != "", c("id", "date", "ae", "stars")]
}

0 comments on commit 273fc9e

Please sign in to comment.