Clean Kindle file
Arguments
- data
The data read from
kindle_read()
.- distinct
Logical. If
TRUE
, the last record with the samebegin
value will be retained; ifFALSE
, no records will be deleted.- drop_na
Logical. If
TRUE
, drop rows wheretext
column isNA
; ifFALSE
, no records will be deleted.- new_line
Logical. If
TRUE
,\n
which can create a new line.- title
String. Provide the
title
of thedata
you want to write out, with support for regular expressions. IfNULL
, all of records will be wrote out.
Examples
if (FALSE) {
text <- kindle_read("tests/testthat/My-Clippings.txt")
kindle_clean(text)
}