RÓïÑÔÖÐÎÄÍø

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
²é¿´: 673|»Ø¸´: 0

RÓïÑÔËÑË÷°ïÖúϵͳprint.hsearch()º¯Êý-ÖÐÓ¢ÎĶÔÕÕ°ïÖúÎĵµ

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2020-8-21 08:09:36 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
        RÓïÑÔËÑË÷°ïÖúϵͳprint.hsearch()º¯Êý-ÖÐÓ¢ÎĶÔÕÕ°ïÖúÎĵµ

                                         By MicroRbt Martinez PhD

RÓïÑÔº¯ÊýÃû£ºprint.hsearch()
RÓïÑÔº¯Êý¹¦ÄÜ£ºËÑË÷°ïÖúϵͳ
À´×Ô×ÊÔ´¿â£º»ù´¡¿â£¨RÓïÑÔ×Ô´ø£©
print.hsearch()º¯ÊýËùÊôRÓïÑÔ°ü£ºËùÔÚR°ü¾ßÌåÃû³Æ¡¢°ü¹¦ÄܵÄÖÐÓ¢ÎÄË«ÓïÃèÊö¼ûÕýÎĺóÃæ'--ËùÔÚRÓïÑÔ°üÐÅÏ¢--'²¿·Ö¡£

ÃèÊö-----Description-----

Allows for searching the help system for documentation matching a given character string in the (file) name, alias, title, concept or keyword entries (or any combination thereof), using either fuzzy matching or regular expression matching. Names and titles of the matched help entries are displayed nicely formatted.
ÔÊÐíʹÓÃÄ£ºýÆ¥Åä»òÕýÔò±í´ïʽƥÅäÔÚ°ïÖúϵͳÖÐËÑË÷Ó루Îļþ£©Ãû³Æ£¬±ðÃû£¬±êÌ⣬¸ÅÄî»ò¹Ø¼ü×ÖÌõÄ¿£¨»òÆäÈÎÒâ×éºÏ£©Öеĸø¶¨×Ö·û´®Æ¥ÅäµÄÎĵµ¡£Æ¥ÅäµÄ°ïÖúÌõÄ¿µÄÃû³ÆºÍ±êÌâ»áºÜºÃµØÏÔʾ¡£

Vignette names, titles and keywords and demo names and titles may also be searched.
²åͼÃû³Æ£¬±êÌâºÍ¹Ø¼ü×ÖÒÔ¼°ÑÝʾÃû³ÆºÍ±êÌâÒ²¿ÉÒÔ½øÐÐËÑË÷¡£


ʹÓ÷½·¨-----Usage-----

help.search(pattern, fields = c("alias", "concept", "title"),
apropos, keyword, whatis, ignore.case = TRUE,
package = NULL, lib.loc = NULL,
help.db = getOption("help.db"),
verbose = getOption("verbose"),
rebuild = FALSE, agrep = NULL, use_UTF8 = FALSE,
types = getOption("help.search.types"))
??pattern
field??pattern

²ÎÊý-----Arguments-----

²ÎÊýpattern½éÉÜ: a character string to be matched in the specified fields. If this is given, the arguments apropos, keyword, and whatis are ignored.
ÔÚÖ¸¶¨×Ö¶ÎÖÐҪƥÅäµÄ×Ö·û´®¡£Èç¹ûÌṩÁ˴˲ÎÊý£¬ÔòºöÂÔ²ÎÊýapropos£¬keywordºÍwhatis¡£

