<?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 for Cornelius Puschmann&#039;s Blog</title>
	<atom:link href="http://blog.ynada.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ynada.com</link>
	<description>My new blog on Linguistics, Digital Humanities and Scholarly Communication on the Internet</description>
	<lastBuildDate>Fri, 18 Jun 2010 22:48:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Post-event Twitter stats for #THATcamp by #OR10 is here to come &#171; LIBREAS.Library Ideas</title>
		<link>http://blog.ynada.com/265/comment-page-1#comment-426</link>
		<dc:creator>#OR10 is here to come &#171; LIBREAS.Library Ideas</dc:creator>
		<pubDate>Fri, 18 Jun 2010 22:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=265#comment-426</guid>
		<description>[...] of the conference, many have already begun to share information. In this regard, increased attention is put on Twitter. Based on the TwapperKeeper Stat, created by Adrian Stevenson, a co-occurrence [...]</description>
		<content:encoded><![CDATA[<p>[...] of the conference, many have already begun to share information. In this regard, increased attention is put on Twitter. Based on the TwapperKeeper Stat, created by Adrian Stevenson, a co-occurrence [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by Minha rede no Twitter &#171; Blog Pra falar de coisas</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-345</link>
		<dc:creator>Minha rede no Twitter &#171; Blog Pra falar de coisas</dc:creator>
		<pubDate>Wed, 02 Jun 2010 03:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-345</guid>
		<description>[...] Aliás, é muiito fácil fazer esse gráfico no R. Quem quiser replicar o gráfico, basta seguir as dicas desse blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] Aliás, é muiito fácil fazer esse gráfico no R. Quem quiser replicar o gráfico, basta seguir as dicas desse blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by Gabor</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-315</link>
		<dc:creator>Gabor</dc:creator>
		<pubDate>Fri, 28 May 2010 17:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-315</guid>
		<description>I think that V() is explained reasonably well:
http://igraph.sourceforge.net/doc/R/iterators.html
http://igraph.sourceforge.net/igraphbook/igraphbook-iterators.html

If you come from math, then V is quite an obvious name for all vertices of a graph, just like E is an obvious name for the edges. V() and E() are coming from the G=(V,E) graph notation.</description>
		<content:encoded><![CDATA[<p>I think that V() is explained reasonably well:<br />
<a href="http://igraph.sourceforge.net/doc/R/iterators.html" rel="nofollow">http://igraph.sourceforge.net/doc/R/iterators.html</a><br />
<a href="http://igraph.sourceforge.net/igraphbook/igraphbook-iterators.html" rel="nofollow">http://igraph.sourceforge.net/igraphbook/igraphbook-iterators.html</a></p>
<p>If you come from math, then V is quite an obvious name for all vertices of a graph, just like E is an obvious name for the edges. V() and E() are coming from the G=(V,E) graph notation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by A.S.</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-309</link>
		<dc:creator>A.S.</dc:creator>
		<pubDate>Thu, 27 May 2010 13:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-309</guid>
		<description>I think your code is ok, although you can skip a few steps here and there. For example, there is no reason to create the variables relations.1 and relations.2 if all you want to do is merge them. Instead of this:

relations.1 &lt;- data.frame(User=&#039;Cornelius&#039;, Follower=friends)
relations.2 &lt;- data.frame(User=followers, Follower=&#039;Cornelius&#039;)
relations &lt;- merge(relations.1, relations.2, all=T)

you could do this:

relations &lt;- merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T)

In fact, since you are only going to use the variable &quot;relations&quot; once, you might as well not bother creating it at all and skip straight to the next step, which should then look like this:

g &lt;- graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T), directed = T)

And since you only use the variable &quot;g&quot; once, why not skip this step as well and do this:

plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T), directed = T))

Of course, we already know that you don&#039;t need to create the variables &quot;friends&quot; and &quot;followers&quot;, since sapply() will do.

So this would also work:

plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=sapply(friends.object,name)), data.frame(User=sapply(followers.object,name), Follower=&#039;Cornelius&#039;), all=T), directed = T))

And of course, there is no real reason to create the variables &quot;friends.object&quot; and &quot;followers.object&quot;, since you can use sapply() directly with the user object, so this would also work:

plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=sapply(userFriends(&#039;coffee001&#039;, n=500, sess),name)), data.frame(User=sapply(useFollowers(&#039;coffee001&#039;, n=500, sess),name), Follower=&#039;Cornelius&#039;), all=T), directed = T))

This is almost your entire script in a more compact form (the only parts of your script that are still missing are the initiation of the session, which should remain separate, and the bit about V(g)$label &lt;- V(g)$name -- I&#039;m not familiar with V(), but I&#039;m sure you could also integrate it). Now you could wrap the whole thing into a function, and you&#039;re done.

NOW do you see why R is beautiful?</description>
		<content:encoded><![CDATA[<p>I think your code is ok, although you can skip a few steps here and there. For example, there is no reason to create the variables relations.1 and relations.2 if all you want to do is merge them. Instead of this:</p>
<p>relations.1 &lt;- data.frame(User=&#039;Cornelius&#039;, Follower=friends)<br />
relations.2 &lt;- data.frame(User=followers, Follower=&#039;Cornelius&#039;)<br />
relations &lt;- merge(relations.1, relations.2, all=T)</p>
<p>you could do this:</p>
<p>relations &lt;- merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T)</p>
<p>In fact, since you are only going to use the variable &quot;relations&quot; once, you might as well not bother creating it at all and skip straight to the next step, which should then look like this:</p>
<p>g &lt;- graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T), directed = T)</p>
<p>And since you only use the variable &quot;g&quot; once, why not skip this step as well and do this:</p>
<p>plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=friends), data.frame(User=followers, Follower=&#039;Cornelius&#039;), all=T), directed = T))</p>
<p>Of course, we already know that you don&#039;t need to create the variables &quot;friends&quot; and &quot;followers&quot;, since sapply() will do.</p>
<p>So this would also work:</p>
<p>plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=sapply(friends.object,name)), data.frame(User=sapply(followers.object,name), Follower=&#039;Cornelius&#039;), all=T), directed = T))</p>
<p>And of course, there is no real reason to create the variables &quot;friends.object&quot; and &quot;followers.object&quot;, since you can use sapply() directly with the user object, so this would also work:</p>
<p>plot(graph.data.frame(merge(data.frame(User=&#039;Cornelius&#039;, Follower=sapply(userFriends(&#039;coffee001&#039;, n=500, sess),name)), data.frame(User=sapply(useFollowers(&#039;coffee001&#039;, n=500, sess),name), Follower=&#039;Cornelius&#039;), all=T), directed = T))</p>
<p>This is almost your entire script in a more compact form (the only parts of your script that are still missing are the initiation of the session, which should remain separate, and the bit about V(g)$label &lt;- V(g)$name &#8212; I&#039;m not familiar with V(), but I&#039;m sure you could also integrate it). Now you could wrap the whole thing into a function, and you&#039;re done.</p>
<p>NOW do you see why R is beautiful?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by cornelius</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-308</link>
		<dc:creator>cornelius</dc:creator>
		<pubDate>Thu, 27 May 2010 12:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-308</guid>
		<description>Thanks, Anatol! I haven&#039;t worked a whole lot with objects yet, since most of what I&#039;ve done so far worked fine without them. I don&#039;t find R terribly well-documented, at least not in the sense of providing a lot of examples (but perhaps I am looking in the wrong places)...

@Dan: do you mean my code or R in general? My impression of R: easy syntax, fairly terrible vocabulary (what kind of function is &#039;V()&#039;?) Very powerful and great once you know it, but learning is complicated by a relative lack of newbie-friendly resources.</description>
		<content:encoded><![CDATA[<p>Thanks, Anatol! I haven&#8217;t worked a whole lot with objects yet, since most of what I&#8217;ve done so far worked fine without them. I don&#8217;t find R terribly well-documented, at least not in the sense of providing a lot of examples (but perhaps I am looking in the wrong places)&#8230;</p>
<p>@Dan: do you mean my code or R in general? My impression of R: easy syntax, fairly terrible vocabulary (what kind of function is &#8216;V()&#8217;?) Very powerful and great once you know it, but learning is complicated by a relative lack of newbie-friendly resources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by A.S.</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-306</link>
		<dc:creator>A.S.</dc:creator>
		<pubDate>Thu, 27 May 2010 09:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-306</guid>
		<description>“...I don&#039;t know how to slice just the &quot;name&quot; field for friends and followers from the list of user objects that twitteR retrieves...”

Piece of cake:

sapply(friends.object,name)

This shoul return a vector with just the names.</description>
		<content:encoded><![CDATA[<p>“&#8230;I don&#8217;t know how to slice just the &#8220;name&#8221; field for friends and followers from the list of user objects that twitteR retrieves&#8230;”</p>
<p>Piece of cake:</p>
<p>sapply(friends.object,name)</p>
<p>This shoul return a vector with just the names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code and brief instruction for graphing Twitter with R by Dan</title>
		<link>http://blog.ynada.com/247/comment-page-1#comment-303</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 27 May 2010 01:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=247#comment-303</guid>
		<description>Ah! That&#039;s one damn ugly syntax!</description>
		<content:encoded><![CDATA[<p>Ah! That&#8217;s one damn ugly syntax!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Scientwists Project by Eine kurze Auswertung der BibCamp³-Aktivität auf Twitter (#bib3) &#171; WissPub.net</title>
		<link>http://blog.ynada.com/179/comment-page-1#comment-281</link>
		<dc:creator>Eine kurze Auswertung der BibCamp³-Aktivität auf Twitter (#bib3) &#171; WissPub.net</dc:creator>
		<pubDate>Tue, 11 May 2010 21:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=179#comment-281</guid>
		<description>[...] eine Untersuchung der Nutzung von Social Web-Tools (mit besonderem Fokus auf Blogs und Mikroblogs) durch Wissenschaftler. Das Projekt befindet sich noch in einer frühen Phase &#8212; vor allem sammle ich Daten und [...]</description>
		<content:encoded><![CDATA[<p>[...] eine Untersuchung der Nutzung von Social Web-Tools (mit besonderem Fokus auf Blogs und Mikroblogs) durch Wissenschaftler. Das Projekt befindet sich noch in einer frühen Phase &#8212; vor allem sammle ich Daten und [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Scientwists Project by Things that 500+ scientists (possibly including you) have been tweeting recently</title>
		<link>http://blog.ynada.com/179/comment-page-1#comment-181</link>
		<dc:creator>Things that 500+ scientists (possibly including you) have been tweeting recently</dc:creator>
		<pubDate>Sat, 16 Jan 2010 01:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=179#comment-181</guid>
		<description>[...] starting the Scientwists Project a bit over a week ago, I&#8217;ve been busy hacking up Bash and R scripts in order to analyze the [...]</description>
		<content:encoded><![CDATA[<p>[...] starting the Scientwists Project a bit over a week ago, I&#8217;ve been busy hacking up Bash and R scripts in order to analyze the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Open Access means Open Research: lessons from the German Open Access petition by Micheal Dupoux</title>
		<link>http://blog.ynada.com/171/comment-page-1#comment-177</link>
		<dc:creator>Micheal Dupoux</dc:creator>
		<pubDate>Sun, 20 Dec 2009 08:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ynada.com/?p=171#comment-177</guid>
		<description>I tried two times over the last few days to access your site.  Are you having problems with your hosting account?  Is it my Internet connection?</description>
		<content:encoded><![CDATA[<p>I tried two times over the last few days to access your site.  Are you having problems with your hosting account?  Is it my Internet connection?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
