<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cross_hyou</author_name>
  <author_url>https://blog.hatena.ne.jp/cross_hyou/</author_url>
  <blog_title>Rで何かをしたり、読書をするブログ</blog_title>
  <blog_url>https://www.crosshyou.info/</blog_url>
  <categories>
    <anon>データ分析</anon>
  </categories>
  <description>www.crosshyou.info の続きです。 前回作成したデータフレーム, dfのはじめの数行をhead関数でみてみましょう。 このように人数という値が何列にも配置されています。 横長型といえばいいのかな。。。 これを縦長型に変更してみたいと思います。 図で説明すると、 となっているデータフレームに、下の図のように、 officeとninzuuいう新しい変数を作って、 officeにはsapporo, sendai, kantoshinetsuなどの変数名を格納し、 ninzuuには2083522などの値を格納します。 tidyverseパッケージを読み込むとgather関数が利用できま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2020%2F11%2F21%2F184200&quot; title=&quot;国税局別の民間給与実態調査のデータの分析２ - R言語でデータフレームの形態を変更(横長型から縦長型に) - gather関数とspread関数 - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/c/cross_hyou/20201121/20201121180708.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-21 18:42:00</published>
  <title>国税局別の民間給与実態調査のデータの分析２ - R言語でデータフレームの形態を変更(横長型から縦長型に) - gather関数とspread関数</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2020/11/21/184200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
