<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>関数内関数とmapplyの付近でなんだかよく分からない挙動になっている。まず、以下のような関数を用意。 hoge &lt;- function(x1,x2){ return(function(y){ cat(x1,x2,fill=TRUE) x1*x2*y}) } 内側のmapplyで関数を生成、外側のmapplyでそれを評価している。 &gt; mapply(function(f){f(1)},mapply(hoge,1:3,3:1)) 3 1 3 1 3 1 [1] 3 3 3 なんだかよく分からないが、全部同じになってしまう。これを回避するためには &gt; hoge &lt;- function(x1,x2)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20081003%2F1223033320&quot; title=&quot;R Hackerな人ヘルプ【関数内関数とmapplyのネスト】 - yasuhisa&amp;#39;s blog&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>2008-10-03 20:28:40</published>
  <title>R Hackerな人ヘルプ【関数内関数とmapplyのネスト】</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20081003/1223033320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
