<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ikan bilis</title>
	<atom:link href="http://ikanb.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ikanb.wordpress.com</link>
	<description>A small collection of curious things.</description>
	<lastBuildDate>Sun, 13 Nov 2011 04:33:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ikanb.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/90d2364016fac64b2515cbdbda0571b8?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>ikan bilis</title>
		<link>http://ikanb.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ikanb.wordpress.com/osd.xml" title="ikan bilis" />
	<atom:link rel='hub' href='http://ikanb.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Identifying and characterizing droughts with R</title>
		<link>http://ikanb.wordpress.com/2011/06/11/identifying-and-characterizing-droughts-with-r/</link>
		<comments>http://ikanb.wordpress.com/2011/06/11/identifying-and-characterizing-droughts-with-r/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 12:00:55 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[climate]]></category>
		<category><![CDATA[dendro]]></category>
		<category><![CDATA[drought]]></category>
		<category><![CDATA[paleo]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[streamflow]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=289</guid>
		<description><![CDATA[Recently, I&#8217;ve been playing with patterns of drought in paleo records of streamflow. One of the earliest and most helpful tools I&#8217;ve developed, identifies and characterizes droughts in extremely long time series using R. I&#8217;m still hacking my way through it, but this is what has been cooking thus far&#8230; For this example I&#8217;ll be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=289&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Recently, I&#8217;ve been playing with patterns of drought in paleo records of streamflow. One of the earliest and most helpful tools I&#8217;ve developed, identifies and characterizes droughts in extremely long time series using R. I&#8217;m still hacking my way through it, but this is what has been cooking thus far&#8230;</p>
<p> For this example I&#8217;ll be using the Meko et al. 2007 tree-ring reconstruction of the Colorado River&#8217;s annual natural flow at Lees Ferry, AZ (extending from A.D. 762-2005). You can <a title="Online data from Meko et al. 2007" href='http://www.ncdc.noaa.gov/paleo/pubs/meko2007/meko2007.html'>check out the data</a> yourself. I&#8217;ll be loading it in an R example below. </p>
<p> The heart of this relies on <kbd>FindDrought</kbd>, a function that returns a simple binary mask to determine whether a particular year is a &#8220;drought year&#8221; or not. Here, I&#8217;m defining drought as years of below-mean flow, broken by two or more years of above average flow.</p>
<p><pre class="brush: r; gutter: false; wrap-lines: false;">
FindDrought &lt;- function(x, averageflow=mean(x)) {
  # Determines whether a given time period is in a drought, given a record.
  #
  # Args:
  #   x: A vector of annual stream flow observations.
  #   averageflow: If you want to specify a flow average for finding droughts.
  #
  # Returns:
  #   A vector indicating whether drought present (TRUE) or not present (FALSE).
  foo &lt;- rep(TRUE, length(x))
  foo[x &gt;= averageflow] &lt;- FALSE
  runs &lt;- rle(foo)
  runs$values[runs$lengths &lt; 2 &amp; runs$values == FALSE] &lt;- TRUE
  return(inverse.rle(runs))
}
</pre>
</p>
<p> Having defined what years are and are not droughts, we can then use this information in the <kbd>DefineDrought</kbd>. This function loops through and collects basic characteristics about each drought event, returning each drought&#8217;s start year, stop year, duration, and &#8220;intensity&#8221; (the sum  of anomalies).</p>
<p><pre class="brush: r; gutter: false; wrap-lines: false;">
DefineDrought &lt;- function(x, y, averageflow=mean(y)) {
  # Determines basic characteristics of droughts in a given flow time series.
  #
  # Args:
  #   x: Year of time series observation, in a vector format.
  #   y: Time series or vector of river flow observations.
  #   averageflow: If you want to specify a flow average for finding droughts.
  #
  # Returns:
  #   A data frame with columns giving:
  #   1) The starting period of a drought - &quot;start&quot;.
  #   2) The period a drought stops - &quot;stop&quot;.
  #   3) The number of periods that the drought was present - &quot;duration&quot;.
  #   4) The sum of anomalies for the drought period - &quot;anom.sum&quot;.
  drought.present &lt;- FindDrought(y, averageflow = averageflow)
  start &lt;- c()
  stop &lt;- c()
  duration &lt;- c()
  anom.sum &lt;- c()
  temp.start &lt;- FALSE
  temp.duration &lt;- 0
  temp.anom.sum &lt;- 0
  # There is likely a more elegant way to handle this aside form loops.
  for (obs in 1:length(y)) {
    if (drought.present[obs] == FALSE) {
      temp.start &lt;- FALSE
      temp.duration &lt;- 0
      temp.anom.sum &lt;- 0
    }
    else if (drought.present[obs] == TRUE) {
      if (!temp.start)
        temp.start &lt;- x[obs]
      temp.duration &lt;- temp.duration + 1
      temp.anom.sum &lt;- temp.anom.sum + (y[obs] - averageflow)
      if ((drought.present[obs + 1] == FALSE) | (obs + 1 &gt; length(y))) {
        start &lt;- append(start, temp.start)
        stop &lt;- append(stop, x[obs])
        duration &lt;- append(duration, temp.duration)
        anom.sum &lt;- append(anom.sum, temp.anom.sum)
      }
    }
  }
  return(data.frame(start, stop, duration, anom.sum))
}
</pre></p>
<p> If this tugs at your bobber, you can put this to use in a simple interactive session:<br />
<pre class="brush: r; gutter: false; wrap-lines: false;">
lees &lt;- read.table('ftp://ftp.ncdc.noaa.gov/pub/data/paleo/treering/reconstructions/northamerica/usa/upper-colorado-flow2007.txt',
  header = TRUE,
  skip = 158,  # To skip the meta data.
  na.strings = 'NULL')

# Drum-roll, please.
lees.droughts &lt;- DefineDrought(x = lees$Year, y = lees$RecMAF)
</pre><br />
Here, <kbd>DefineDrought</kbd> returns a simple dataframe with the structure:</p>
<pre>
'data.frame':	169 obs. of  4 variables:
 $ start   : int  762 770 774 779 786 790 797 805 812 822 ...
 $ stop    : int  767 771 774 781 786 794 799 809 819 830 ...
 $ duration: num  6 2 1 3 1 5 3 5 8 9 ...
 $ anom.sum: num  -2.51 -1.81 -2.33 1.14 -5.89 ...
</pre>
<p>You&#8217;ll note that this is very sensitive to the slightest decline in streamflow. You are able to tweak <kbd>DefineDrought</kbd>&#8216;s sensitivity by manually specifying a mean flow value and passing this as an argument. However, especially in exploratory analysis, I&#8217;ve found it best to simply sort or filter from this default list so that we can see the entire range of values, even in single year &#8220;droughts&#8221;.</p>
<p> There you have it! Beats sifting through a time series and manually defining droughts by hand. My next post will (hopefully) be a continuation of this, showing how I&#8217;ve used this information to visualize drought onset and impact with <kbd>ggplot2</kbd>.</p>
<p> As always, I&#8217;m happy to hear questions, comments, corrections or concerns! </p>
<p><strong>EDIT:</strong> Updated the FindDrought function based on <a href="http://cameron.bracken.bz/" title="Cameron's blog">Cameron Bracken</a>&#8216;s sagely wisdom. Many thanks for introducing me to <kbd>rle()</kbd>!</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/analysis/'>analysis</a>, <a href='http://ikanb.wordpress.com/tag/climate/'>climate</a>, <a href='http://ikanb.wordpress.com/tag/dendro/'>dendro</a>, <a href='http://ikanb.wordpress.com/tag/drought/'>drought</a>, <a href='http://ikanb.wordpress.com/tag/paleo/'>paleo</a>, <a href='http://ikanb.wordpress.com/tag/r/'>R</a>, <a href='http://ikanb.wordpress.com/tag/streamflow/'>streamflow</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=289&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2011/06/11/identifying-and-characterizing-droughts-with-r/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>Visuals and music</title>
		<link>http://ikanb.wordpress.com/2011/04/08/visuals-and-music/</link>
		<comments>http://ikanb.wordpress.com/2011/04/08/visuals-and-music/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 22:58:08 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[visual]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=271</guid>
		<description><![CDATA[Give this a try. Trust me. It&#8217;s cool. Tagged: art, audio, cool, interactive, music, visual<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=271&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Give <a title="?" href='http://mandaflewaway.tumblr.com/post/2057242738'>this</a> a try.</p>
<p>Trust me. It&#8217;s cool.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/art/'>art</a>, <a href='http://ikanb.wordpress.com/tag/audio/'>audio</a>, <a href='http://ikanb.wordpress.com/tag/cool/'>cool</a>, <a href='http://ikanb.wordpress.com/tag/interactive/'>interactive</a>, <a href='http://ikanb.wordpress.com/tag/music/'>music</a>, <a href='http://ikanb.wordpress.com/tag/visual/'>visual</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=271&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2011/04/08/visuals-and-music/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with University of Arizona&#8217;s secure wireless network on Ubuntu Linux</title>
		<link>http://ikanb.wordpress.com/2011/03/14/uaz-wifi-ubuntu-linux/</link>
		<comments>http://ikanb.wordpress.com/2011/03/14/uaz-wifi-ubuntu-linux/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 01:38:27 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=256</guid>
		<description><![CDATA[I&#8217;m sure that someone out there is struggling with this. So, here is a quick screenshot of the security settings, in the Network Manager applet, that you need to get Ubuntu to run on the University of Arizona&#8217;s secure wireless network. The same will apply for Debian and most GNOME-based desktops. &#8230;and you&#8217;ll want to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=256&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that someone out there is struggling with this. So, here is a quick screenshot of the security settings, in the Network Manager applet, that you need to get Ubuntu to run on the University of Arizona&#8217;s secure wireless network. The same will apply for Debian and most GNOME-based desktops.</p>
<p><img src="http://ikanb.files.wordpress.com/2011/03/screenshot-editing-auto-uawifi.png?w=451&#038;h=513" title="UAWifi network security settings" alt="UAWifi network security settings" width="451" height="513" /></p>
<p>&#8230;and you&#8217;ll want to put your NetID username and password in there, for the last two entries.</p>
<p>Fairly straightforward once you get it.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/linux/'>linux</a>, <a href='http://ikanb.wordpress.com/tag/network/'>network</a>, <a href='http://ikanb.wordpress.com/tag/security/'>security</a>, <a href='http://ikanb.wordpress.com/tag/ubuntu/'>ubuntu</a>, <a href='http://ikanb.wordpress.com/tag/university/'>university</a>, <a href='http://ikanb.wordpress.com/tag/wifi/'>wifi</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=256&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2011/03/14/uaz-wifi-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>

		<media:content url="http://ikanb.files.wordpress.com/2011/03/screenshot-editing-auto-uawifi.png" medium="image">
			<media:title type="html">UAWifi network security settings</media:title>
		</media:content>
	</item>
		<item>
		<title>New R code for &#8216;moving&#8217; or &#8216;running&#8217; correlations</title>
		<link>http://ikanb.wordpress.com/2011/03/04/new-r-code-for-moving-correlations/</link>
		<comments>http://ikanb.wordpress.com/2011/03/04/new-r-code-for-moving-correlations/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 17:09:44 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=231</guid>
		<description><![CDATA[Someone at the lab asked how to &#8216;do something like running means, but with correlations&#8217;. I couldn&#8217;t find any existing code that would make a good example, so I just wrote some myself. It would be nice to do this without looping. If anyone has a clever way to do this, please do let me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=231&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Someone at the lab asked how to &#8216;do something like running means, but with correlations&#8217;. I couldn&#8217;t find any existing code that would make a good example, so I just wrote some myself.</p>
<p>It would be nice to do this without looping. If anyone has a clever way to do this, please do let me know.</p>
<p><pre class="brush: r; gutter: false; wrap-lines: false;">
# 2011-03-04
# v0.01

MovingCor &lt;- function(x, y, window.size=21, method=&quot;pearson&quot;) {
  # Computes moving correlations between two vectors with symmetrical windows.
  #
  # Args:
  #   x: One of the two vectors whose correlation is to be calculated.
  #   y: The other vector. Note that it must be of the same length as x.
  #   window.size: The size of windows to be used for each calculated
  #                correlation. Note that if even numbers are chosen, the
  #                window will not be skewed as there will be one extra value
  #                on the upper-side of the window. Default size is 21.
  #   method: The method of correlation. May be: &quot;pearson&quot;, &quot;kendall&quot;, or
  #           &quot;spearman&quot;. Default is &quot;pearson&quot;.
  #
  # Returns:
  #   A vector of the moving correlations.
  n &lt;- length(x)
  # Setup a few catches for error handling.
  if (TRUE %in% is.na(y) || TRUE %in% is.na(x)) {
    stop(&quot;Arguments x and y cannot have missing values.&quot;)
  }
  if (n &amp;lt;= 1 || n != length(y)) {
    stop(&quot;Arguments x and y have different lengths: &quot;,
         length(x), &quot; and &quot;, length(y), &quot;.&quot;)
  }
  out &lt;- rep(NA, round(window.size/2))  # Stuffing the returned vector.
  for (value in seq(from = 1, to = n - (window.size - 1))) {
    value.end &amp;lt;- value + (window.size - 1)
    out &lt;- append(out, cor(x[value:value.end],
                           y[value:value.end],
                           method = method))
  }
  out &lt;- append(out, rep(NA, n - length(out)))  # Finish stuffing.
  return(out)
}
</pre></p>
<p><strong>EDIT:</strong><br />
There are more nimble functions out there for this, and other window-related tasks. See the <kbd>caTools</kbd>&#8216;s <kbd>runmean</kbd> function. The package <kbd>zoo</kbd> also has a number of quick functions including <kbd>rollmean</kbd> and the more general <kbd>rollapply</kbd>.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/code/'>code</a>, <a href='http://ikanb.wordpress.com/tag/r/'>R</a>, <a href='http://ikanb.wordpress.com/tag/stats/'>stats</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=231&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2011/03/04/new-r-code-for-moving-correlations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>The Birthday Skeleton</title>
		<link>http://ikanb.wordpress.com/2010/12/04/the-birthday-skeleton/</link>
		<comments>http://ikanb.wordpress.com/2010/12/04/the-birthday-skeleton/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 21:19:22 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[comic]]></category>
		<category><![CDATA[death]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[material]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=211</guid>
		<description><![CDATA[Drawn by &#8216;BostonDanceParty&#8217;. I claim no rights to this work. You can find the original here. Tagged: comic, death, funny, material<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=211&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ikanb.wordpress.com/2010/12/04/the-birthday-skeleton/birthday_skeleton_by_bostondanceparty/" rel="attachment wp-att-210"><img src="http://ikanb.files.wordpress.com/2010/12/birthday_skeleton_by_bostondanceparty.jpg?w=460&#038;h=1254" alt="Birthday Skeleton" title="Birthday Skeleton" width="460" height="1254" class="alignnone size-full wp-image-210" /></a></p>
<p>Drawn by &#8216;BostonDanceParty&#8217;.  I claim no rights to this work. You can find the original <a href="http://bostondanceparty.deviantart.com/art/Birthday-Skeleton-162070160" title="bostondanceparty on deviantart.com">here</a>.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/comic/'>comic</a>, <a href='http://ikanb.wordpress.com/tag/death/'>death</a>, <a href='http://ikanb.wordpress.com/tag/funny/'>funny</a>, <a href='http://ikanb.wordpress.com/tag/material/'>material</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=211&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/12/04/the-birthday-skeleton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>

		<media:content url="http://ikanb.files.wordpress.com/2010/12/birthday_skeleton_by_bostondanceparty.jpg" medium="image">
			<media:title type="html">Birthday Skeleton</media:title>
		</media:content>
	</item>
		<item>
		<title>Best acting evar</title>
		<link>http://ikanb.wordpress.com/2010/09/25/best-acting-evar/</link>
		<comments>http://ikanb.wordpress.com/2010/09/25/best-acting-evar/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 09:25:54 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[bad]]></category>
		<category><![CDATA[comedy]]></category>
		<category><![CDATA[drama]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[indie]]></category>
		<category><![CDATA[movie]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=196</guid>
		<description><![CDATA[Sorry for having another content-less post. I still have not quiiiiiite finish the manuscript I am trying to wrap up. I have also had quite a bit of blogging/writing for class and so, I am afraid this old girl gets put on the back burner. Anyways, yes, I know I&#8217;m a bit late in recommending [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=196&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://ikanb.wordpress.com/2010/09/25/best-acting-evar/"><img src="http://img.youtube.com/vi/mQ4KzClb1C4/2.jpg" alt="" /></a></span>
<p>Sorry for having another content-less post. I still have not quiiiiiite finish the manuscript I am trying to wrap up. I have also had quite a bit of blogging/writing for class and so, I am afraid this old girl gets put on the back burner.</p>
<p>Anyways, yes, I know I&#8217;m a bit late in recommending this, but, if you have not taken the time to see this <a title="IMDB's page for 'The Room (2006)'" href="http://www.imdb.com/title/tt0368226/">gem of the cinema</a>, I strongly recommend it. It is good in the painful, &#8220;I-don&#8217;t-think-this-could-possibly-get-any-worse&#8221; kind of way.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/bad/'>bad</a>, <a href='http://ikanb.wordpress.com/tag/comedy/'>comedy</a>, <a href='http://ikanb.wordpress.com/tag/drama/'>drama</a>, <a href='http://ikanb.wordpress.com/tag/film/'>film</a>, <a href='http://ikanb.wordpress.com/tag/indie/'>indie</a>, <a href='http://ikanb.wordpress.com/tag/movie/'>movie</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=196&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/09/25/best-acting-evar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>Lady Gaga&#8217;s Poker Face read by Christopher Walken</title>
		<link>http://ikanb.wordpress.com/2010/08/22/walken_reads_gaga/</link>
		<comments>http://ikanb.wordpress.com/2010/08/22/walken_reads_gaga/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 00:45:13 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[actor]]></category>
		<category><![CDATA[comedy]]></category>
		<category><![CDATA[culture]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[lady gaga]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sing]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=188</guid>
		<description><![CDATA[When I first saw this I thought my head might explode with the sheer awesomeness of the moment. Tagged: actor, comedy, culture, funny, lady gaga, music, read, sing<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=188&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://ikanb.wordpress.com/2010/08/22/walken_reads_gaga/"><img src="http://img.youtube.com/vi/AJDx3H_hvI8/2.jpg" alt="" /></a></span>
<p>When I first saw this I thought my head might explode with the sheer awesomeness of the moment.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/actor/'>actor</a>, <a href='http://ikanb.wordpress.com/tag/comedy/'>comedy</a>, <a href='http://ikanb.wordpress.com/tag/culture-2/'>culture</a>, <a href='http://ikanb.wordpress.com/tag/funny/'>funny</a>, <a href='http://ikanb.wordpress.com/tag/lady-gaga/'>lady gaga</a>, <a href='http://ikanb.wordpress.com/tag/music/'>music</a>, <a href='http://ikanb.wordpress.com/tag/read/'>read</a>, <a href='http://ikanb.wordpress.com/tag/sing/'>sing</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=188&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/08/22/walken_reads_gaga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>First-Person Tetris</title>
		<link>http://ikanb.wordpress.com/2010/08/07/first-person-tetris/</link>
		<comments>http://ikanb.wordpress.com/2010/08/07/first-person-tetris/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 02:58:01 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[tetris]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=180</guid>
		<description><![CDATA[This game is crazy awesome. I suggest night mode if you&#8217;re looking for a challenge. Also, music type 3 FTW. Tagged: fun, game, tetris<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=180&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.firstpersontetris.com/' title='Beware. This is very addictive.'>This game</a> is crazy awesome.</p>
<p> I suggest <q>night mode</q> if you&#8217;re looking for a challenge. Also, music type 3 FTW.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/fun/'>fun</a>, <a href='http://ikanb.wordpress.com/tag/game/'>game</a>, <a href='http://ikanb.wordpress.com/tag/tetris/'>tetris</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=180&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/08/07/first-person-tetris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>Worth reposting: &#8220;A Declaration of the Independence of Cyberspace&#8221;</title>
		<link>http://ikanb.wordpress.com/2010/07/11/cyberspace_independence/</link>
		<comments>http://ikanb.wordpress.com/2010/07/11/cyberspace_independence/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 06:01:21 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bigbrother]]></category>
		<category><![CDATA[censorship]]></category>
		<category><![CDATA[cyberspace]]></category>
		<category><![CDATA[declaration]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[independence]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[policy]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=134</guid>
		<description><![CDATA[This was originally written in 1996. I agree with Thomas Gideon that this remains a relevant and an interesting read, and so, I&#8217;m reposting it here. A Declaration of the Independence of Cyberspace Governments of the Industrial World, you weary giants of flesh and steel, I come from Cyberspace, the new home of Mind. On [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=134&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This was originally written in 1996. I agree with <a title="Thomas Gideon's podcast episode where he reads out and briefly discusses his ideas around this" href="http://thecommandline.net/2010/07/04/tclp-2010-07-04-a-declaration-of-independence-for-cyberspace/">Thomas Gideon</a> that this remains a relevant and an interesting read, and so, I&#8217;m reposting it here.</p>
<blockquote cite="https://w2.eff.org/Censorship/Internet_censorship_bills/barlow_0296.declaration">
<h3>A Declaration of the Independence of Cyberspace</h3>
<p>Governments of the Industrial World, you weary giants of flesh and steel, I come from Cyberspace, the new home of Mind. On behalf of the future, I ask you of the past to leave us alone. You are not welcome among us. You have no sovereignty where we gather.</p>
<p>We have no elected government, nor are we likely to have one, so I address you with no greater authority than that with which liberty itself always speaks. I declare the global social space we are building to be naturally independent of the tyrannies you seek to impose on us. You have no moral right to rule us nor do you possess any methods of enforcement we have true reason to fear.</p>
<p>Governments derive their just powers from the consent of the governed. You have neither solicited nor received ours. We did not invite you. You do not know us, nor do  you know our world. Cyberspace does not lie within your borders. Do not think that you can build it, as though it were a public construction project. You cannot. It is an act of nature and it grows<br />
itself through our collective actions.</p>
<p>You have not engaged in our great and gathering conversation, nor did you create the wealth of our marketplaces. You do not know our culture, our ethics, or the unwritten codes that already provide our society more order than could be obtained by any of your impositions.</p>
<p>You claim there are problems among us that you need to solve. You use this claim as an excuse to invade our precincts. Many of these problems don&#8217;t exist. Where there are real conflicts, where there are wrongs, we will identify them and address them by our means. We are forming our own Social Contract . This governance will arise according to the conditions of our world, not yours. Our world is different.</p>
<p>Cyberspace consists of transactions, relationships, and thought itself, arrayed like a standing wave in the web of our communications.  Ours is a world that is both everywhere and nowhere, but it is not where bodies live.</p>
<p>We are creating a world that all may enter without privilege or prejudice accorded by race, economic power, military force, or station of birth.</p>
<p>We are creating a world where anyone, anywhere may express his or her beliefs, no matter how singular, without fear of being coerced into silence or conformity.</p>
<p>Your legal concepts of property, expression, identity, movement, and context do not apply to us. They are based on matter, There is no matter here.</p>
<p>Our identities have no bodies, so, unlike you, we cannot obtain order by physical coercion. We believe that from ethics, enlightened self-interest, and the commonweal, our governance will emerge . Our identities may be distributed across many of your jurisdictions. The only law that all our constituent cultures would generally recognize is the Golden Rule. We hope we will be able to build our particular solutions on that basis.  But we<br />
cannot accept the solutions you are attempting to impose.</p>
<p>In the United States, you have today created a law, the Telecommunications Reform Act, which repudiates your own Constitution and insults the dreams of Jefferson, Washington, Mill, Madison, DeToqueville, and Brandeis. These dreams must now be born anew in us.</p>
<p>You are terrified of your own children, since they are natives in a world where you will always be immigrants. Because you fear them, you entrust your bureaucracies with the parental responsibilities you are too cowardly to confront yourselves. In our world, all the sentiments and expressions of humanity, from the debasing to the angelic, are parts of a seamless whole, the global conversation of bits. We cannot separate the air that chokes from the air upon which wings beat.</p>
<p>In China, Germany, France, Russia, Singapore, Italy and the United States, you are trying to ward off the virus of liberty by erecting guard posts at the frontiers of Cyberspace. These may keep out the contagion for a small time, but they will not work in a world that will soon be blanketed in bit-bearing media.</p>
<p>Your increasingly obsolete information industries would perpetuate themselves by proposing laws, in America and elsewhere, that claim to own speech itself throughout the world. These laws would declare ideas to be another industrial product, no more noble than pig iron. In our world, whatever the human mind may create can be reproduced and distributed infinitely at no cost. The global conveyance of thought no longer requires your factories to accomplish.</p>
<p>These increasingly hostile and colonial measures place us in the same position as those previous lovers of freedom and self-determination who had to reject the authorities of distant, uninformed powers. We must declare our virtual selves immune to your sovereignty, even as we continue to consent to your rule over our bodies. We will spread ourselves across the Planet so that no one can arrest our thoughts.</p>
<p>We will create a civilization of the Mind in Cyberspace. May it be more humane and fair than the world your governments have made before.</p>
</blockquote>
<p style="text-align:right;">- <a title="A link to John Barlow's original mailing list posting in 1996" href="https://w2.eff.org/Censorship/Internet_censorship_bills/barlow_0296.declaration" target="_blank">John Perry Barlow, 1996</a></p>
<p>I promise I&#8217;ll start posting more material&#8230; as soon as I get my manuscript shipped.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/bigbrother/'>bigbrother</a>, <a href='http://ikanb.wordpress.com/tag/censorship/'>censorship</a>, <a href='http://ikanb.wordpress.com/tag/cyberspace/'>cyberspace</a>, <a href='http://ikanb.wordpress.com/tag/declaration/'>declaration</a>, <a href='http://ikanb.wordpress.com/tag/geek/'>geek</a>, <a href='http://ikanb.wordpress.com/tag/government/'>government</a>, <a href='http://ikanb.wordpress.com/tag/independence/'>independence</a>, <a href='http://ikanb.wordpress.com/tag/internet/'>internet</a>, <a href='http://ikanb.wordpress.com/tag/policy/'>policy</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=134&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/07/11/cyberspace_independence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>
	</item>
		<item>
		<title>Kitten with a leg cast</title>
		<link>http://ikanb.wordpress.com/2010/06/23/kitten_in_cas/</link>
		<comments>http://ikanb.wordpress.com/2010/06/23/kitten_in_cas/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 00:51:40 +0000</pubDate>
		<dc:creator>sbmalev</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[antics]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[kitten]]></category>
		<category><![CDATA[procrastination]]></category>

		<guid isPermaLink="false">http://ikanb.wordpress.com/?p=125</guid>
		<description><![CDATA[I picked this off of reddit&#8230; Nothing helps me procrastinate like kittens and their antics. Tagged: antics, funny, kitten, procrastination<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=125&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://i.imgur.com/wye6A.jpg"><img src="http://ikanb.files.wordpress.com/2010/06/wye6a.jpg?w=460" title="Awwwwwww." alt="Cute photo of orange kitten with a little pink cast." /></a></p>
<p>I picked this off of <a title="A link to the reddit page where I originally found the photo." href="http://www.reddit.com/r/pics/comments/ciblo/get_well_soon/" target="_blank">reddit</a>&#8230; Nothing helps me procrastinate like kittens and their antics.</p>
<br /> Tagged: <a href='http://ikanb.wordpress.com/tag/antics/'>antics</a>, <a href='http://ikanb.wordpress.com/tag/funny/'>funny</a>, <a href='http://ikanb.wordpress.com/tag/kitten/'>kitten</a>, <a href='http://ikanb.wordpress.com/tag/procrastination/'>procrastination</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ikanb.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ikanb.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ikanb.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ikanb.wordpress.com&amp;blog=12970573&amp;post=125&amp;subd=ikanb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ikanb.wordpress.com/2010/06/23/kitten_in_cas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9eb8aa153ed8e94716761d76740ffd14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sbmalev</media:title>
		</media:content>

		<media:content url="http://ikanb.files.wordpress.com/2010/06/wye6a.jpg" medium="image">
			<media:title type="html">Awwwwwww.</media:title>
		</media:content>
	</item>
	</channel>
</rss>
