Skip to content

Commit

Permalink
Update to newer function
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Jun 1, 2023
1 parent 12073e2 commit cb434c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/unnest_tokens.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ unnest_tokens <- function(tbl, output, input, token = "words",

tbl_indices <- vec_rep_each(seq_len(nrow(tbl)), lengths(output_lst))
ret <- vec_slice(tbl, tbl_indices)
ret[[output]] <- flatten_chr(output_lst)
ret[[output]] <- purrr::list_c(output_lst)

if (to_lower) {
ret[[output]] <- stringr::str_to_lower(ret[[output]])
Expand Down

0 comments on commit cb434c8

Please sign in to comment.