<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://www.commres.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.commres.net/feed.php">
        <title>COMMunication&lt;br /&gt;RESearch.NET - b:r_cookbook</title>
        <description></description>
        <link>http://www.commres.net/</link>
        <image rdf:resource="http://www.commres.net/_media/wiki/logo.png" />
       <dc:date>2026-04-17T09:54:14+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/basics?rev=1583748893&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/data_structures?rev=1590482453&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/data_transformations?rev=1583749097&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/general_statistics?rev=1583749182&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/getting_started?rev=1584467290&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/graphics?rev=1583749272&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/input_output?rev=1583749007&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/navigating?rev=1583748967&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.commres.net/b/r_cookbook/probability?rev=1758064935&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.commres.net/_media/wiki/logo.png">
        <title>COMMunication<br />RESearch.NET</title>
        <link>http://www.commres.net/</link>
        <url>http://www.commres.net/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="http://www.commres.net/b/r_cookbook/basics?rev=1583748893&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:14:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>basics</title>
        <link>http://www.commres.net/b/r_cookbook/basics?rev=1583748893&amp;do=diff</link>
        <description>Print

&gt; pi 
[1] 3.141593
&gt; sqrt(2)
[1] 1.414214


When you enter expressions like that, R evaluates the expression and then implicitly calls the print function. So the previous example is identical to this:

&gt; print(pi)
[1] 3.141593
&gt; print(sqrt(2))
[1] 1.414214

$$ r = \frac {\text{covariance (x, y)}}  {sd(x) * sd(y)} $$</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/data_structures?rev=1590482453&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-26T08:40:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>data_structures</title>
        <link>http://www.commres.net/b/r_cookbook/data_structures?rev=1590482453&amp;do=diff</link>
        <description>DATA

Vectors

	*  벡터
	*  Vectors are homogeneous: All elements of a vector must have the same type.
	*  Vectors can be indexed by position: v[2] refers to the second element of v.
	*  Vectors can be indexed by multiple positions, returning a subvector: v</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/data_transformations?rev=1583749097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:18:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>data_transformations</title>
        <link>http://www.commres.net/b/r_cookbook/data_transformations?rev=1583749097&amp;do=diff</link>
        <description>&gt; v &lt;- c(40,2,83,28,58)
&gt; f &lt;- factor(c(&quot;A&quot;,&quot;C&quot;,&quot;C&quot;,&quot;B&quot;,&quot;C&quot;))


Splitting a Vector into Groups

&gt; library(MASS)
Warning message:
패키지 ‘MASS’는 R 버전 3.2.5에서 작성되었습니다 
&gt; split(Cars93$MPG.city, Cars93$Origin) # Origin별로 MPG.city를 나눠라
$USA
 [1] 22 19 16 19 16 16 25 25 19 21 18 15
[13] 17 17 20 23 20 29 23 22 17 21 18 29
[25] 20 31 23 22 22 24 15 21 18 17 18 23
[37] 19 24 23 18 19 23 31 23 19 19 19 28

$`non-USA`
 [1] 25 18 20 19 22 46 30 24 42 24 29 22
[13] 26 20 17 18 18 29 28 26 18 17 20 19
[25] 29 1…</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/general_statistics?rev=1583749182&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:19:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>general_statistics</title>
        <link>http://www.commres.net/b/r_cookbook/general_statistics?rev=1583749182&amp;do=diff</link>
        <description>Null Hypotheses, Alternative Hypotheses, and p-Values 

9.1. Summarizing Your Data

library(MASS)    # to include Cars93 data

&gt; summary(Cars93$Manufacturer)
        Acura          Audi           BMW         Buick 
            2             2             1             4 
     Cadillac     Chevrolet      Chrylser      Chrysler 
            2             8             1             2 
        Dodge         Eagle          Ford           Geo 
            6             2             8             2 
…</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/getting_started?rev=1584467290&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-17T17:48:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>getting_started</title>
        <link>http://www.commres.net/b/r_cookbook/getting_started?rev=1584467290&amp;do=diff</link>
        <description>Installation, base

Windows

	*  Open &lt;http://www.r-project.org/&gt; in your browser.
	*  Click on “CRAN”. You’ll see a list of mirror sites, organized by country.
	*  Select a site near you.
	*  Click on “Windows” under “Download and Install R”.
	*  Click on “base”.</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/graphics?rev=1583749272&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:21:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>graphics</title>
        <link>http://www.commres.net/b/r_cookbook/graphics?rev=1583749272&amp;do=diff</link>
        <description>Notes on Graphics Functions
It is important to understand the distinction between high-level and low-level graphics functions. A high-level graphics function starts a new graph. It initializes the graphics window (creating it if necessary); sets the scale; maybe draws some adornments, such as a title and labels; and renders the graphic. Examples include:</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/input_output?rev=1583749007&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:16:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>input_output</title>
        <link>http://www.commres.net/b/r_cookbook/input_output?rev=1583749007&amp;do=diff</link>
        <description>A Philosophical Note on R input system

Several of my Statistical Analysis System (SAS) friends are disappointed with the input facilities of R. They point out that SAS has an elaborate set of commands for reading and parsing input files in many formats. R does not, and this leads them to conclude that R is not ready for real work. After all, if it can’t read your data, what good is it?</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/navigating?rev=1583748967&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-09T10:16:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>navigating</title>
        <link>http://www.commres.net/b/r_cookbook/navigating?rev=1583748967&amp;do=diff</link>
        <description>Working Directory

Getting 

&gt; getwd()
[1] &quot;/home/paul/research&quot;
&gt; setwd(&quot;Bayes&quot;)
&gt; getwd()
[1] &quot;/home/paul/research/Bayes&quot;



setwd(&quot;c:/r_data&quot;)
getwd()


Saving Workspace

&gt; save.image()

Command History

&gt; history()             # Default 25
&gt; history(100)          # Show 100 most recent lines of history
&gt; history(Inf)          # Show entire saved history</description>
    </item>
    <item rdf:about="http://www.commres.net/b/r_cookbook/probability?rev=1758064935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-09-16T23:22:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>probability</title>
        <link>http://www.commres.net/b/r_cookbook/probability?rev=1758064935&amp;do=diff</link>
        <description>Normal distribution functions
 Function   Purpose   dnorm	  Normal density   pnorm	  Normal distribution function   qnorm	  Normal quantile function   rnorm	  Normal random variates  
Table 8-1. Discrete distributions
 Discrete distribution   R name  $ f(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{\frac{-(x-\mu)^2}{2\sigma^2}} $$t = \frac{Z}{\sqrt{\frac{V}{m}}}$$$n!/r!(n − r)!$$</description>
    </item>
</rdf:RDF>
