read_dat: Read a dat file of 5ch and return a tibble

View source: R/read_dat.R

read_datR Documentation

Read a dat file of 5ch and return a tibble

Description

Read a dat file of 5ch and return a tibble

Usage

read_dat(file, br_char = "[br]", encoding = "Shift-JIS")

Arguments

file

a string. a path to a dat file.

br_char

a string which represents "<br>" (new line) in responses ("res" in Japanese). It is not allowed to use a string which contains "<" and ">".

encoding

a string. encoding of a file.

Value

a tibble. Here is columns of the tibble.

  • dat_id character. a filename of a dat file.

  • thread_title character. a title of a thread.

  • res_number integer. the number of a response.

  • name character. a name of a response.

  • mail character. a string of mail form.

  • datetime character. a datetime which a response is posted.

  • id character. an id of a response.

  • be character. a be of a response.

  • content character. a content of a response.

Examples

## Not run: 
read_dat("foo.dat",br_char="[br]",encoding="Shift-JIS")

## End(Not run)

suzuna/readdat5 documentation built on Nov. 23, 2022, 6:39 p.m.