<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dichika</author_name>
  <author_url>https://blog.hatena.ne.jp/dichika/</author_url>
  <blog_title>盆栽日記</blog_title>
  <blog_url>https://dichika.hateblo.jp/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>ひとりアドベントカレンダー</anon>
  </categories>
  <description>ひとりアドベントカレンダー2日目。 以下のコードの実行結果は皆さん予想できるだろうか。 x1 &lt;- c(a=1, a=2, a=3, b=1, b=2, b=3) x2 &lt;- c(a=1:3, b=4:6) 結果はこちら。 &gt; x1 a a a b b b 1 2 3 1 2 3 &gt; x2 a1 a2 a3 b1 b2 b3 1 2 3 4 5 6 今度はこちらのコードだとどうだろうか。 y &lt;- rep(letters[1:3], c(2, 1, 3)) z &lt;- c(a=&quot;hoge&quot;, b=&quot;hoge&quot;, c=&quot;hage&quot;) res &lt;- z[y] 結果はこちら。 名前付きベクトルを使うこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F20151202%2Fp1&quot; title=&quot;名前付きベクトルの挙動 - 盆栽日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51-1q-IODsL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-12-02 00:00:00</published>
  <title>名前付きベクトルの挙動</title>
  <type>rich</type>
  <url>https://dichika.hateblo.jp/entry/20151202/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
