Description Usage Arguments Value Author(s) Examples
View source: R/search_word_online.R
input a word you want to search,and return it's expanation and relative words.
1 2 | search_word_online(word, basic = TRUE, more = FALSE, ret = FALSE,
relative = FALSE)
|
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. |
explanations
lgm
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.