<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13819</id>
	<title>Nabble - R</title>
	<updated>2009-11-24T20:38:34Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/R-f13819.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/R-f13819.html" />
	<subtitle type="html">R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&amp;T, now Lucent Technologies) by John Chambers and colleagues. R-Project home is &lt;a href=&quot;http://www.r-project.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26507465</id>
	<title>how use the results of rollapply in the previous row to the next row...</title>
	<published>2009-11-24T20:38:34Z</published>
	<updated>2009-11-24T20:38:34Z</updated>
	<author>
		<name>Jiri Hoogland</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;say I have a xts object x with data I want to apply a function f over row by
&lt;br&gt;row (by.column=F)
&lt;br&gt;&lt;br&gt;x =
&lt;br&gt;index c1 c2 &amp;nbsp;c3
&lt;br&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp;0
&lt;br&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;0
&lt;br&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; 3 &amp;nbsp; &amp;nbsp;0
&lt;br&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; 4 &amp;nbsp; &amp;nbsp;0
&lt;br&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; 5 &amp;nbsp; &amp;nbsp;0
&lt;br&gt;&lt;br&gt;what i would like to do and i am not sure that that is possible is the
&lt;br&gt;following
&lt;br&gt;&lt;br&gt;the result of operating on one row is put in the last column of x of that
&lt;br&gt;same row
&lt;br&gt;and is used in the operation on the next row, where f is some non-trivial
&lt;br&gt;function of the columns
&lt;br&gt;&lt;br&gt;So for example the simple function summing over the row
&lt;br&gt;and normalizing by the previous value of the last columns value in the
&lt;br&gt;previous row
&lt;br&gt;(first row does not normalize here)
&lt;br&gt;&lt;br&gt;x =
&lt;br&gt;index c1 c2 &amp;nbsp; c3
&lt;br&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1+1
&lt;br&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2/2+2/2 = 2
&lt;br&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; 3 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3/2+3/2 = 3
&lt;br&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; 4 &amp;nbsp; &amp;nbsp;8/3 &amp;nbsp; = 4/3+4/3
&lt;br&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; 5 &amp;nbsp; &amp;nbsp;15/4 = 5/8*3+5/8*3
&lt;br&gt;&lt;br&gt;Is there some way to sneak this into rollapply?
&lt;br&gt;Maybe I am asking too much, but if somebody
&lt;br&gt;can enlighten it would be greatly appreciated
&lt;br&gt;Thanks!
&lt;br&gt;Jiri
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507465&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-SIG-Finance@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-sig-finance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-sig-finance&lt;/a&gt;&lt;br&gt;-- Subscriber-posting only.
&lt;br&gt;-- If you want to post, subscribe first.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Rmetrics-f14139.html&quot; embed=&quot;fixTarget[14139]&quot; target=&quot;_top&quot; &gt;Rmetrics&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-use-the-results-of-rollapply-in-the-previous-row-to-the-next-row...-tp26507465p26507465.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507290</id>
	<title>Re: random effects correlation in lmer</title>
	<published>2009-11-24T20:08:33Z</published>
	<updated>2009-11-24T20:08:33Z</updated>
	<author>
		<name>Daniel Malter</name>
	</author>
	<content type="html">sorry, that escaped my attention. it was meant to be
&lt;br&gt;&amp;nbsp;
&lt;br&gt;y2=10+rand.int+tim+rand.int*tim+e
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Daniel
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-------------------------
&lt;br&gt;cuncta stricte discussurus
&lt;br&gt;-------------------------
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; _____ &amp;nbsp;
&lt;br&gt;&lt;br&gt;Von: Dennis Murphy [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;djmuser@...&lt;/a&gt;] 
&lt;br&gt;Gesendet: Tuesday, November 24, 2009 5:00 PM
&lt;br&gt;An: Daniel Malter
&lt;br&gt;Betreff: Re: [R] random effects correlation in lmer
&lt;br&gt;&lt;br&gt;&lt;br&gt;HI Daniel:
&lt;br&gt;&lt;br&gt;I liked your explanation, but in the code snippet you provided, y1 and y2
&lt;br&gt;are the
&lt;br&gt;same. Did you mean to put
&lt;br&gt;&lt;br&gt;y2 &amp;lt;- 10 + rand.slop + time + e &amp;nbsp; or &amp;nbsp; y2 &amp;lt;- 10 + rand.int * rand.slop + tim
&lt;br&gt;+ e?
&lt;br&gt;&lt;br&gt;Dennis
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 12:17 PM, Daniel Malter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;daniel@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;It implies that the random intercept is perfectly collinear with the random
&lt;br&gt;slope, as you suggested. I attach an example.
&lt;br&gt;&lt;br&gt;The data generating process of y1 has a random intercept, but no random
&lt;br&gt;slope. When you fit a model with random intercept and random slope, the
&lt;br&gt;correlation between the two is estimated at -1. However, note that the
&lt;br&gt;variance of the random slope is almost zero. Thus, we fit the wrong model. A
&lt;br&gt;random intercept only model would have sufficed.
&lt;br&gt;&lt;br&gt;The data generating process of y2 includes a random slope, but those with
&lt;br&gt;the higher intercepts also have the greater slopes. Random intercept and
&lt;br&gt;random slope estimates are perfectly collinear. This leads to the problem
&lt;br&gt;you encounter. Models 2a and 2b provide random intercept only and random
&lt;br&gt;slope only estimates for comparison. It would suffice in this case to fit a
&lt;br&gt;random intercept model.
&lt;br&gt;&lt;br&gt;Finally, the data generating process for y3 has random intercept and slope,
&lt;br&gt;but both are independent, so that the problem does not occur.
&lt;br&gt;&lt;br&gt;library(lme4)
&lt;br&gt;&lt;br&gt;tim=rep(10:19,10)
&lt;br&gt;id=rep(1:10,each=10)
&lt;br&gt;rand.int=rep(rnorm(10,0,1),each=10)
&lt;br&gt;rand.slop=rep(rnorm(10,0,1),each=10)
&lt;br&gt;e=rnorm(100,0,0.5)
&lt;br&gt;&lt;br&gt;y1=10+rand.int+tim+e
&lt;br&gt;y2=10+rand.int+tim+e
&lt;br&gt;y3=10+rand.int+tim+rand.slop*tim+e
&lt;br&gt;&lt;br&gt;reg1=lmer(y1~tim+(tim|id))
&lt;br&gt;summary(reg1)
&lt;br&gt;&lt;br&gt;reg2=lmer(y2~tim+(tim|id))
&lt;br&gt;summary(reg2)
&lt;br&gt;&lt;br&gt;reg2a=lmer(y2~tim+(1|id))
&lt;br&gt;summary(reg2a)
&lt;br&gt;&lt;br&gt;reg2b=lmer(y2~tim+(-1+tim|id))
&lt;br&gt;summary(reg2b)
&lt;br&gt;&lt;br&gt;reg3=lmer(y3~tim+(tim|id))
&lt;br&gt;summary(reg3)
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kurt Smith-3 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am having an issue with lmer that I wonder if someone could explain.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am trying to fit a mixed effects model to a set of longitudinal data
&lt;br&gt;&amp;gt; over a set of individual subjects:
&lt;br&gt;&amp;gt; (fm1 &amp;lt;- lmer(x ~ time + (time|ID),aa))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I quite often find that the correlation between the random effects is 1.0:
&lt;br&gt;&amp;gt; Linear mixed model fit by REML
&lt;br&gt;&amp;gt; Formula: x ~ time + (time | ID)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Data: aa
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;AIC &amp;nbsp; BIC logLik deviance REMLdev
&lt;br&gt;&amp;gt; &amp;nbsp;28574 28611 -14281 &amp;nbsp; &amp;nbsp;28561 &amp;nbsp; 28562
&lt;br&gt;&amp;gt; Random effects:
&lt;br&gt;&amp;gt; &amp;nbsp;Groups &amp;nbsp; Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Variance Std.Dev. Corr
&lt;br&gt;&amp;gt; &amp;nbsp;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; (Intercept) &amp;nbsp;77.035 &amp;nbsp; 8.7770
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.817 &amp;nbsp; 3.2889 &amp;nbsp;1.000
&lt;br&gt;&amp;gt; &amp;nbsp;Residual &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 112.151 &amp;nbsp;10.5901
&lt;br&gt;&amp;gt; Number of obs: 3539, groups: ID, 1000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Fixed effects:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Estimate Std. Error t value
&lt;br&gt;&amp;gt; (Intercept) &amp;nbsp;98.7601 &amp;nbsp; &amp;nbsp; 0.3894 &amp;nbsp;253.64
&lt;br&gt;&amp;gt; time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.3671 &amp;nbsp; &amp;nbsp; 0.2001 &amp;nbsp; &amp;nbsp;6.83
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Correlation of Fixed Effects:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Intr)
&lt;br&gt;&amp;gt; time -0.045
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All other parameters seem to converge as I increase the size of the
&lt;br&gt;&amp;gt; data set, or have a reasonable distribution over several bootstrap
&lt;br&gt;&amp;gt; samples. This suggests to me there is a singularity or something in
&lt;br&gt;&amp;gt; solving for the random effects correlation. Does anyone have any
&lt;br&gt;&amp;gt; insight?
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Kurt Smith
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507290&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/random-effects-correlation-in-lmer-tp26489187p26501151&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/random-effects-correlation-in-lmer-tp26489187p26501151&lt;/a&gt;&lt;br&gt;.html
&lt;br&gt;Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507290&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507290&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/random-effects-correlation-in-lmer-tp26489187p26507290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507134</id>
	<title>interior and exterior colors of a map</title>
	<published>2009-11-24T19:45:01Z</published>
	<updated>2009-11-24T19:45:01Z</updated>
	<author>
		<name>dxc13</name>
	</author>
	<content type="html">Hi useR's,
&lt;br&gt;I have an image plot I want to overlay a map of the United States on, via map('usa'). &amp;nbsp;The image is basically a large rectangular of various colors. &amp;nbsp;When I overlay the United States map, the full rectangle of the image plot is visible, but I only want to display the image WITHIN the United States boundary.
&lt;br&gt;Does anyone know a way to do this?
&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;dxc13&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/interior-and-exterior-colors-of-a-map-tp26507134p26507134.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507067</id>
	<title>which to trust...princomp() or prcomp() or neither?</title>
	<published>2009-11-24T19:32:24Z</published>
	<updated>2009-11-24T19:32:24Z</updated>
	<author>
		<name>gnuman</name>
	</author>
	<content type="html">According to R help: 
