<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>smoking186</author_name>
  <author_url>https://blog.hatena.ne.jp/smoking186/</author_url>
  <blog_title>186 @ hatenablog</blog_title>
  <blog_url>https://186.hatenablog.com/</blog_url>
  <categories>
    <anon>確率・統計</anon>
    <anon>CS</anon>
  </categories>
  <description>2次元ランダムウォーク どう書く？org 1次元版が1行で書けてびっくりですよ. wにf.xをapplyしようとしてこけたのでリストに変換後lapplyしてunlistしてベクトル化. もっといいデータ構造を使うと3次元表示のときに点と点の間に線を引けるのではないかと予想. t &lt;- 1000 #1次元 plot(cumsum(c(0,2*floor(2*runif(t-1))-1)),type=&quot;l&quot;) #2次元 x &lt;- 0 y &lt;- 0 f.x &lt;- function(t){switch(t,1,-1,0,0)} f.y &lt;- function(t){switch(t,0,0,1,-1)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F186.hatenablog.com%2Fentry%2F20080728%2F1217253045&quot; title=&quot; Rの練習 - 186 @ hatenablog&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>http://cdn-ak.f.st-hatena.com/images/fotolife/s/smoking186/20080728/20080728225246.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-07-28 22:50:45</published>
  <title> Rの練習</title>
  <type>rich</type>
  <url>https://186.hatenablog.com/entry/20080728/1217253045</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
