본문 바로가기

Programming/R programming

R 기본 명령

R에 설치되어 있는 데이터셋 확인

>library(help=datasets)


Demo 확인

>Demo()

Demos in package ¡®base¡¯:


error.catching    More examples on catching and

                  handling errors

is.things         Explore some properties of R

                  objects and is.FOO() functions. Not

                  for newbies!

recursion         Using recursion for adaptive

                  integration

scoping           An illustration of lexical scoping.


Demos in package ¡®graphics¡¯:


Hershey           Tables of the characters in the

                  Hershey vector fonts

Japanese          Tables of the Japanese characters

                  in the Hershey vector fonts

graphics          A show of some of R's graphics

                  capabilities

image             The image-like graphics builtins of

                  R

persp             Extended persp() examples

plotmath          Examples of the use of mathematics

                  annotation


Demos in package ¡®grDevices¡¯:


colors            A show of R's predefined colors()

hclColors         Exploration of hcl() space


Demos in package ¡®stats¡¯:


glm.vr            Some glm() examples from V&R with

                  several predictors

lm.glm            Some linear and generalized linear

                  modelling examples from `An

                  Introduction to Statistical

                  Modelling' by Annette Dobson

nlm               Nonlinear least-squares using nlm()

smooth            `Visualize' steps in Tukey's

                  smoothers



Use ¡®demo(package = .packages(all.available = TRUE))¡¯

to list the demos in all *available* packages.


Help 기능 살펴보기

 Function

Action 

 help.start()

 General help 

 help("foo") or 

 ? foo 

 Help on function foo (the quotation marks are optional). 

 help.search("foo") or 

 ?? foo

 Search the help system for instances of the string foo.

 example("foo")

 Examples of function foo(the quotation marks are optional). 

 RSiteSearch("foo") 

 Search for the string foo in online help manuals and archived  mailing lists. 

 apropos("foo", mode = "function") 

 List all available functions with foo in their name. 

 data() 

 List all available example datasets contained in currently loaded  packages.

 vignette()

 List all available vignettes for currently installed packages.

 vignette("foo")

 Display specific vignettes for topic foo.





'Programming > R programming' 카테고리의 다른 글

조건 체크  (0) 2016.01.04
난수 생성 함수  (0) 2016.01.04
R Visualization - Points() 함수  (0) 2015.11.20
R Visualization - plot() 함수  (0) 2015.11.19
벡터] 외적과 내적 계산  (0) 2015.07.06