&lt;br&gt;princomp() uses eigenvalues of covariance data.
&lt;br&gt;prcomp() uses the SVD method.
&lt;br&gt;&lt;br&gt;yet when I run the (eg., USArrests) data example and compare with my own 
&lt;br&gt;&amp;quot;hand-written&amp;quot; versions of PCA I get what looks like the opposite.
&lt;br&gt;Example:
&lt;br&gt;comparing the variances I see:
&lt;br&gt;&lt;br&gt;Using prcomp(USArrests)
&lt;br&gt;-------------------------------------
&lt;br&gt;Standard deviations:
&lt;br&gt;[1] 83.732400 14.212402 &amp;nbsp;6.489426 &amp;nbsp;2.482790
&lt;br&gt;&lt;br&gt;Using princomp(USArrests)
&lt;br&gt;--------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp;Comp.1 &amp;nbsp; &amp;nbsp;Comp.2 &amp;nbsp; &amp;nbsp;Comp.3 &amp;nbsp; &amp;nbsp;Comp.4
&lt;br&gt;82.890847 14.069560 &amp;nbsp;6.424204 &amp;nbsp;2.457837
&lt;br&gt;&lt;br&gt;Using my custom pca_svd() --- (my PCA method using native R svd() function):
&lt;br&gt;-----------------------------------------------
&lt;br&gt;$stdev
&lt;br&gt;[1] 82.890847 14.069560 &amp;nbsp;6.424204 &amp;nbsp;2.457837
&lt;br&gt;&lt;br&gt;Using my custom pca_cov() --- &amp;nbsp;(my PCA method using native R cov() and eigen() functions):
&lt;br&gt;-----------------------------------------------
&lt;br&gt;$sdev
&lt;br&gt;[1] 83.732400 14.212402 &amp;nbsp;6.489426 &amp;nbsp;2.482790
&lt;br&gt;&lt;br&gt;You see the problem: my SVD method yields results numerically similar to 
&lt;br&gt;the princomp() method which supposedly uses the eigenvector calculation.
&lt;br&gt;Whereas my eigenvector calculation method yields results numerically 
&lt;br&gt;similar to the prcomp() method which supposedly is a SVD calculation!
&lt;br&gt;&lt;br&gt;Also, it surprised me that the two methods would differ so markedly (only 2 significant 
&lt;br&gt;figure agreement at best). &amp;nbsp;Ultimately the question is which method to trust as most 
&lt;br&gt;accurate? &amp;nbsp;
&lt;br&gt;&lt;br&gt;When I get time I'll just put in some data with KNOWN PC stdevs to see, but I'm 
&lt;br&gt;still curious to see if any of you reading this help list could explain in advance?
&lt;br&gt;&lt;br&gt;If any R gurus or the writers of either of the aforementioned routines can
&lt;br&gt;enlighten me I'd be most grateful.
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;Dr Blair M. Smith
&lt;br&gt;Industrial Research Limited
&lt;br&gt;NZ
&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507067&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/which-to-trust...princomp%28%29-or-prcomp%28%29-or-neither--tp26507067p26507067.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506920</id>
	<title>Re: reshape question</title>
	<published>2009-11-24T19:06:31Z</published>
	<updated>2009-11-24T19:06:31Z</updated>
	<author>
		<name>butter</name>
	</author>
	<content type="html">What about the melt function in reshape package?
&lt;br&gt;&lt;br&gt;EX:
&lt;br&gt;&lt;br&gt;&amp;gt; x=sample(1:100,20,replace=T)
&lt;br&gt;&lt;br&gt;&amp;gt; x
&lt;br&gt;&amp;nbsp;[1] 48 94 32 96 81 99 10 64 64 94 57 60 16 64 32 76 63 &amp;nbsp;1 64 &amp;nbsp;8
&lt;br&gt;&lt;br&gt;&amp;gt; y=sample(1:100,20,replace=T)
&lt;br&gt;&lt;br&gt;&amp;gt; y
&lt;br&gt;&amp;nbsp;[1] 73 78 82 43 58 85 74 64 73 41 45 38 63 36 44 74 &amp;nbsp;7 88 91 &amp;nbsp;1
&lt;br&gt;&lt;br&gt;&amp;gt; xy=cbind(x,y)
&lt;br&gt;&lt;br&gt;&amp;gt; melt(xy)
&lt;br&gt;&amp;nbsp; &amp;nbsp;X1 X2 value
&lt;br&gt;1 &amp;nbsp; 1 &amp;nbsp;x &amp;nbsp; &amp;nbsp;48
&lt;br&gt;2 &amp;nbsp; 2 &amp;nbsp;x &amp;nbsp; &amp;nbsp;94
&lt;br&gt;3 &amp;nbsp; 3 &amp;nbsp;x &amp;nbsp; &amp;nbsp;32
&lt;br&gt;4 &amp;nbsp; 4 &amp;nbsp;x &amp;nbsp; &amp;nbsp;96
&lt;br&gt;5 &amp;nbsp; 5 &amp;nbsp;x &amp;nbsp; &amp;nbsp;81
&lt;br&gt;6 &amp;nbsp; 6 &amp;nbsp;x &amp;nbsp; &amp;nbsp;99
&lt;br&gt;7 &amp;nbsp; 7 &amp;nbsp;x &amp;nbsp; &amp;nbsp;10
&lt;br&gt;8 &amp;nbsp; 8 &amp;nbsp;x &amp;nbsp; &amp;nbsp;64
&lt;br&gt;9 &amp;nbsp; 9 &amp;nbsp;x &amp;nbsp; &amp;nbsp;64
&lt;br&gt;10 10 &amp;nbsp;x &amp;nbsp; &amp;nbsp;94
&lt;br&gt;11 11 &amp;nbsp;x &amp;nbsp; &amp;nbsp;57
&lt;br&gt;12 12 &amp;nbsp;x &amp;nbsp; &amp;nbsp;60
&lt;br&gt;13 13 &amp;nbsp;x &amp;nbsp; &amp;nbsp;16
&lt;br&gt;14 14 &amp;nbsp;x &amp;nbsp; &amp;nbsp;64
&lt;br&gt;15 15 &amp;nbsp;x &amp;nbsp; &amp;nbsp;32
&lt;br&gt;16 16 &amp;nbsp;x &amp;nbsp; &amp;nbsp;76
&lt;br&gt;17 17 &amp;nbsp;x &amp;nbsp; &amp;nbsp;63
&lt;br&gt;18 18 &amp;nbsp;x &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;19 19 &amp;nbsp;x &amp;nbsp; &amp;nbsp;64
&lt;br&gt;20 20 &amp;nbsp;x &amp;nbsp; &amp;nbsp; 8
&lt;br&gt;21 &amp;nbsp;1 &amp;nbsp;y &amp;nbsp; &amp;nbsp;73
&lt;br&gt;22 &amp;nbsp;2 &amp;nbsp;y &amp;nbsp; &amp;nbsp;78
&lt;br&gt;23 &amp;nbsp;3 &amp;nbsp;y &amp;nbsp; &amp;nbsp;82
&lt;br&gt;24 &amp;nbsp;4 &amp;nbsp;y &amp;nbsp; &amp;nbsp;43
&lt;br&gt;25 &amp;nbsp;5 &amp;nbsp;y &amp;nbsp; &amp;nbsp;58
&lt;br&gt;26 &amp;nbsp;6 &amp;nbsp;y &amp;nbsp; &amp;nbsp;85
&lt;br&gt;27 &amp;nbsp;7 &amp;nbsp;y &amp;nbsp; &amp;nbsp;74
&lt;br&gt;28 &amp;nbsp;8 &amp;nbsp;y &amp;nbsp; &amp;nbsp;64
&lt;br&gt;29 &amp;nbsp;9 &amp;nbsp;y &amp;nbsp; &amp;nbsp;73
&lt;br&gt;30 10 &amp;nbsp;y &amp;nbsp; &amp;nbsp;41
&lt;br&gt;31 11 &amp;nbsp;y &amp;nbsp; &amp;nbsp;45
&lt;br&gt;32 12 &amp;nbsp;y &amp;nbsp; &amp;nbsp;38
&lt;br&gt;33 13 &amp;nbsp;y &amp;nbsp; &amp;nbsp;63
&lt;br&gt;34 14 &amp;nbsp;y &amp;nbsp; &amp;nbsp;36
&lt;br&gt;35 15 &amp;nbsp;y &amp;nbsp; &amp;nbsp;44
&lt;br&gt;36 16 &amp;nbsp;y &amp;nbsp; &amp;nbsp;74
&lt;br&gt;37 17 &amp;nbsp;y &amp;nbsp; &amp;nbsp; 7
&lt;br&gt;38 18 &amp;nbsp;y &amp;nbsp; &amp;nbsp;88
&lt;br&gt;39 19 &amp;nbsp;y &amp;nbsp; &amp;nbsp;91
&lt;br&gt;40 20 &amp;nbsp;y &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;Joe King
&lt;br&gt;206-913-2912
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jp@...&lt;/a&gt;
&lt;br&gt;&amp;quot;Never throughout history has a man who lived a life of ease left a name
&lt;br&gt;worth remembering.&amp;quot; --Theodore Roosevelt
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt;] On
&lt;br&gt;Behalf Of David Winsemius
&lt;br&gt;Sent: Tuesday, November 24, 2009 6:43 PM
&lt;br&gt;To: AC Del Re
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [R] reshape question
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 24, 2009, at 8:33 PM, AC Del Re wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am wanting to convert a data.frame from a wide format to a long &amp;nbsp;
&lt;br&gt;&amp;gt; format
&lt;br&gt;&amp;gt; (with &amp;gt;1 variable) and am having difficulties. Any help is &amp;nbsp;
&lt;br&gt;&amp;gt; appreciated!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #current wide format
&lt;br&gt;&amp;gt;&amp;gt; head(data.out2)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; id &amp;nbsp; rater.1 n.1 &amp;nbsp; rater.2 n.2 &amp;nbsp; rater.3 n.3 &amp;nbsp; rater.4 n.4
&lt;br&gt;&amp;gt; 11 &amp;nbsp; 11 0.1183333 &amp;nbsp;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 114 114 0.2478709 113 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 12 &amp;nbsp; 12 0.3130655 &amp;nbsp;54 0.3668242 &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 121 121 0.2400000 331 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 122 122 0.3004164 &amp;nbsp;25 0.1046278 &amp;nbsp;25 0.2424871 &amp;nbsp;25 0.2796937 &amp;nbsp;25
&lt;br&gt;&amp;gt; 125 125 0.1634865 190 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #This is close but I would like the 'n' column to remain and for the &amp;nbsp;
&lt;br&gt;&amp;gt; '.1' to
&lt;br&gt;&amp;gt; drop off
&lt;/div&gt;&lt;br&gt;I don't really understand what you want and the example solution &amp;nbsp;
&lt;br&gt;throws away quite a lot of data, so consider this alternative:
&lt;br&gt;&lt;br&gt;data.out2 &amp;lt;- read.table(textConnection(&amp;quot;id &amp;nbsp; rater.1 n.1 &amp;nbsp; rater.2 n. 
&lt;br&gt;2 &amp;nbsp; rater.3 n.3 &amp;nbsp; rater.4 n.4
&lt;br&gt;11 &amp;nbsp; 11 0.1183333 &amp;nbsp;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;114 114 0.2478709 113 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;12 &amp;nbsp; 12 0.3130655 &amp;nbsp;54 0.3668242 &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;121 121 0.2400000 331 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;122 122 0.3004164 &amp;nbsp;25 0.1046278 &amp;nbsp;25 0.2424871 &amp;nbsp;25 0.2796937 &amp;nbsp;25
&lt;br&gt;125 125 0.1634865 190 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA&amp;quot;), &amp;nbsp;
&lt;br&gt;header=T, stringsAsFactors=F)
&lt;br&gt;&lt;br&gt;&lt;br&gt;data.frame(id= data.out2$id, rater=stack(data.out2[,grep(&amp;quot;rater&amp;quot;, &amp;nbsp;
&lt;br&gt;names(data.out2))]),
&lt;br&gt;&amp;nbsp; &amp;nbsp;n= stack(data.out2[,grep(&amp;quot;n&amp;quot;, names(data.out2))]) )
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; data.out2.id rater.values rater.ind n.values n.ind
&lt;br&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp;0.1183333 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 79 &amp;nbsp; n.1
&lt;br&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 114 &amp;nbsp; &amp;nbsp;0.2478709 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;113 &amp;nbsp; n.1
&lt;br&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;0.3130655 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 54 &amp;nbsp; n.1
&lt;br&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 121 &amp;nbsp; &amp;nbsp;0.2400000 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;331 &amp;nbsp; n.1
&lt;br&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 122 &amp;nbsp; &amp;nbsp;0.3004164 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.1
&lt;br&gt;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 125 &amp;nbsp; &amp;nbsp;0.1634865 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;190 &amp;nbsp; n.1
&lt;br&gt;7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;0.3668242 &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 54 &amp;nbsp; n.2
&lt;br&gt;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.1046278 &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.2
&lt;br&gt;12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;15 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.2424871 &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.3
&lt;br&gt;18 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;19 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.2796937 &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.4
&lt;br&gt;24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;&lt;br&gt;You can take what you like from what I would consider a version that &amp;nbsp;
&lt;br&gt;has no loss of the original information.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; data.out3&amp;lt;-reshape(data.out2,varying=list(names(data.out2)[-1]),
&lt;br&gt;&amp;gt; + &amp;nbsp;idvar='id',direction='long')
&lt;br&gt;&amp;gt;&amp;gt; head(data.out3)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; id time &amp;nbsp; rater.1
&lt;br&gt;&amp;gt; 11.1 &amp;nbsp; 11 &amp;nbsp; &amp;nbsp;1 0.1183333
&lt;br&gt;&amp;gt; 114.1 114 &amp;nbsp; &amp;nbsp;1 0.2478709
&lt;br&gt;&amp;gt; 12.1 &amp;nbsp; 12 &amp;nbsp; &amp;nbsp;1 0.3130655
&lt;br&gt;&amp;gt; 121.1 121 &amp;nbsp; &amp;nbsp;1 0.2400000
&lt;br&gt;&amp;gt; 122.1 122 &amp;nbsp; &amp;nbsp;1 0.3004164
&lt;br&gt;&amp;gt; 125.1 125 &amp;nbsp; &amp;nbsp;1 0.1634865
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ideally I would like the columns to be set up in this manner:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; &amp;nbsp;time &amp;nbsp; &amp;nbsp;rater &amp;nbsp; &amp;nbsp; n
&lt;/div&gt;&lt;br&gt;What is &amp;quot;time&amp;quot;?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; html
&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506920&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/reshape-question-tp26506273p26506920.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506913</id>
	<title>Re: reshape question</title>
	<published>2009-11-24T19:05:19Z</published>
	<updated>2009-11-24T19:05:19Z</updated>
	<author>
		<name>hadley</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; I don't really understand what you want and the example solution throws away
