<?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 の続きです。前回はCSVファイルをRに読み込ませました。今回は読み込んだデータの体裁を整えましょう。 まず、会社の名前から、&quot;株式会社&quot;を削除します。str_remove()関数を使います。 次は会社の所在地から都道府県名だけの列を作ります。 次は、渋谷区とか札幌市などを取り出しましょう。 prefはlocationのはじめの3文字なので、神奈川県、鹿児島県は、cityのはじめの文字が&quot;県&quot;になってしまっているはずです。確認してみましょう。 prefが神奈川県か鹿児島県ならcityの2文字目からに変換すればいいですね。 と、こここまで書きましたが、和歌山県…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2025%2F11%2F23%2F092434&quot; title=&quot;上場企業の温室効果ガス排出のデータの分析2 - データフレームの体裁を整える。 - 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/20251123/20251123081618.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-23 09:24:34</published>
  <title>上場企業の温室効果ガス排出のデータの分析2 - データフレームの体裁を整える。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2025/11/23/092434</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
