Last data update: 2014.03.03

R: summary of dictionaries
statDicR Documentation

summary of dictionaries

Description

show summary, head and tail of current or backup dictionaries

Usage

  statDic(which = "current", n = 6)

Arguments

which

"current" or "backup" dictionary

n

a single integer. Size for the resulting object to view

Examples

## show current dictionary's summary, head, tail
statDic("current", 10)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(KoNLP)
Loading required package: rJava
Loading required package: stringr
Loading required package: hash
hash-2.2.6 provided by Decision Patterns

Loading required package: tau
Loading required package: Sejong
Successfully Loaded Sejong Package.
Checking user defined dictionary!

This R shell doesn't contain any Hangul encoding.
For fully use, any of 'UTF-8', 'CP949', 'EUC-KR' needs to be used for R shell encoding.

Attaching package: 'KoNLP'

The following object is masked from 'package:tau':

    is.ascii

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/KoNLP/statDic.Rd_%03d_medium.png", width=480, height=480)
> ### Name: statDic
> ### Title: summary of dictionaries
> ### Aliases: statDic
> 
> ### ** Examples
> 
> ## show current dictionary's summary, head, tail
> statDic("current", 10)
$summary
     word             tag   
 Length:13          ncn :7  
 Class :character   ncpa:1  
 Mode  :character   ncps:1  
                    npp :2  
                    nqpc:1  
                    sy  :1  

$head
                       word  tag
1          <U+AC1C><U+BC25>  ncn
2  <U+AD00><U+D615><U+ACA9>  ncn
3  <U+AD50><U+CC29><U+C5B4>  ncn
4  <U+ADF8><U+BD84><U+B4E4>  npp
5          <U+ADF9><U+C9C4> ncps
6  <U+B2F9><U+C2E0><U+B4E4>  npp
7  <U+B3D9><U+B7C9><U+C7AC>  ncn
8  <U+C11C><U+CDA9><U+C6D0>  ncn
9  <U+C6B0><U+CCB4><U+D1B5>  ncn
10         <U+C758><U+BBF8> ncpa

$tail
                       word  tag
4  <U+ADF8><U+BD84><U+B4E4>  npp
5          <U+ADF9><U+C9C4> ncps
6  <U+B2F9><U+C2E0><U+B4E4>  npp
7  <U+B3D9><U+B7C9><U+C7AC>  ncn
8  <U+C11C><U+CDA9><U+C6D0>  ncn
9  <U+C6B0><U+CCB4><U+D1B5>  ncn
10         <U+C758><U+BBF8> ncpa
11 <U+C774><U+C2E0><U+BAA9> nqpc
12 <U+C790><U+B3D9><U+C0AC>  ncn
13                 <U+00B7>   sy

> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>