&lt;br&gt;&amp;gt; quite a lot of data, so consider this alternative:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; data.out2 &amp;lt;- read.table(textConnection(&amp;quot;id   rater.1 n.1   rater.2 n.2
&lt;br&gt;&amp;gt; rater.3 n.3   rater.4 n.4
&lt;br&gt;&amp;gt; 11   11 0.1183333  79        NA  NA        NA  NA        NA  NA
&lt;br&gt;&amp;gt; 114 114 0.2478709 113        NA  NA        NA  NA        NA  NA
&lt;br&gt;&amp;gt; 12   12 0.3130655  54 0.3668242  54        NA  NA        NA  NA
&lt;br&gt;&amp;gt; 121 121 0.2400000 331        NA  NA        NA  NA        NA  NA
&lt;br&gt;&amp;gt; 122 122 0.3004164  25 0.1046278  25 0.2424871  25 0.2796937  25
&lt;br&gt;&amp;gt; 125 125 0.1634865 190        NA  NA        NA  NA        NA  NA&amp;quot;), header=T,
&lt;br&gt;&amp;gt; stringsAsFactors=F)
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Or
&lt;br&gt;&lt;br&gt;library(reshape)
&lt;br&gt;df &amp;lt;- melt(data.out2, na.rm = T, id = &amp;quot;id&amp;quot;)
&lt;br&gt;df &amp;lt;- cbind(df, colsplit(df$variable, &amp;quot;\\.&amp;quot;, c(&amp;quot;var&amp;quot;, &amp;quot;time&amp;quot;)))
&lt;br&gt;&lt;br&gt;cast(df, id + time ~ var)
&lt;br&gt;&lt;br&gt;See &lt;a href=&quot;http://had.co.nz/reshape&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://had.co.nz/reshape&lt;/a&gt;&amp;nbsp;for more details.
&lt;br&gt;&lt;br&gt;Hadley
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://had.co.nz/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://had.co.nz/&lt;/a&gt;&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506913&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/reshape-question-tp26506273p26506913.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506752</id>
	<title>Re: reshape question</title>
	<published>2009-11-24T18:42:37Z</published>
	<updated>2009-11-24T18:42:37Z</updated>
	<author>
		<name>David Winsemius</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 24, 2009, at 8:33 PM, AC Del Re wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am wanting to convert a data.frame from a wide format to a long &amp;nbsp;
&lt;br&gt;&amp;gt; format
&lt;br&gt;&amp;gt; (with &amp;gt;1 variable) and am having difficulties. Any help is &amp;nbsp;
&lt;br&gt;&amp;gt; appreciated!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #current wide format
&lt;br&gt;&amp;gt;&amp;gt; head(data.out2)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; id &amp;nbsp; rater.1 n.1 &amp;nbsp; rater.2 n.2 &amp;nbsp; rater.3 n.3 &amp;nbsp; rater.4 n.4
&lt;br&gt;&amp;gt; 11 &amp;nbsp; 11 0.1183333 &amp;nbsp;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 114 114 0.2478709 113 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 12 &amp;nbsp; 12 0.3130655 &amp;nbsp;54 0.3668242 &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 121 121 0.2400000 331 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt; 122 122 0.3004164 &amp;nbsp;25 0.1046278 &amp;nbsp;25 0.2424871 &amp;nbsp;25 0.2796937 &amp;nbsp;25
&lt;br&gt;&amp;gt; 125 125 0.1634865 190 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #This is close but I would like the 'n' column to remain and for the &amp;nbsp;
&lt;br&gt;&amp;gt; '.1' to
&lt;br&gt;&amp;gt; drop off
&lt;/div&gt;&lt;br&gt;I don't really understand what you want and the example solution &amp;nbsp;
&lt;br&gt;throws away quite a lot of data, so consider this alternative:
&lt;br&gt;&lt;br&gt;data.out2 &amp;lt;- read.table(textConnection(&amp;quot;id &amp;nbsp; rater.1 n.1 &amp;nbsp; rater.2 n. 
&lt;br&gt;2 &amp;nbsp; rater.3 n.3 &amp;nbsp; rater.4 n.4
&lt;br&gt;11 &amp;nbsp; 11 0.1183333 &amp;nbsp;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;114 114 0.2478709 113 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;12 &amp;nbsp; 12 0.3130655 &amp;nbsp;54 0.3668242 &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;121 121 0.2400000 331 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;122 122 0.3004164 &amp;nbsp;25 0.1046278 &amp;nbsp;25 0.2424871 &amp;nbsp;25 0.2796937 &amp;nbsp;25
&lt;br&gt;125 125 0.1634865 190 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA&amp;quot;), &amp;nbsp;
&lt;br&gt;header=T, stringsAsFactors=F)
&lt;br&gt;&lt;br&gt;&lt;br&gt;data.frame(id= data.out2$id, rater=stack(data.out2[,grep(&amp;quot;rater&amp;quot;, &amp;nbsp;
&lt;br&gt;names(data.out2))]),
&lt;br&gt;&amp;nbsp; &amp;nbsp;n= stack(data.out2[,grep(&amp;quot;n&amp;quot;, names(data.out2))]) )
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; data.out2.id rater.values rater.ind n.values n.ind
&lt;br&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp;0.1183333 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 79 &amp;nbsp; n.1
&lt;br&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 114 &amp;nbsp; &amp;nbsp;0.2478709 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;113 &amp;nbsp; n.1
&lt;br&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;0.3130655 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 54 &amp;nbsp; n.1
&lt;br&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 121 &amp;nbsp; &amp;nbsp;0.2400000 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;331 &amp;nbsp; n.1
&lt;br&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 122 &amp;nbsp; &amp;nbsp;0.3004164 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.1
&lt;br&gt;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 125 &amp;nbsp; &amp;nbsp;0.1634865 &amp;nbsp; rater.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;190 &amp;nbsp; n.1
&lt;br&gt;7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;0.3668242 &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 54 &amp;nbsp; n.2
&lt;br&gt;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.1046278 &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.2
&lt;br&gt;12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.2
&lt;br&gt;13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;15 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.2424871 &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.3
&lt;br&gt;18 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.3
&lt;br&gt;19 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;121 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;122 &amp;nbsp; &amp;nbsp;0.2796937 &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 &amp;nbsp; n.4
&lt;br&gt;24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; rater.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; n.4
&lt;br&gt;&lt;br&gt;You can take what you like from what I would consider a version that &amp;nbsp;
&lt;br&gt;has no loss of the original information.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; data.out3&amp;lt;-reshape(data.out2,varying=list(names(data.out2)[-1]),
&lt;br&gt;&amp;gt; + &amp;nbsp;idvar='id',direction='long')
&lt;br&gt;&amp;gt;&amp;gt; head(data.out3)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; id time &amp;nbsp; rater.1
&lt;br&gt;&amp;gt; 11.1 &amp;nbsp; 11 &amp;nbsp; &amp;nbsp;1 0.1183333
&lt;br&gt;&amp;gt; 114.1 114 &amp;nbsp; &amp;nbsp;1 0.2478709
&lt;br&gt;&amp;gt; 12.1 &amp;nbsp; 12 &amp;nbsp; &amp;nbsp;1 0.3130655
&lt;br&gt;&amp;gt; 121.1 121 &amp;nbsp; &amp;nbsp;1 0.2400000
&lt;br&gt;&amp;gt; 122.1 122 &amp;nbsp; &amp;nbsp;1 0.3004164
&lt;br&gt;&amp;gt; 125.1 125 &amp;nbsp; &amp;nbsp;1 0.1634865
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ideally I would like the columns to be set up in this manner:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; &amp;nbsp;time &amp;nbsp; &amp;nbsp;rater &amp;nbsp; &amp;nbsp; n
&lt;/div&gt;&lt;br&gt;What is &amp;quot;time&amp;quot;?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; html
&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/reshape-question-tp26506273p26506752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506445</id>
	<title>XML package example code?</title>
	<published>2009-11-24T17:49:31Z</published>
	<updated>2009-11-24T17:49:31Z</updated>
	<author>
		<name>Peng Yu</name>
	</author>
	<content type="html">I'm interested in parsing an html page. I should use XML, right? Could
