Learn R Programming

kanjistat (version 0.14.1)

samplekan: Sample kanji from a set

Description

Sample kanji from a set

Usage

samplekan(
  set = c("kyouiku", "jouyou", "jinmeiyou", "kanjidic"),
  size = 1,
  replace = FALSE,
  prob = NULL
)

Value

a vector of length size containing the individual characters

Arguments

set

a character string specifying the set of kanjis to sample from.

size

a positive number, the number of samples.

replace

logical. Sample with replacement?

prob

currently without effect.

Examples

Run this code
(sam <- samplekan(size = 10))
lookup(sam)

Run the code above in your browser using DataLab