<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jnobuyuki</author_name>
  <author_url>https://blog.hatena.ne.jp/jnobuyuki/</author_url>
  <blog_title>jnobuyukiのブログ</blog_title>
  <blog_url>https://webbeginner.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>R言語</anon>
  </categories>
  <description>R言語のちょっとした使い方のヒントです。今回は複数の行列（matrix）を結合するための関数rbindとcbindを紹介します。 rbindとcbind rbindとcbindの違いは結合の方向です。rbindは縦につなげて、cbindは横につなげます。データ解析で行列オブジェクトを使用する際は、列に変数、行にケースを割り当てるのが典型的だと思います（図を参照）。 図：行列オブジェクトで変数とケースを設定する 使用上の注意 rbindなら結合する行列の列数、cbindなら行数が合っていないとerrorが出ます。 #3種類の行列オブジェクトを用意 matA &lt;- matrix(1:9,ncol …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwebbeginner.hatenablog.com%2Fentry%2F2015%2F02%2F06%2F132256&quot; title=&quot;R言語で行列を結合する：rbindとcbind - jnobuyukiのブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/j/jnobuyuki/20150206/20150206130307.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-06 13:22:56</published>
  <title>R言語で行列を結合する：rbindとcbind</title>
  <type>rich</type>
  <url>https://webbeginner.hatenablog.com/entry/2015/02/06/132256</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