&lt;br&gt;you somebody show me some example code? Is there a tutorial for this
&lt;br&gt;package?
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506445&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-package-example-code--tp26506445p26506445.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506273</id>
	<title>reshape question</title>
	<published>2009-11-24T17:33:35Z</published>
	<updated>2009-11-24T17:33:35Z</updated>
	<author>
		<name>AC Del Re</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I am wanting to convert a data.frame from a wide format to a long format
&lt;br&gt;(with &amp;gt;1 variable) and am having difficulties. Any help is appreciated!
&lt;br&gt;&lt;br&gt;#current wide format
&lt;br&gt;&amp;gt; head(data.out2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; rater.1 n.1 &amp;nbsp; rater.2 n.2 &amp;nbsp; rater.3 n.3 &amp;nbsp; rater.4 n.4
&lt;br&gt;11 &amp;nbsp; 11 0.1183333 &amp;nbsp;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;114 114 0.2478709 113 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;12 &amp;nbsp; 12 0.3130655 &amp;nbsp;54 0.3668242 &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;121 121 0.2400000 331 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;122 122 0.3004164 &amp;nbsp;25 0.1046278 &amp;nbsp;25 0.2424871 &amp;nbsp;25 0.2796937 &amp;nbsp;25
&lt;br&gt;125 125 0.1634865 190 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp;NA
&lt;br&gt;&lt;br&gt;#This is close but I would like the 'n' column to remain and for the '.1' to
&lt;br&gt;drop off
&lt;br&gt;&lt;br&gt;&amp;gt; data.out3&amp;lt;-reshape(data.out2,varying=list(names(data.out2)[-1]),
&lt;br&gt;+ &amp;nbsp;idvar='id',direction='long')
&lt;br&gt;&amp;gt; head(data.out3)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id time &amp;nbsp; rater.1
&lt;br&gt;11.1 &amp;nbsp; 11 &amp;nbsp; &amp;nbsp;1 0.1183333
&lt;br&gt;114.1 114 &amp;nbsp; &amp;nbsp;1 0.2478709
&lt;br&gt;12.1 &amp;nbsp; 12 &amp;nbsp; &amp;nbsp;1 0.3130655
&lt;br&gt;121.1 121 &amp;nbsp; &amp;nbsp;1 0.2400000
&lt;br&gt;122.1 122 &amp;nbsp; &amp;nbsp;1 0.3004164
&lt;br&gt;125.1 125 &amp;nbsp; &amp;nbsp;1 0.1634865
&lt;br&gt;&lt;br&gt;Ideally I would like the columns to be set up in this manner:
&lt;br&gt;&lt;br&gt;id &amp;nbsp; &amp;nbsp;time &amp;nbsp; &amp;nbsp;rater &amp;nbsp; &amp;nbsp; n
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;AC
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506273&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/reshape-question-tp26506273p26506273.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506249</id>
	<title>Re: Broken installer (PR#14083)</title>
	<published>2009-11-24T17:31:49Z</published>
	<updated>2009-11-24T17:31:49Z</updated>
	<author>
		<name>Simon Urbanek</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 24, 2009, at 5:45 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506249&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert.a.weller@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Full_Name: Robert A. Weller
&lt;br&gt;&amp;gt; Version: current
&lt;br&gt;&amp;gt; OS: Mac OS 10.6
&lt;br&gt;&amp;gt; Submission from: (NULL) (129.59.140.86)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The gfortran 4.2.4 installer in the Tools section that is supposed &amp;nbsp;
&lt;br&gt;&amp;gt; to install a
&lt;br&gt;&amp;gt; Snow Leopard (10.6) version is actually installing version 4.2.1. I &amp;nbsp;
&lt;br&gt;&amp;gt; am finding
&lt;br&gt;&amp;gt; that the 4.2.1 compiler installed as issues e.g. in interpreting the
&lt;br&gt;&amp;gt; -fno-automatic command line switch and also -fdefault-real-8.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We looked directly into the installer and saw that it was actually &amp;nbsp;
&lt;br&gt;&amp;gt; installing
&lt;br&gt;&amp;gt; 4.2.1. Of course, gfortran --version confirmed this.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;You are, of course, wrong because what you're looking at is the Apple &amp;nbsp;
&lt;br&gt;gcc version which is the version of the driver and the cc part (it is &amp;nbsp;
&lt;br&gt;the gcc-42 tree of Apple). The fortran merged unto the Apple gcc &amp;nbsp;
&lt;br&gt;branch is indeed 4.2.4.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506249&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Broken-installer-%28PR-14083%29-tp26505105p26506249.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506223</id>
	<title>questions on the ff package</title>
	<published>2009-11-24T17:28:44Z</published>
	<updated>2009-11-24T17:28:44Z</updated>
	<author>
		<name>jeffc</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have two questions on using the ff package and wonder if anyone who used
&lt;br&gt;ff can share some thoughts.
&lt;br&gt;&lt;br&gt;I need to save a matrix as a memory-mapped file and load it back later. To
&lt;br&gt;save the matrix, I use
&lt;br&gt;&lt;br&gt;mat = matrix(1:20, 4, 5)
&lt;br&gt;matFF = ff(mat, dim=dim(mat), filename=&amp;quot;~/a.mat&amp;quot;, overwrite=TRUE, dimnames
&lt;br&gt;= dimnames(mat))
&lt;br&gt;&lt;br&gt;To load it back, I use
&lt;br&gt;matFF2 = ff(vmode = &amp;quot;double&amp;quot;, dim= ???, filename=&amp;quot;~/a.mat&amp;quot;, overwrite=F)
&lt;br&gt;&lt;br&gt;However, I don't always know the dimension when loading the matrix back.
&lt;br&gt;If I miss the dim attributes, ff will return it as vector. Is there a way
&lt;br&gt;to load the matrix without specifying the dimension?
&lt;br&gt;&lt;br&gt;The second question is that the matrix may grow in terms of the number of
&lt;br&gt;rows. I would like to synchronize the change to the memory-mapped file. Is
&lt;br&gt;there an efficient way to do this?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506223&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/questions-on-the-ff-package-tp26506223p26506223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506174</id>
	<title>problem in building an R package</title>
	<published>2009-11-24T17:24:30Z</published>
	<updated>2009-11-24T17:24:30Z</updated>
	<author>
		<name>clue_less</name>
	</author>
	<content type="html">i am trying to build an R package and submit to CRAN.
&lt;br&gt;i am using -
&lt;br&gt;package.skeleton(name=&amp;quot;xxzz&amp;quot;, code_files = &amp;quot;H:\xxzz.R&amp;quot;)
&lt;br&gt;to build package xxzz.
&lt;br&gt;---------------------------
&lt;br&gt;The code above generates 'xxzz' folder.
&lt;br&gt;It seems that I have to manually edit the files generated in xxzz folder (to
&lt;br&gt;add titles, authors, etc)
&lt;br&gt;--------------------------
&lt;br&gt;&lt;br&gt;But when I re-run -
&lt;br&gt;package.skeleton(name=&amp;quot;xxzz&amp;quot;, code_files = &amp;quot;H:\xxzz.R&amp;quot;)
&lt;br&gt;&lt;br&gt;All the edited information will be lost since the default files are 
&lt;br&gt;regenerated such as DESCRIPTION file.
&lt;br&gt;&lt;br&gt;---------------------------
&lt;br&gt;&lt;br&gt;I have found the process of building package is extremely troublesome.
&lt;br&gt;&lt;br&gt;Have anybody had a better approach?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-in-building-an-R-package-tp26506174p26506174.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505934</id>
	<title>Re: Trellis Plot</title>
	<published>2009-11-24T17:00:21Z</published>
	<updated>2009-11-24T17:00:21Z</updated>
	<author>
		<name>ychu066</name>
	</author>
	<content type="html">i was trying to do a for loop for plotting the histograms , but it doesnt work properly 
&lt;br&gt;&lt;br&gt;&amp;gt; library(lattice) 
&lt;br&gt;&amp;gt; columns &amp;lt;- 8:153 
&lt;br&gt;&amp;gt; plots &amp;lt;- vector(&amp;quot;list&amp;quot;, length(columns)) 
&lt;br&gt;&amp;gt; j &amp;lt;- 0 
&lt;br&gt;&amp;gt; for (i in columns) 
&lt;br&gt;+ { &amp;nbsp; 
&lt;br&gt;+ &amp;nbsp; plots[[ j &amp;lt;- j+1 ]] &amp;lt;- histogram( ~ data[,i] | data[,2],ylab = &amp;quot;Frequency&amp;quot;, 
&lt;br&gt;+ &amp;nbsp; xlab = &amp;quot;Score&amp;quot;, xlim = c(1,5), ylim = c(0,100),layout=c(3,1), 
&lt;br&gt;+ &amp;nbsp; main = c(colnames(data)[i],&amp;quot;index&amp;quot;,j+1),mycolors = colors()[c(536,552,652,254,26)], 
&lt;br&gt;+ &amp;nbsp; panel = function(..., col, mycolors) { 
&lt;br&gt;+ &amp;nbsp; panel.histogram(..., col = mycolors[panel.number()])}) 
&lt;br&gt;+ trellis.focus('strip', 1, 1, highlight=FALSE)
&lt;br&gt;+ ltext(0.60, -0.25, 'PPM', col='blue', pos=3)
&lt;br&gt;+ trellis.unfocus()
&lt;br&gt;+ } &amp;nbsp; 
&lt;br&gt;Error in grid.Call.graphics(&amp;quot;L_downviewport&amp;quot;, name$name, strict) : 
&lt;br&gt;&amp;nbsp; Viewport 'plot1.strip.1.1.vp' was not found
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; print(plots[[1]])
&lt;br&gt;&lt;br&gt;&lt;br&gt;I am not sure what was happeneing. . . can anyone help me ?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ychu066 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;anyone know how to add text in the Trellis plot panel ?? i want to add things eg: dot dot dot. in the headrer of the panel.
&lt;br&gt;&lt;br&gt;eg: &lt;a href=&quot;http://old.nabble.com/file/p26486579/hist1.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hist1.png&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Trellis-Plot-tp26486579p26505934.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505736</id>
	<title>group generics</title>
	<published>2009-11-24T16:34:25Z</published>
	<updated>2009-11-24T16:34:25Z</updated>
	<author>
		<name>Ross Boylan</name>
	</author>
	<content type="html">I have classes A and B, where B contains A. &amp;nbsp;In the implementation of
&lt;br&gt;the group generic for B I would like to use the corresponding group
&lt;br&gt;generic for A. &amp;nbsp;Is there a way to do that?
&lt;br&gt;&lt;br&gt;I would also appreciate any comments if what I'm trying to do seems like
&lt;br&gt;the wrong approach.
&lt;br&gt;&lt;br&gt;Here's a stripped down example:
&lt;br&gt;setClass(&amp;quot;A&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;representation=representation(xa=&amp;quot;numeric&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&lt;br&gt;setMethod(&amp;quot;Arith&amp;quot;, signature(e1=&amp;quot;numeric&amp;quot;, e2=&amp;quot;A&amp;quot;), function(e1, e2) {
&lt;br&gt;&amp;nbsp; new(&amp;quot;A&amp;quot;, ax=e1*e2@xa)
&lt;br&gt;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&lt;br&gt;setClass(&amp;quot;B&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;representation=representation(xb=&amp;quot;numeric&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contains=c(&amp;quot;A&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&lt;br&gt;setMethod(&amp;quot;Arith&amp;quot;, signature(e1=&amp;quot;numeric&amp;quot;, e2=&amp;quot;B&amp;quot;), function(e1, e2) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # the next line does not work right
&lt;br&gt;&amp;nbsp; v &amp;lt;- selectMethod(&amp;quot;callGeneric&amp;quot;, signature=c(&amp;quot;numeric&amp;quot;, &amp;quot;A&amp;quot;))(e1, e2)
&lt;br&gt;&amp;nbsp; print(v)
&lt;br&gt;&amp;nbsp; new(&amp;quot;B&amp;quot;, v, xb=e1*e2@xb)
&lt;br&gt;}
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Results:
&lt;br&gt;&amp;gt; t1 &amp;lt;- new(&amp;quot;B&amp;quot;, new(&amp;quot;A&amp;quot;, xa=4), xb=2)
&lt;br&gt;&amp;gt; t1
&lt;br&gt;An object of class “B”
&lt;br&gt;Slot &amp;quot;xb&amp;quot;:
&lt;br&gt;[1] 2
&lt;br&gt;&lt;br&gt;Slot &amp;quot;xa&amp;quot;:
&lt;br&gt;[1] 4
&lt;br&gt;&lt;br&gt;&amp;gt; 3*t1
&lt;br&gt;Error in getGeneric(f, !optional) : 
&lt;br&gt;&amp;nbsp; no generic function found for &amp;quot;callGeneric&amp;quot;
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;Ross Boylan
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505736&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/group-generics-tp26505736p26505736.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505557</id>
	<title>Re: Titles in plots overlap</title>
	<published>2009-11-24T16:13:11Z</published>
	<updated>2009-11-24T16:13:11Z</updated>
	<author>
		<name>David Winsemius</name>
	</author>
	<content type="html">I did not get anything very interesting with that plot but &amp;nbsp;
&lt;br&gt;nonetheless, I suspect that you want to put your &amp;nbsp;oma= parameter a bit &amp;nbsp;
&lt;br&gt;earlier.
&lt;br&gt;&lt;br&gt;On Nov 24, 2009, at 6:14 PM, Roslina Zakaria wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I use fCopulae package to draw different graphs of univariate and &amp;nbsp;
&lt;br&gt;&amp;gt; bivariate skew t. &amp;nbsp;But the plots titles overlap. &amp;nbsp;I tried using &amp;nbsp;
&lt;br&gt;&amp;gt; cex.main, font.main to adjust the size but they still overlaps. &amp;nbsp; 
&lt;br&gt;&amp;gt; Here is my code:
&lt;br&gt;&lt;br&gt;#revised
&lt;br&gt;opar &amp;lt;- par(mfrow = c(3, 1), oma=c(2,2,3,2) )
&lt;br&gt;mu = 0
&lt;br&gt;Omega = 1
&lt;br&gt;alpha1 = 0
&lt;br&gt;alpha2 = 1.5
&lt;br&gt;alpha3 = 2
&lt;br&gt;alpha4 = 0.5
&lt;br&gt;Z1 = matrix(dmvst(x, 1, mu, Omega, alpha1, df = Inf), length(x))
&lt;br&gt;Z2 = matrix(dmvst(x, 1, mu, Omega, alpha2, df = 5), length(x))
&lt;br&gt;Z3 = matrix(dmvst(x, 1, mu, Omega, alpha3, df = 5), length(x))
&lt;br&gt;Z4 = matrix(dmvst(x, 1, mu, Omega, alpha4, df = Inf), length(x))
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z2), type='l')
&lt;br&gt;points(x,Z2,type='l',col=2)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z2 (Skew=1.5, df=5)&amp;quot;,cex = 1.0)
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z3), type='l')
&lt;br&gt;points(x,Z3,type='l',col=3)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z3 (Skew=2, df=5)&amp;quot;,cex = 1.0)
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z4), type='l')
&lt;br&gt;points(x,Z4,type='l',col=4)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z4 (Skew=0.5, df=Inf)&amp;quot;,cex = 1.0)
&lt;br&gt;#deleted
&lt;br&gt;title(&amp;quot;Different shapes of univariate skew-t distribution&amp;quot;, outer = &amp;nbsp;
&lt;br&gt;TRUE, cex.main=2)
&lt;br&gt;#added
&lt;br&gt;par(opar)-
&lt;br&gt;&lt;br&gt;-
&lt;br&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505557&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Titles-in-plots-overlap-tp26505020p26505557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505856</id>
	<title>Accessing remote data (ftp) over the net</title>
	<published>2009-11-24T16:13:01Z</published>
	<updated>2009-11-24T16:13:01Z</updated>
	<author>
		<name>Gnosos</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is there any way to access data remotely over the Internet? In 
