samplekan: Sample kanji from a set

View source: R/utilities.R

samplekanR Documentation

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
)

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.

Value

a vector of length size containing the individual characters

Examples

(sam <- samplekan(size = 10))
lookup(sam)

kanjistat documentation built on June 22, 2024, 10:35 a.m.