<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: The hash package: hashes come to R</title>
	<atom:link href="http://opendatagroup.com/2009/07/26/hash-package-for-r/feed/" rel="self" type="application/rss+xml" />
	<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/</link>
	<description>Open Data Group&#039;s Home Page and Blog</description>
	<lastBuildDate>Thu, 12 Aug 2010 19:48:26 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: esther</title>
		<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/comment-page-1/#comment-631</link>
		<dc:creator>esther</dc:creator>
		<pubDate>Thu, 12 Aug 2010 19:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.opendatagroup.com/?p=91#comment-631</guid>
		<description>Brilliant package! Took me a few hours to get my head round - but here&#039;s the line of code I&#039;ve come up with - I needed to add a &#039;gender&#039; - column to my data. It works and it&#039;s VERY fast!

relevant_records[&quot;gender&quot;] &lt;- ifelse( has.key(as.character(relevant_records$participant_id),female_hash), &quot;female&quot;, &quot;male&quot; )

Thanks!

Esther :-)</description>
		<content:encoded><![CDATA[<p>Brilliant package! Took me a few hours to get my head round &#8211; but here&#8217;s the line of code I&#8217;ve come up with &#8211; I needed to add a &#8216;gender&#8217; &#8211; column to my data. It works and it&#8217;s VERY fast!</p>
<p>relevant_records["gender"] &lt;- ifelse( has.key(as.character(relevant_records$participant_id),female_hash), &quot;female&quot;, &quot;male&quot; )</p>
<p>Thanks!</p>
<p>Esther <img src='http://opendatagroup.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabor</title>
		<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/comment-page-1/#comment-614</link>
		<dc:creator>Gabor</dc:creator>
		<pubDate>Mon, 12 Jul 2010 22:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.opendatagroup.com/?p=91#comment-614</guid>
		<description>Explicitly forcing i to a string using toString() solves this problem.</description>
		<content:encoded><![CDATA[<p>Explicitly forcing i to a string using toString() solves this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabor</title>
		<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/comment-page-1/#comment-613</link>
		<dc:creator>Gabor</dc:creator>
		<pubDate>Sun, 11 Jul 2010 01:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.opendatagroup.com/?p=91#comment-613</guid>
		<description>I had an R function that worked until I updated R and some packages to latest versions.  Now I am getting the following problem when I assign to some hashes.

Error in assign(i, value, x@.xData) : invalid first argument

The following code will produce this.

RIs &lt;- hash(1,1:100)
RI &lt;- rnorm(100,mean=.5,sd=.05)
i=1
RIs[[i]] &lt;- RI

Please help.</description>
		<content:encoded><![CDATA[<p>I had an R function that worked until I updated R and some packages to latest versions.  Now I am getting the following problem when I assign to some hashes.</p>
<p>Error in assign(i, value, x@.xData) : invalid first argument</p>
<p>The following code will produce this.</p>
<p>RIs &lt;- hash(1,1:100)<br />
RI &lt;- rnorm(100,mean=.5,sd=.05)<br />
i=1<br />
RIs[[i]] &lt;- RI</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christopher</title>
		<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/comment-page-1/#comment-562</link>
		<dc:creator>christopher</dc:creator>
		<pubDate>Sun, 25 Apr 2010 11:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.opendatagroup.com/?p=91#comment-562</guid>
		<description>Ivo,

Yes.  There was a problem with an earlier implementation of the package in which performance was poor on large hashes.  This has been fixed.  

The &#039;has.key&#039; method is an S4 method for testing whether the key is assigned to the hash.</description>
		<content:encoded><![CDATA[<p>Ivo,</p>
<p>Yes.  There was a problem with an earlier implementation of the package in which performance was poor on large hashes.  This has been fixed.  </p>
<p>The &#8216;has.key&#8217; method is an S4 method for testing whether the key is assigned to the hash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christopher</title>
		<link>http://opendatagroup.com/2009/07/26/hash-package-for-r/comment-page-1/#comment-561</link>
		<dc:creator>christopher</dc:creator>
		<pubDate>Sun, 25 Apr 2010 10:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.opendatagroup.com/?p=91#comment-561</guid>
		<description>Carlo,

There preferred way to do many value look-ups is use the &#039;values&#039; function that takes an optional &#039;keys&#039; argument.  

Chris</description>
		<content:encoded><![CDATA[<p>Carlo,</p>
<p>There preferred way to do many value look-ups is use the &#8216;values&#8217; function that takes an optional &#8216;keys&#8217; argument.  </p>
<p>Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>
