<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>indenkun</author_name>
  <author_url>https://blog.hatena.ne.jp/indenkun/</author_url>
  <blog_title>備忘ログ</blog_title>
  <blog_url>https://indenkun.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>初歩的なことかもしれないが忘れるのでメモ。 Rのsapply()やmapply()の引数についてUSE.NAMESドキュメントちゃんと読めばわかるんだけど、引数の名前と関数の処理から邪推していつも勘違いする。ちゃんと理解したつもりでも時間が経つと、また「あれ、あれっていけるんだっけか？」とすぐに忘れる。 なにを勘違いするかというと、sapply()でUSE.NAMESはデフォルトでTRUEになっているが、これをFALSEにすると出力結果が名前付きのベクトルから、名前無しのベクトルになるんじゃないかということ1。 これは完全な勘違いで、簡単なコードとして次のようなものでもわかる。IRISデータの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findenkun.hatenablog.com%2Fentry%2F2021%2F04%2F13%2F220140&quot; title=&quot;Rのsapply()のUSE.NAMESのメモ - 備忘ログ&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>2021-04-13 22:01:40</published>
  <title>Rのsapply()のUSE.NAMESのメモ</title>
  <type>rich</type>
  <url>https://indenkun.hatenablog.com/entry/2021/04/13/220140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