²ÎÊýfields½éÉÜ: a character vector specifying the fields of the help database to be searched. The entries must be abbreviations of "name", "title", "alias", "concept", and "keyword", corresponding to the help page's (file) name, its title, the topics and concepts it provides documentation for, and the keywords it can be classified to. See below for details and how vignettes and demos are searched.
Ò»¸ö×Ö·ûÏòÁ¿£¬Ö¸¶¨ÒªËÑË÷µÄ°ïÖúÊý¾Ý¿âµÄ×ֶΡ£ÌõÄ¿±ØÐëÊÇ"name"£¬"title"£¬"alias"£¬"concept"ºÍ"keyword"µÄËõд£¬Óë°ïÖúÒ³ÃæµÄ£¨Îļþ£©Ãû³Æ£¬±êÌ⣬ΪÆäÌṩÎĵµµÄÖ÷ÌâºÍ¸ÅÄîÒÔ¼°¿É·ÖÀàµÄ¹Ø¼ü×ÖÏà¶ÔÓ¦¡£ÓйØÏêϸÐÅÏ¢ÒÔ¼°ÈçºÎËÑË÷½¥ÔκÍÑÝʾ£¬Çë²Î¼ûÏÂÎÄ¡£

²ÎÊýapropos½éÉÜ: a character string to be matched in the help page topics and title.
°ïÖúÒ³ÃæÖ÷ÌâºÍ±êÌâÖÐҪƥÅäµÄ×Ö·û´®¡£

²ÎÊýkeyword½éÉÜ: a character string to be matched in the help page keywords . Keywords are really categories: the standard categories are listed in file <code>R.home("doc")/KEYWORDS</code> (see also the example) and some package writers have defined their own. If keyword is specified, agrep defaults to FALSE.
°ïÖúÒ³ÃæÖÐҪƥÅäµÄ×Ö·û´®keywords¡£ KeywordsȷʵÊÇÀà±ð£º±ê×¼Àà±ðÔÚÎļþ<code>R.home("doc")/KEYWORDS </ code>ÖÐÁгö£¨ÁíÇë²Î¼ûʾÀý£©£¬Ò»Ð©°ü±àдÕ߶¨ÒåÁË×Ô¼ºµÄÀà±ð¡£Èç¹ûÖ¸¶¨ÁËkeyword£¬ÔòagrepĬÈÏΪFALSE¡£

²ÎÊýwhatis½éÉÜ: a character string to be matched in the help page topics.
°ïÖúÒ³ÃæÖ÷ÌâÖÐҪƥÅäµÄ×Ö·û´®¡£

²ÎÊýignore.case½éÉÜ: a logical. If TRUE, case is ignored during matching; if FALSE, pattern matching is case sensitive.
Âß¼­Éϵġ£Èç¹ûΪTRUE£¬ÔòÆ¥ÅäʱºöÂÔ´óСд£»·ñÔòΪfalse¡£Èç¹ûFALSE£¬ÔòģʽƥÅäÇø·Ö´óСд¡£

²ÎÊýpackage½éÉÜ: a character vector with the names of packages to search through, or NULL in which case all available packages in the library trees specified by lib.loc are searched.
¾ßÓÐÒªËÑË÷µÄ°üÃû³ÆµÄ×Ö·ûÏòÁ¿£¬»òNULL£¬ÔÚÕâÖÖÇé¿öÏ£¬ËÑË÷lib.locÖ¸¶¨µÄ¿âÊ÷ÖеÄall¿ÉÓðü¡£

²ÎÊ
-----δÍ꣬´ýÐø-----£¬¡ý¡ý¡ýÕ¹¿ªÊ£Óà72%¡ý¡ý¡ý
¹ºÂòÖ÷Ìâ Ç°ÐÐÐèÒªÄúµÄÖ§³Ö£¬ÇëÔÞÖú×÷Õß ¡¾15 ½ðÇ®¡¿ ¾ÍÄÜä¯ÀÀÈ«²¿100%ÄÚÈÝÀ²£¡£¨±¾ÌùÒ»´ÎÔÞÖú¡¢ÓÀ¾Ã¿É¶Á£©
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

ÊÖ»ú°æ|СºÚÎÝ|Archiver|RÓïÑÔÖÐÎÄÍø    

GMT+8, 2024-5-20 22:36 , Processed in 0.027599 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí