<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tessy3</author_name>
  <author_url>https://blog.hatena.ne.jp/tessy3/</author_url>
  <blog_title>溢れ出る加齢臭</blog_title>
  <blog_url>https://tessy3.hateblo.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>メモ。これは便利。 度数が0の項目を集計する（集計する項目を特定する）には、levelsオプションを指定してfactor変数にする。 ということは、選択肢が1から30まであるような設問であれば、 table(factor(data,levels=1:30)) みたいな感じにすればいいみたい。levelsの後ろに来るものはベクトルなので、ここが文字ベクトルになっていても構わない。例えば、dataに1から4までの選択肢番号が入っていて、それを選択肢の内容である果物の内容に置き換えてから集計したい場合、 kudamono data table(factor(data,levels=kudamono)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftessy3.hateblo.jp%2Fentry%2F20131205%2F1386235800&quot; title=&quot;table関数で度数が0の項目を集計する - 溢れ出る加齢臭&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>2013-12-05 18:30:00</published>
  <title>table関数で度数が0の項目を集計する</title>
  <type>rich</type>
  <url>https://tessy3.hateblo.jp/entry/20131205/1386235800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
