Skip to contents

Wrapper function for add_group() to add sentence id

Usage

add_sentence_no(df, s_id = "sentence")

Arguments

df

A dataframe

s_id

A string for sentence colame

Value

A dataframe

Examples

review_mecab |>
  unescape_utf() |>
  add_sentence_no() |>
  print(n=200)
#> Error in dplyr::mutate(tbl, `:=`({    {        grp    }}, cumsum(eval_str(cond)) + 1)):  In argument: `sentence = cumsum(eval_str(cond)) + 1`.
#> Caused by error in `df$表層形`:
#> ! object of type 'closure' is not subsettable