Displaying 2 results from an estimated 2 matches for "tp3050933p3054117".
2010 Nov 19
5
how to apply sample function to each row of a data frame?
this is a simple question, but I wasn't able to figure it out myself.
here is the data frame:
M P Q
1 2 3
4 5 6
7 8 9
M, P, Q each represent a variable
I want to draw 2 random sample from each row separately to create a new data
frame. how can I do it?
thanks!!
--
View this message in context:
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...ata
frame?
Message-ID: <1290448597442-3054117.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
I tried it. it works out perfectly. you save my life.
--
View this message in context:
http://r.789695.n4.nabble.com/Re-how-to-apply-sample-function-to-each-row-of
-a-data-frame-tp3050933p3054117.html
Sent from the R help mailing list archive at Nabble.com.
------------------------------
Message: 61
Date: Mon, 22 Nov 2010 10:43:15 -0800 (PST)
From: tomreilly <tomreilly at autobox.com>
To: r-help at r-project.org
Subject: Re: [R] arima
Message-ID: <1290451395576-3054206.post at...