PTTmineR: Create a PTTmineR object

Description Public fields Methods Examples

Description

Imaging that PTTmineR object is a data center. You can store the data on each crawling task. This design method is to make it easier for users to manage the data they crawl on each crawling task.

Public fields

result_dt

a list of following result data.table:

  • post_info_dt: the data.table type post's information.

  • post_comment_dt: the data.table type post's comments.

Methods

Public methods


Method new()

overrides the default behaviour of $new()

Usage
PTTmineR$new(task.name)
Arguments
task.name

a string. the name of miner's task


Method print()

print the summary information of PTTmineR object

Usage
PTTmineR$print()

Method clone()

The objects of this class are cloneable with this method.

Usage
PTTmineR$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

1
2
3
4
5
# create PTTmineR object
## Not run: rookie_miner <- PTTmineR$new(task.name = "first_task")

# print the summary information of rookie_miner
## Not run: rookie_miner

shihjyun/PTTmineR documentation built on Oct. 22, 2020, 2:46 a.m.