&lt;br&gt;particular, I'm starting a project that will use data from the U.S. 
&lt;br&gt;Bureau of Labor Statistics. The Bureau regularly updates various data 
&lt;br&gt;series and publishes them as a series of flat files that can be 
&lt;br&gt;downloaded via ftp (e.g., cf. &amp;nbsp;ftp://ftp.bls.gov/pub/time.series/sm/). 
&lt;br&gt;Since some of these files are rather large, I'd like to retrieve 
&lt;br&gt;selected elements by using sql queries. Since the files are often large 
&lt;br&gt;and updated frequently, I'd like to leave them on the server.
&lt;br&gt;&lt;br&gt;I'm thinking of trying something like: R -&amp;gt; RODBC -&amp;gt; MySQL -&amp;gt; query of 
&lt;br&gt;remote flat-file database and keeping the query as a view.
&lt;br&gt;&lt;br&gt;Has anyone been successful doing something like this? Is there a better 
&lt;br&gt;approach?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Marsh Feldman
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505856&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Accessing-remote-data-%28ftp%29-over-the-net-tp26505856p26505856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505360</id>
	<title>Re: How to get the item in list that is a number?</title>
	<published>2009-11-24T15:49:25Z</published>
	<updated>2009-11-24T15:49:25Z</updated>
	<author>
		<name>Nikhil Kaza-2</name>
	</author>
	<content type="html">?unlist
&lt;br&gt;&lt;br&gt;if I understand you correctly.
&lt;br&gt;&lt;br&gt;On 24 Nov 2009, at 5:50PM, Peng Yu wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have the following list. The second item in the list is a number.
&lt;br&gt;&amp;gt; I'm wondering how to write R code to return this information for any
&lt;br&gt;&amp;gt; list?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $`1`
&lt;br&gt;&amp;gt; integer(0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $`2`
&lt;br&gt;&amp;gt; [1] 123
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $`3`
&lt;br&gt;&amp;gt; integer(0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $`4`
&lt;br&gt;&amp;gt; integer(0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $`5`
&lt;br&gt;&amp;gt; integer(0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505360&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;/div&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505360&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-the-item-in-list-that-is-a-number--tp26504684p26505360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505208</id>
	<title>Re: Split column</title>
	<published>2009-11-24T15:34:00Z</published>
	<updated>2009-11-24T15:34:00Z</updated>
	<author>
		<name>Lisaj</name>
	</author>
	<content type="html">I really appreciate your help. But if there is a big dataset, I need to write lots of code.
&lt;br&gt;&lt;br&gt;Lisa
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;David Winsemius wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;The solution I offered does exactly that. It also addresses your other &amp;nbsp;
&lt;br&gt;supplemental request.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;David (Dangerfield?)
&lt;br&gt;&lt;br&gt;On Nov 24, 2009, at 5:57 PM, Lisaj wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a further question. If there is NA (missing data) in the &amp;nbsp;
&lt;br&gt;&amp;gt; original
&lt;br&gt;&amp;gt; dataset, just like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; var1 &amp;nbsp; var2
&lt;br&gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2
&lt;br&gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; how to deal with it? The converted dataset should be this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; var1.1 &amp;nbsp;var1.2 &amp;nbsp;var2.1 &amp;nbsp;var2.2
&lt;br&gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Lisa
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Henrique Dallazuanna wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Try this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; cbind(x$id, t(do.call(rbind, lapply(x[-1], sapply, switch, '1' =
&lt;br&gt;&amp;gt;&amp;gt; c(1,1), '2' = c(1, 2), '3' = c(2, 2)))))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Nov 24, 2009 at 1:51 PM, Lisaj &amp;lt;lisajca@gmail.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello, R users,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have a dataset that looks like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; id &amp;nbsp; var1 &amp;nbsp; var2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to split one column to two columns with 1 = 1 and 1, 2 = 1 &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and 2,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3 =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2 and 2:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; id &amp;nbsp; var1.1 &amp;nbsp;var1.2 &amp;nbsp;var2.1 &amp;nbsp;var2.2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can anyone please help how to get this done? Thanks a lot in advance
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Lisa
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Split-column-tp26498361p26498361.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Split-column-tp26498361p26498361.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; R-help@r-project.org mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; Henrique Dallazuanna
&lt;br&gt;&amp;gt;&amp;gt; Curitiba-Paraná-Brasil
&lt;br&gt;&amp;gt;&amp;gt; 25° 25' 40&amp;quot; S 49° 16' 22&amp;quot; O
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; R-help@r-project.org mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Split-column-tp26498361p26504785.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Split-column-tp26498361p26504785.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; R-help@r-project.org mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;R-help@r-project.org mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Split-column-tp26498361p26505208.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505161</id>
	<title>Re: 11 distinguishable colors</title>
	<published>2009-11-24T15:27:14Z</published>
	<updated>2009-11-24T15:27:14Z</updated>
	<author>
		<name>milton ruser</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;I picked it up from r.colors' grass manual:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://colorbrewer2.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://colorbrewer2.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;The code bellow cold be usefull for you explore simbols and colors.
&lt;br&gt;&lt;br&gt;x11(900,500)
&lt;br&gt;par(mfrow=c(1,2))
&lt;br&gt;x&amp;lt;-runif(20)
&lt;br&gt;y&amp;lt;-runif(20)
&lt;br&gt;plot(y~x, type=&amp;quot;n&amp;quot;)
&lt;br&gt;Number.of.symbols&amp;lt;-20
&lt;br&gt;for (i in 1:Number.of.symbols)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;points(y[i]~x[i], pch=i, cex=1.5)
&lt;br&gt;&amp;nbsp;text((x[i]+0.02),y[i], i)
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;colors.list&amp;lt;-colors()
&lt;br&gt;Number.of.colors&amp;lt;-100
&lt;br&gt;colors.list&amp;lt;-colors.list[1:Number.of.colors]
&lt;br&gt;plot(0:1,0:1, type=&amp;quot;n&amp;quot;)
&lt;br&gt;for (i in colors.list)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;x&amp;lt;-runif(1)
&lt;br&gt;&amp;nbsp;y&amp;lt;-runif(1)
&lt;br&gt;&amp;nbsp;text(x,y, i, col=i)
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;miltinho
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 6:01 PM, phoebe kong &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505161&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sityeekong@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It should be 11 different groups, not 8.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 3:00 PM, phoebe kong &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505161&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sityeekong@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I want to draw a plot where the data set has 8 different groups. Could
&lt;br&gt;&amp;gt; you
&lt;br&gt;&amp;gt; &amp;gt; suggest 8 combination of colors and symbols that are distinguishable? If
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; colors are too close, it would be hard to differentiate from the plot.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[[alternative HTML version deleted]]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505161&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://www.r-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.r-project.org/posting-guide.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505161&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/11-distinguishable-colors-tp26504833p26505161.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505155</id>
	<title>R Packages Crack the 3,000 Mark!</title>
	<published>2009-11-24T15:26:54Z</published>
	<updated>2009-11-24T15:26:54Z</updated>
	<author>
		<name>Muenchen, Robert A (Bob)</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I don't know if this has been reported before, but according to Henrique
&lt;br&gt;Dallazuanna's program (below) the number of R packages has exceeded the
&lt;br&gt;3,000 mark. The count today is 3,175. I ran this just a couple of months
&lt;br&gt;ago &amp; the number was still in the high 2,000s, so it must be fairly
&lt;br&gt;recent. I think this represents about 50% growth in the last year. Not
&lt;br&gt;bad!
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Does anyone have a program that graphs the growth of R packages? I don't
&lt;br&gt;know if that historical data is around.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Bob
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://RforSASandSPSSusers.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://RforSASandSPSSusers.com&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Henrique's program:
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;gt; setRepositories()
&lt;br&gt;&lt;br&gt;&amp;gt; myPackageNames &amp;lt;- available.packages()
&lt;br&gt;&lt;br&gt;--- Please select a CRAN mirror for use in this session --- [I selected
&lt;br&gt;them all]
&lt;br&gt;&lt;br&gt;&amp;gt; length(unique( rownames(myPackageNames) ))
&lt;br&gt;&lt;br&gt;[1] 3175
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505155&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/R-Packages-Crack-the-3%2C000-Mark%21-tp26505155p26505155.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505020</id>
	<title>Titles in plots overlap</title>
	<published>2009-11-24T15:14:47Z</published>
	<updated>2009-11-24T15:14:47Z</updated>
	<author>
		<name>Roslina Zakaria</name>
	</author>
	<content type="html">Hi,
&lt;br&gt; 
&lt;br&gt;I use fCopulae package to draw different graphs of univariate and bivariate skew t.  But the plots titles overlap.  I tried using cex.main, font.main to adjust the size but they still overlaps.  Here is my code:
&lt;br&gt;par(mfrow = c(3, 1))
&lt;br&gt;mu = 0
&lt;br&gt;Omega = 1
&lt;br&gt;alpha1 = 0
&lt;br&gt;alpha2 = 1.5
&lt;br&gt;alpha3 = 2
&lt;br&gt;alpha4 = 0.5
&lt;br&gt;Z1 = matrix(dmvst(x, 1, mu, Omega, alpha1, df = Inf), length(x))
&lt;br&gt;Z2 = matrix(dmvst(x, 1, mu, Omega, alpha2, df = 5), length(x))
&lt;br&gt;Z3 = matrix(dmvst(x, 1, mu, Omega, alpha3, df = 5), length(x))
&lt;br&gt;Z4 = matrix(dmvst(x, 1, mu, Omega, alpha4, df = Inf), length(x))
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z2), type='l')
&lt;br&gt;points(x,Z2,type='l',col=2)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z2 (Skew=1.5, df=5)&amp;quot;,cex = 1.0)
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z3), type='l')
&lt;br&gt;points(x,Z3,type='l',col=3)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z3 (Skew=2, df=5)&amp;quot;,cex = 1.0)
&lt;br&gt;plot(x,Z1, ylim=range(Z1,Z4), type='l')
&lt;br&gt;points(x,Z4,type='l',col=4)
&lt;br&gt;title(main = &amp;quot;Z1 (Skew=0, df=Inf) vs Z4 (Skew=0.5, df=Inf)&amp;quot;,cex = 1.0)
&lt;br&gt;par(oma=c(2,2,3,2))
&lt;br&gt;title(&amp;quot;Different shapes of univariate skew-t distribution&amp;quot;, outer = TRUE, cex.main=2)
&lt;br&gt;&lt;br&gt;Thank you so much for any help given.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;&lt;br /&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505020&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Titles-in-plots-overlap-tp26505020p26505020.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504904</id>
	<title>Re: Split column</title>
	<published>2009-11-24T15:05:59Z</published>
	<updated>2009-11-24T15:05:59Z</updated>
	<author>
		<name>David Winsemius</name>
	</author>
	<content type="html">The solution I offered does exactly that. It also addresses your other &amp;nbsp;
