Package 'komment'

Title: Korean President's Speech Text
Description: Korean president's speech text data from http://www.pa.go.kr/research/contents/speech/index.jsp.
Authors: Chanyub Park [aut, cre]
Maintainer: Chanyub Park <[email protected]>
License: CC0
Version: 0.1.0
Built: 2024-08-13 13:19:47 UTC
Source: https://github.com/forkonlp/komment

Help Index


get search options for event

Description

return options of event params of search_speech.

Usage

get_event()

Value

character vector of events


get search options for president

Description

return options of president params of search_speech.

Usage

get_president()

Value

character vector of president names


get speech

Description

get Speech's script of link from search_speech. only can get one script at once.

Usage

get_speech(link, paragraph = FALSE)

Arguments

link

Sciprt link form search_speech. Like form is like http://www.pa.go.kr/research/contents/speech/index.jsp?spMode=view&catid=c_pa02062&artid=1310475

paragraph

logical if sepeate paragraph or not. Default is FALSE.

Value

a [tibble][tibble::tibble-package] title, date, president, place, field, event, source, paragraph, content


search speech

Description

search script of president's speech. Data is form presidential archives of korea.

Usage

search_speech(
  keyword = "",
  searchField = 0,
  count = 10000,
  president = "",
  mediaType = c("doc", "mp3", "mp4", "all"),
  event = "",
  order = 1
)

Arguments

keyword

keyword to search. Default is all results. Accept character data type.

searchField

All:0, Title:1, Content:2, Place:3. Default is 0 means all parts. Accept numeric data type.

count

request number of results. Default is all. Accept numeric data type.

president

president to search. Default is all results. get_president provides available list. Accept character data type.

mediaType

mediaType

event

event to search. Default is all results. get_event provides available list. Accept character data type.

order

order of search results. Defaults is order by date. order by date:1, order by title character:2. Accept numeric data type.

Value

a [tibble][tibble::tibble-package] president, field, event, title, date, link

Examples

## Not run: 
splist <- search_speech(count = 20)
splist

## End(Not run)

speech list data

Description

speech list data

Usage

speech_list

Format

tibble with columns

president

president

field

field

event

event

title

title

date

date

link

link

Source

http://www.pa.go.kr/research/contents/speech/index.jsp

Examples

speech_list