search_word_online: search words in online dict

Description Usage Arguments Value Author(s) Examples

View source: R/search_word_online.R

Description

input a word you want to search,and return it's expanation and relative words.

Usage

1
2
search_word_online(word, basic = TRUE, more = FALSE, ret = FALSE,
  relative = FALSE)

Arguments

word:

the word you want to search

toggles:

(1)no toggles, basic search without return; (2)'ret=TRUE', basic search with return; (3) 'more=TRUE', show more explanation without return; (4) 'more=TRUE, ret=TRUE', return more explanation; (5) 'relative=TRUE', show and return the relative words.

Value

explanations

Author(s)

lgm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# basic search,just cat the result
search_word_online("<e7><92><87>")

# basic search and return the result
search_word_online("<e7><92><87>",ret = TRUE)

# more search but no return
search_word_online("<e7><92><87>",more = TRUE)

# more search but with return
search_word_online("<e7><92><87>",more = TRUE,ret = TRUE)

#relative word search with return
search_word_online("<e7><a8><94>",relative = TRUE)

#search words in internal data `pyword`
pyword[4,2] %>% str_split(pattern="") %>% .[[1]] %>% map(~search_word_online(.x)) %>% .[[1]]

#more lines

Gabegit/gmdata documentation built on May 6, 2019, 5:32 p.m.