<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iDES</author_name>
  <author_url>https://blog.hatena.ne.jp/iDES/</author_url>
  <blog_title>井出草平の研究ノート</blog_title>
  <blog_url>https://ides.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>計量</anon>
  </categories>
  <description>statisticsglobe.com サンプルデータを作る。 data &lt;- data.frame(x1 = 15:10, x2 = letters[1:6], x3 = 4, row.names = LETTERS[16:21]) data データ。 x1 x2 x3 P 15 a 4 Q 14 b 4 R 13 c 4 S 12 d 4 T 11 e 4 U 10 f 4 例1：cbind関数とnrow関数を使ってデータフレームにID列を追加する data1 &lt;- cbind(ID = 1:nrow(data), data) data1 結果。 ID x1 x2 x3 P 1 15 a …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fides.hatenablog.com%2Fentry%2F2022%2F02%2F03%2F013345&quot; title=&quot;データフレームにID列を追加する[R] - 井出草平の研究ノート&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-03 01:33:45</published>
  <title>データフレームにID列を追加する[R]</title>
  <type>rich</type>
  <url>https://ides.hatenablog.com/entry/2022/02/03/013345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