&lt;br&gt;supplemental request.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;David (Dangerfield?)
&lt;br&gt;&lt;br&gt;On Nov 24, 2009, at 5:57 PM, Lisaj wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a further question. If there is NA (missing data) in the &amp;nbsp;
&lt;br&gt;&amp;gt; original
&lt;br&gt;&amp;gt; dataset, just like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; var1 &amp;nbsp; var2
&lt;br&gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2
&lt;br&gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; how to deal with it? The converted dataset should be this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id &amp;nbsp; var1.1 &amp;nbsp;var1.2 &amp;nbsp;var2.1 &amp;nbsp;var2.2
&lt;br&gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Lisa
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Henrique Dallazuanna wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Try this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; cbind(x$id, t(do.call(rbind, lapply(x[-1], sapply, switch, '1' =
&lt;br&gt;&amp;gt;&amp;gt; c(1,1), '2' = c(1, 2), '3' = c(2, 2)))))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Nov 24, 2009 at 1:51 PM, Lisaj &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504904&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lisajca@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello, R users,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have a dataset that looks like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; id &amp;nbsp; var1 &amp;nbsp; var2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to split one column to two columns with 1 = 1 and 1, 2 = 1 &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and 2,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3 =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2 and 2:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; id &amp;nbsp; var1.1 &amp;nbsp;var1.2 &amp;nbsp;var2.1 &amp;nbsp;var2.2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can anyone please help how to get this done? Thanks a lot in advance
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Lisa
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Split-column-tp26498361p26498361.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Split-column-tp26498361p26498361.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504904&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; Henrique Dallazuanna
&lt;br&gt;&amp;gt;&amp;gt; Curitiba-Paraná-Brasil
&lt;br&gt;&amp;gt;&amp;gt; 25° 25' 40&amp;quot; S 49° 16' 22&amp;quot; O
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504904&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; PLEASE do read the posting guide
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Split-column-tp26498361p26504785.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Split-column-tp26498361p26504785.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504904&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;/div&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504904&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Split-column-tp26498361p26504904.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504852</id>
	<title>Re: 11 distinguishable colors</title>
	<published>2009-11-24T15:01:41Z</published>
	<updated>2009-11-24T15:01:41Z</updated>
	<author>
		<name>phoebe kong</name>
	</author>
	<content type="html">It should be 11 different groups, not 8.
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 3:00 PM, phoebe kong &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504852&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sityeekong@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to draw a plot where the data set has 8 different groups. Could you
&lt;br&gt;&amp;gt; suggest 8 combination of colors and symbols that are distinguishable? If the
&lt;br&gt;&amp;gt; colors are too close, it would be hard to differentiate from the plot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504852&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/11-distinguishable-colors-tp26504833p26504852.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504833</id>
	<title>11 distinguishable colors</title>
	<published>2009-11-24T15:00:33Z</published>
	<updated>2009-11-24T15:00:33Z</updated>
	<author>
		<name>phoebe kong</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I want to draw a plot where the data set has 8 different groups. Could you
