<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada/</author_url>
  <blog_title>ryamadaのコンピュータ・数学メモ</blog_title>
  <blog_url>https://ryamada.hatenadiary.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>こちらから 自分の備忘録にこの日記にもメモを残しておく # ループを減らすのはRのこつ # apply()系の関数の使い方は内容のよくわかっているものでやってみるのが一番 # ローカスごとにアレル数を取り出す l&lt;-6 k&lt;-sample(2:50,l,replace=TRUE) # 各ローカスのアレル数が出たら、それを使って、 # 各ローカスのアレルIDのリストを作る alist&lt;-sapply(k,&quot;:&quot;,1) # アレルのリストがあれば、そこから１つ取り出せばよい # リストの要素のそれぞれに同じ処理をするには&quot;lapply()&quot;関数を使う hap1&lt;-c(as.numeric(lapp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada.hatenadiary.jp%2Fentry%2F20110114%2F1294482918&quot; title=&quot;apply()系関数はなかなか覚えきれないが… - ryamadaのコンピュータ・数学メモ&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>2011-01-14 19:35:18</published>
  <title>apply()系関数はなかなか覚えきれないが…</title>
  <type>rich</type>
  <url>https://ryamada.hatenadiary.jp/entry/20110114/1294482918</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
