<?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>
    <anon>行列</anon>
  </categories>
  <description>こちらから ここから、こうたどって、行きつく「行列の扱い」ここにリンクを張っておいて、検索できるようにしておく 行列の添え字を取り出す関数which() こちらの記事 条件を満足する要素の添え字を取り出す ベクトル形式で取り出すか、行列形式で取り出すかは arr.ind=FALSE,arr.ind=TRUEで選ぶ すべての要素が満足する条件を与えてやればよい A&lt;-matrix(1:12,3,4) A cbind(which(A&lt;=max(A),arr.ind=TRUE),c(A))&gt; A&lt;-matrix(1:12,3,4) &gt; A [,1] [,2] [,3] [,4] [1,] 1 4 7…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada.hatenadiary.jp%2Fentry%2F20101106%2F1288806567&quot; title=&quot;行列の添え字操作 - 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>2010-11-06 02:49:27</published>
  <title>行列の添え字操作</title>
  <type>rich</type>
  <url>https://ryamada.hatenadiary.jp/entry/20101106/1288806567</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