&lt;br&gt;suggest 8 combination of colors and symbols that are distinguishable? If the
&lt;br&gt;colors are too close, it would be hard to differentiate from the plot.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504833&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/11-distinguishable-colors-tp26504833p26504833.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504785</id>
	<title>Re: Split column</title>
	<published>2009-11-24T14:57:06Z</published>
	<updated>2009-11-24T14:57:06Z</updated>
	<author>
		<name>Lisaj</name>
	</author>
	<content type="html">I have a further question. If there is NA (missing data) in the original dataset, just like this:
&lt;br&gt;&lt;br&gt;id &amp;nbsp; var1 &amp;nbsp; var2 &amp;nbsp; 
&lt;br&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; 
&lt;br&gt;&amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; 
&lt;br&gt;&amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp;1 &amp;nbsp; 
&lt;br&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; 
&lt;br&gt;&amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; 
&lt;br&gt;&lt;br&gt;how to deal with it? The converted dataset should be this:
&lt;br&gt;&lt;br&gt;id &amp;nbsp; var1.1 &amp;nbsp;var1.2 &amp;nbsp;var2.1 &amp;nbsp;var2.2 
&lt;br&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 
&lt;br&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Lisa
&lt;br&gt;&lt;br&gt;The &amp;nbsp;
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Henrique Dallazuanna wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Try this:
&lt;br&gt;&lt;br&gt;cbind(x$id, t(do.call(rbind, lapply(x[-1], sapply, switch, '1' =
&lt;br&gt;c(1,1), '2' = c(1, 2), '3' = c(2, 2)))))
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 1:51 PM, Lisaj &amp;lt;lisajca@gmail.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello, R users,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a dataset that looks like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id   var1   var2
&lt;br&gt;&amp;gt;  1      1      3
&lt;br&gt;&amp;gt;  2      3      1
&lt;br&gt;&amp;gt;  3      2      1
&lt;br&gt;&amp;gt;  4      1      2
&lt;br&gt;&amp;gt;  5      2      3
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to split one column to two columns with 1 = 1 and 1, 2 = 1 and 2, 3 =
&lt;br&gt;&amp;gt; 2 and 2:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; id   var1.1  var1.2  var2.1  var2.2
&lt;br&gt;&amp;gt; 1         1       1       2       2
&lt;br&gt;&amp;gt; 2         2       2       1       1
&lt;br&gt;&amp;gt; 3         1       2       1       1
&lt;br&gt;&amp;gt; 4         1       1       1       2
&lt;br&gt;&amp;gt; 5         1       2       2       2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can anyone please help how to get this done? Thanks a lot in advance
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Lisa
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Split-column-tp26498361p26498361.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Split-column-tp26498361p26498361.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; R-help@r-project.org mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Henrique Dallazuanna
&lt;br&gt;Curitiba-Paraná-Brasil
&lt;br&gt;25° 25' 40&amp;quot; S 49° 16' 22&amp;quot; O
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;R-help@r-project.org mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Split-column-tp26498361p26504785.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504684</id>
	<title>How to get the item in list that is a number?</title>
	<published>2009-11-24T14:50:14Z</published>
	<updated>2009-11-24T14:50:14Z</updated>
	<author>
		<name>Peng Yu</name>
	</author>
	<content type="html">I have the following list. The second item in the list is a number.
