R language Pack-related commands

Source: Internet
Author: User

There are usually two types of packages for R (package):
1 Binary Packages: This package belongs to the ready-to-use (ready-to-use), but depends on the platform, that is, the win and Linux platforms are different.
2 Source Package: These packages can be used across platforms, but need to be processed or compiled (compiled) before use.
. Libpaths (): View the installation directory for the package
Library (): View the installed packages directory
Installed.packages (): View installed package information
Library (mypackage): Load MyPackage Pack
GetOption ("Defaultpackages"): View the packages that are loaded automatically when you start R.
Help (package = ' mypackage '): See ' MyPackage '
Args (function): View parameters of functions
Example (function): Automatically run this function in the Help document example, great!
Demo ("Package"): Show some packages in demostration, need to look again??
Vignette (' MyPackage '): Some packages, especially Bioconductor's, have vignette, use functions to view
Openvignette (' MyPackage '): This function can also be viewed vignette, better with some
Rsitesearch ("Helpinfor"): Search for information about "Helpinfor" on R website
Help.start (): Check out the detailed HTML documentation for the installed package, which is a great command.
Update:
Search (): View the currently loaded package
Sessioninfo (): View packages loaded in R
Sys.getenv ("R_home"): Query R HOME installation Address
Sys.getenv ("Home"): Query user Home Address
Methods (): View all methods in a S3 generic function or all methods in a class (S3:s version 3)
Showmethods (class = "MyClass"): View methods of the S4 class
Findmethods ("Mymethods"): View the code of the method
Class (MyObject): View the classes of an object
GetClass ("Class/package"): View the specific contents of a class or package
Getslots ("class"): View slots for a class
Slotnames (MyObject): View a slot for an object.
You can use [email protected] to access the slot value of the object, this @ design is too cool, can be used continuously.


Query in-Package information: 1. Function/method: See the details of a "function" or "method"
2. Class?graph::graph: See an example of the details of "group". The source of this example is to query the graph package, look at the information of the class, input?? A graph::graph-class appears after graph.

LS ("Package:mypackage"): View all objects in "MyPackage".

Transferred from: http://blog.sina.com.cn/s/blog_61f013b80100ljgq.html

R language Pack-related commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.