Skip to contents

Rows that cannot be parsed are at the top, and rows that parsed successfully are at the bottom.

Usage

get_df(chatdata)

Arguments

chatdata

Chat data from parse_users_chat_data.

Value

A dataframe/tibble.

Examples

csv_file <- file.path(system.file("extdata", package = "chatlogr"), "mtcars.csv")
chatdata <- parse_users_chat_data(csv_file, idcol = "user_id", nrows = 5)
#> Sampling 5 rows...
#> Processing 5 rows...
#> Chat columns: chathistory1, chathistory2
#> Parsing summary
#>    total  success   errors warnings 
#>        5        0       23        0 
get_df(chatdata)
#> # A tibble: 5 × 6
#>   user_id role  content createdAt id    n_words
#>     <dbl> <lgl> <chr>   <lgl>     <lgl>   <int>
#> 1       5 NA    ab      NA        NA          1
#> 2       6 NA    ab      NA        NA          1
#> 3      12 NA    ab      NA        NA          1
#> 4      13 NA    ab      NA        NA          1
#> 5      23 NA    ab      NA        NA          1