&lt;br&gt;I'm wondering how to write R code to return this information for any
&lt;br&gt;list?
&lt;br&gt;&lt;br&gt;&lt;br&gt;$`1`
&lt;br&gt;integer(0)
&lt;br&gt;&lt;br&gt;$`2`
&lt;br&gt;[1] 123
&lt;br&gt;&lt;br&gt;$`3`
&lt;br&gt;integer(0)
&lt;br&gt;&lt;br&gt;$`4`
&lt;br&gt;integer(0)
&lt;br&gt;&lt;br&gt;$`5`
&lt;br&gt;integer(0)
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504684&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-the-item-in-list-that-is-a-number--tp26504684p26504684.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505105</id>
	<title>Broken installer (PR#14083)</title>
	<published>2009-11-24T14:45:12Z</published>
	<updated>2009-11-24T14:45:12Z</updated>
	<author>
		<name>robert.a.weller</name>
	</author>
	<content type="html">Full_Name: Robert A. Weller
&lt;br&gt;Version: current
&lt;br&gt;OS: Mac OS 10.6
&lt;br&gt;Submission from: (NULL) (129.59.140.86)
&lt;br&gt;&lt;br&gt;&lt;br&gt;The gfortran 4.2.4 installer in the Tools section that is supposed to install a
&lt;br&gt;Snow Leopard (10.6) version is actually installing version 4.2.1. I am finding
&lt;br&gt;that the 4.2.1 compiler installed as issues e.g. in interpreting the
&lt;br&gt;-fno-automatic command line switch and also -fdefault-real-8.
&lt;br&gt;&lt;br&gt;We looked directly into the installer and saw that it was actually installing
&lt;br&gt;4.2.1. Of course, gfortran --version confirmed this.
&lt;br&gt;&lt;br&gt;R. Weller
&lt;br&gt;Vanderbilt University
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505105&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Broken-installer-%28PR-14083%29-tp26505105p26505105.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504501</id>
	<title>Re: overdispersion and quasibinomial model</title>
	<published>2009-11-24T14:36:11Z</published>
	<updated>2009-11-24T14:36:11Z</updated>
	<author>
		<name>David Winsemius</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 24, 2009, at 3:41 PM, djpren wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am looking for the correct commands to do the following things:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. I have a binomial logistic regression model and i want to test for
&lt;br&gt;&amp;gt; overdispersion.
&lt;br&gt;&lt;br&gt;Under the teach a man to fish precept, &amp;nbsp; ... try:
&lt;br&gt;&lt;br&gt;RSiteSearch(&amp;quot;test over dispersion binomial models&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;gt; 2. If I do indeed have overdispersion i need to then run a quasi- 
&lt;br&gt;&amp;gt; binomial
&lt;br&gt;&amp;gt; model, but I'm not sure of the command.
&lt;br&gt;&lt;br&gt;?glm
&lt;br&gt;# and follow the appropriate links
&lt;br&gt;&lt;br&gt;&amp;gt; 3. I can get the residuals of the model, but i need to then apply a &amp;nbsp;
&lt;br&gt;&amp;gt; shapiro
&lt;br&gt;&amp;gt; wilk test to test them. Does anyone know the command for this?
&lt;br&gt;&lt;br&gt;&lt;br&gt;RSiteSearch(&amp;quot;shapiro-wilks&amp;quot;) &amp;nbsp; # not that people here recommend this &amp;nbsp;
&lt;br&gt;procedure
&lt;br&gt;&lt;br&gt;The overall flavor of these questions is &amp;quot;homework&amp;quot;, so I'm &amp;nbsp;
&lt;br&gt;speculating that you may want to consult your instructors.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;David Winsemius, MD
&lt;br&gt;Heritage Laboratories
&lt;br&gt;West Hartford, CT
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504501&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/overdispersion-and-quasibinomial-model-tp26502728p26504501.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504443</id>
	<title>Re: Link to pdf documentation from other package ?</title>
	<published>2009-11-24T14:31:13Z</published>
	<updated>2009-11-24T14:31:13Z</updated>
	<author>
		<name>Simon Urbanek</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 24, 2009, at 10:58 , hadley wickham wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; But the help files are local. &amp;nbsp;It would seem that this problem would
&lt;br&gt;&amp;gt;&amp;gt; be addressed if the help files were not displayed using http://
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But then they couldn't be dynamic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; One solution which would allow both would be to implement a proxy
&lt;br&gt;&amp;gt; within the dynamic help that could point to any file on the file
&lt;br&gt;&amp;gt; system.
&lt;br&gt;&lt;br&gt;That is already implemented but not allowed in unsafe directories for &amp;nbsp;
&lt;br&gt;security reasons (see previous discussion).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504443&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Link-to-pdf-documentation-from-other-package---tp26405139p26504443.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504428</id>
	<title>Scatter plot with margin distributions</title>
	<published>2009-11-24T14:28:27Z</published>
	<updated>2009-11-24T14:28:27Z</updated>
	<author>
		<name>Jose Narillos de Santos</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;My doub I think is very simple. I hope it is. So you can again help, guide
&lt;br&gt;me.
&lt;br&gt;&lt;br&gt;I´m trying to make a graph (scatter graph) about two variables, imagine I
&lt;br&gt;have a watter.txt file with two variables watter and hardness:
&lt;br&gt;&lt;br&gt;This code extracted from:
&lt;br&gt;&lt;a href=&quot;http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_simple_inference.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_simple_inference.pdf&lt;/a&gt;&lt;br&gt;would make a plot similar I want I mean to make an scatterplot with marginal
&lt;br&gt;ditribution up and left...(in this case a boxplot on the left and also I
&lt;br&gt;omitt the location).
&lt;br&gt;&lt;br&gt;&lt;br&gt;layout(matrix(c(2, 0, 1, 3), 2, 2, byrow = TRUE),2 + c(2, 1), c(1, 2), TRUE)
&lt;br&gt;&lt;br&gt;plot(mortality ~ hardness, data = water, pch = psymb)
&lt;br&gt;&lt;br&gt;abline(lm(mortality ~ hardness, data = water))
&lt;br&gt;&lt;br&gt;legend(&amp;quot;topright&amp;quot;, legend = levels(water$location), 7 + pch = c(1,2), bty =
&lt;br&gt;&amp;quot;n&amp;quot;)
&lt;br&gt;&lt;br&gt;hist(water$hardness)
&lt;br&gt;&lt;br&gt;boxplot(water$mortality)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Can anyone explain what is the values in &amp;quot;layout&amp;quot; the inputs I mean, I have
&lt;br&gt;read the help but because I´m a begginer I ´m not able to comprehed why they
&lt;br&gt;put matrix c(2,0,1,3) and the other inputs?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I need if someone can help me an easy example....
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks a lot.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;&lt;br /&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Scatter-plot-with-margin-distributions-tp26504428p26504428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504405</id>
	<title>Re: merge on non-identical names</title>
	<published>2009-11-24T14:27:28Z</published>
	<updated>2009-11-24T14:27:28Z</updated>
	<author>
		<name>Henrique Dallazuanna</name>
	</author>
	<content type="html">See agrep:
&lt;br&gt;&lt;br&gt;agrep(&amp;quot;American Services&amp;quot;, &amp;quot;Americam Services&amp;quot;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 7:11 PM, j daniel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504405&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jdlecy@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to conduct a merge on two databases containing information on
&lt;br&gt;&amp;gt; organizations, but the organization names are often non-identical and there
&lt;br&gt;&amp;gt; is no common unique identifier.  Does anyone know a good way to calculate a
&lt;br&gt;&amp;gt; similarity measure on two names, or even better is there a natural language
&lt;br&gt;&amp;gt; matching function in an R package?  I did some searches on this but must not
&lt;br&gt;&amp;gt; know the right keywords to search.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As an example, here are some possible non-identical names:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Oxfam,  Oxfam USA
&lt;br&gt;&amp;gt; American Services, Americam Services   -  (just mis-spelled)
&lt;br&gt;&amp;gt; Global Alliance for Action, Global Alliance for the Environment   -  (a
&lt;br&gt;&amp;gt; non-match)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any suggestions are welcome!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/merge-on-non-identical-names-tp26503346p26503346.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/merge-on-non-identical-names-tp26503346p26503346.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504405&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Henrique Dallazuanna
&lt;br&gt;Curitiba-Paraná-Brasil
&lt;br&gt;25° 25' 40&amp;quot; S 49° 16' 22&amp;quot; O
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504405&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/merge-on-non-identical-names-tp26503346p26504405.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504391</id>
	<title>Re: Re moving white space help</title>
	<published>2009-11-24T14:26:17Z</published>
	<updated>2009-11-24T14:26:17Z</updated>
	<author>
		<name>Henrique Dallazuanna</name>
	</author>
	<content type="html">If I understand, you can try this:
&lt;br&gt;&lt;br&gt;gsub(&amp;quot;\\s+&amp;quot;,&amp;quot;&amp;quot;,x)
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 7:18 PM, Ramyathulasingam
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504391&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ramya.Thulasingam@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi  there
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am trying to remove the white space and replace it with nothing but didnt
&lt;br&gt;&amp;gt; have any luck with that
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; x &amp;lt;- and fgh-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i can replace the comma using gsub
&lt;br&gt;&amp;gt; gsub(&amp;quot;\\-&amp;quot;,&amp;quot;&amp;quot;,x)
&lt;br&gt;&amp;gt; but i cant replace the white space with nothing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ramya
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Removing-white-space-help-tp26503431p26503431.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Removing-white-space-help-tp26503431p26503431.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504391&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Henrique Dallazuanna
&lt;br&gt;Curitiba-Paraná-Brasil
&lt;br&gt;25° 25' 40&amp;quot; S 49° 16' 22&amp;quot; O
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504391&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-white-space-help-tp26503431p26504391.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504377</id>
	<title>Re: Re moving white space help</title>
	<published>2009-11-24T14:25:49Z</published>
	<updated>2009-11-24T14:25:49Z</updated>
	<author>
		<name>jholtman</name>
	</author>
	<content type="html">Is this what you want:
&lt;br&gt;&lt;br&gt;&amp;gt; x &amp;lt;- &amp;quot; &amp;nbsp; and fgh- &amp;nbsp; &amp;nbsp;&amp;quot;
&lt;br&gt;&amp;gt; gsub(&amp;quot; +&amp;quot;, &amp;quot;&amp;quot;, x)
&lt;br&gt;[1] &amp;quot;andfgh-&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 4:18 PM, Ramyathulasingam
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504377&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ramya.Thulasingam@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi  there
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am trying to remove the white space and replace it with nothing but didnt
&lt;br&gt;&amp;gt; have any luck with that
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; x &amp;lt;- and fgh-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i can replace the comma using gsub
&lt;br&gt;&amp;gt; gsub(&amp;quot;\\-&amp;quot;,&amp;quot;&amp;quot;,x)
&lt;br&gt;&amp;gt; but i cant replace the white space with nothing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ramya
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Removing-white-space-help-tp26503431p26503431.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Removing-white-space-help-tp26503431p26503431.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the R help mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504377&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jim Holtman
&lt;br&gt;Cincinnati, OH
&lt;br&gt;+1 513 646 9390
&lt;br&gt;&lt;br&gt;What is the problem that you are trying to solve?
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504377&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-white-space-help-tp26503431p26504377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504216</id>
	<title>Aquamacs/emacs and color of echo in R console 2!</title>
	<published>2009-11-24T14:13:45Z</published>
	<updated>2009-11-24T14:13:45Z</updated>
	<author>
		<name>Christian Hoffmann-9</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;Sorry, I forgot to state the version: GNU Emacs 22.3.1
&lt;br&gt;&lt;br&gt;I have been unable to find information on the following problem:
&lt;br&gt;&lt;br&gt;All the text in my *R* window is shown in light red, starting after the
&lt;br&gt;echo &amp;quot;This is mgcv &amp;nbsp;1.5-6 . For overview type &amp;quot;, the following
&lt;br&gt;`help(&amp;quot;mgcv-package&amp;quot;)' is already in the light red.
&lt;br&gt;&lt;br&gt;This color annoys me because I need more contrast, and it is even worse
&lt;br&gt;for use with a beamer.
&lt;br&gt;&lt;br&gt;In the options menu I can open &amp;quot;Appearance&amp;quot; and then &amp;quot;Foreground color
&lt;br&gt;for comint mode&amp;quot;, but apart from the &amp;quot;[quit] in the upper left corner I
&lt;br&gt;can see no hint how to make a choice, let alone make it permanent.
&lt;br&gt;&lt;br&gt;Or will I have to try &amp;quot;Appearance&amp;quot; &amp;gt; &amp;quot;Customize Aquamacs&amp;quot;?
&lt;br&gt;&lt;br&gt;M-x color-theme-select opens an empty frame with nothing to select from
&lt;br&gt;(Hint given in &lt;a href=&quot;http://www.emacswiki.org/emacs/AquamacsFAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.emacswiki.org/emacs/AquamacsFAQ&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;What am I missing?
&lt;br&gt;&lt;br&gt;Thanks for help.
&lt;br&gt;&lt;br&gt;C.Hoffmann
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dr. Christian W. Hoffmann,
&lt;br&gt;Swiss Federal Research Institute WSL
&lt;br&gt;Zuercherstrasse 111, CH-8903 Birmensdorf, Switzerland
&lt;br&gt;Tel +41-44-7392-277 (office), -111(exchange), -215 &amp;nbsp;(fax)
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian.hoffmann@...&lt;/a&gt;, &amp;nbsp;www.wsl.ch/personal_homepages/hoffmann/
&lt;br&gt;&amp;quot;Jene, die grundlegende Freiheit aufgeben wuerden, um eine geringe
&lt;br&gt;voruebergehende Sicherheit zu erwerben, verdienen weder Freiheit noch
&lt;br&gt;Sicherheit.&amp;quot; - Benjamin Franklin
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504216&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Aquamacs-emacs-and-color-of-echo-in-R-console-2%21-tp26504216p26504216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504161</id>
	<title>Aquamacs/emacs and color of echo in R console</title>
	<published>2009-11-24T14:10:14Z</published>
	<updated>2009-11-24T14:10:14Z</updated>
	<author>
		<name>Christian Hoffmann-9</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;I have been unable to find information on the following problem:
&lt;br&gt;&lt;br&gt;All the text in my *R* window is shown in light red, starting after the 
&lt;br&gt;echo &amp;quot;This is mgcv &amp;nbsp;1.5-6 . For overview type &amp;quot;, the following 
&lt;br&gt;`help(&amp;quot;mgcv-package&amp;quot;)' is already in the light red.
&lt;br&gt;&lt;br&gt;This color annoys me because I need more contrast, and it is even worse 
&lt;br&gt;for use with a beamer.
&lt;br&gt;&lt;br&gt;In the options menu I can open &amp;quot;Appearance&amp;quot; and then &amp;quot;Foreground color 
&lt;br&gt;for comint mode&amp;quot;, but apart from the &amp;quot;[quit] in the upper left corner I 
&lt;br&gt;can see no hint how to make a choice, let alone make it permanent.
&lt;br&gt;&lt;br&gt;Or will I have to try &amp;quot;Appearance&amp;quot; &amp;gt; &amp;quot;Customize Aquamacs&amp;quot;?
&lt;br&gt;&lt;br&gt;M-x color-theme-select opens an empty frame with nothing to select from 
&lt;br&gt;(Hint given in &lt;a href=&quot;http://www.emacswiki.org/emacs/AquamacsFAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.emacswiki.org/emacs/AquamacsFAQ&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;What am I missing?
&lt;br&gt;&lt;br&gt;Thanks for help.
&lt;br&gt;&lt;br&gt;C.Hoffmann
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dr. Christian W. Hoffmann,
&lt;br&gt;Swiss Federal Research Institute WSL
&lt;br&gt;Zuercherstrasse 111, CH-8903 Birmensdorf, Switzerland
&lt;br&gt;Tel +41-44-7392-277 (office), -111(exchange), -215 &amp;nbsp;(fax)
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504161&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian.hoffmann@...&lt;/a&gt;, &amp;nbsp;www.wsl.ch/personal_homepages/hoffmann/
&lt;br&gt;&amp;quot;Jene, die grundlegende Freiheit aufgeben wuerden, um eine geringe 
&lt;br&gt;voruebergehende Sicherheit zu erwerben, verdienen weder Freiheit noch 
&lt;br&gt;Sicherheit.&amp;quot; - Benjamin Franklin
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504161&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Aquamacs-emacs-and-color-of-echo-in-R-console-tp26504161p26504161.html" />
</entry>

</feed>
