User Tools

Site Tools


r

This is an old revision of the document!


베이스 설치하기 base installation

Windows

  1. Open http://www.r-project.org/ in your browser.
  2. Click on “CRAN”. You’ll see a list of mirror sites, organized by country.
  3. Select a site near you.
  4. Click on “Windows” under “Download and Install R”.
  5. Click on “base”.
  6. Click on the link for downloading the latest version of R (an .exe file).
  7. When the download completes, double-click on the .exe file and answer the usual questions.

OS X

  1. Open http://www.r-project.org/ in your browser.
  2. Click on “CRAN”. You’ll see a list of mirror sites, organized by country.
  3. Select a site near you.
  4. Click on “MacOS X”.
  5. Click on the .pkg file for the latest version of R, under “Files:”, to download it.
  6. When the download completes, double-click on the .pkg file and answer the usual questions.

Linux or Unix
The major Linux distributions have packages for installing R. Here are some examples:

Distribution Package name
Ubuntu or Debian r-base
Red Hat or Fedora R.i386
Suse R-base

Use the system’s package manager to download and install the package. Normally, you will need the root password or sudo privileges; otherwise, ask a system administrator to perform the installation.

패키지 설치 package installation

install.packages()

> help("install.packages")
> install.packages("package name")

packages?

  • R 은 base와 package들로 이루어져 있음
  • base를 제외하고 방법적으로 독특하거나 많이 사용하지 않는 통계기능들은 package로 개발이 되어 개별적으로 인스톨하도록 함. 따라서, 통계방법을 사용하면서 점차 특별한 packages들을 사용하게 될 수 있음.
Operator Meaning See also
[ [[ Indexing Recipe 2.9
:: ::: Access variables in a name space
$ @ Component extraction, slot extraction
^ Exponentiation (right to left)
- + Unary minus and plus
: Sequence creation Recipe 2.7, Recipe 7.14
%any% Special operators Discussion
* / Multiplication, division Discussion
+ - Addition, subtraction
== != < > ⇐ >= Comparison Recipe 2.8
! Logical negation
& && Logical “and”, short-circuit “and”
| || Logical “or”, short-circuit “or”
~ Formula Recipe 11.1
→ →> Rightward assignment Recipe 2.2
= Assignment (right to left) Recipe 2.2
← «- Assignment (right to left) Recipe 2.2
? Help Recipe 1.7
r.1472039347.txt.gz · Last modified: 2016/08/24 20:19 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki