<?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>今回は、金の各需要の比率を計算しようと思います。 まずは、CSVファイルのデータをread.csv関数で読込みます。 どのようなデータか全体表示します。 元のデータファイルには、「その他」の項目もありましたが、このブログの分析では除外しています。なので、各需要の比率といっても実際の比率ではなく、あくまでもこのブログ内での比率になります。 年と月の列は計算にいらないので、年と月の無いデータフレームを作成しましょう。 gold[ , c(-1,-2)] としていますが、gold[ , c(3:8)]としても同じですね。 各行の合計値を計算します。apply関数とsum関数ですね。 この合計値の推移…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2018%2F09%2F15%2F160621&quot; title=&quot;貴金属流通統計調査の分析２ - 各需要の比率を計算する。 - 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/20180915/20180915153557.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-15 16:06:21</published>
  <title>貴金属流通統計調査の分析２ - 各需要の比率を計算する。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2018/09/15/160621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
