Re: [R] Anyone can help with this question

2010-11-16 Thread Jonathan P Daily
> > [R] Anyone can help with this question > > Mariana > > to: > > r-help > > 11/16/2010 02:22 PM > > Sent by: > > r-help-boun...@r-project.org > > > Hi there: > I am a total beginner in R, and I have a simple question: > I ha

Re: [R] Anyone can help with this question

2010-11-16 Thread Henrique Dallazuanna
Try this: DF[sample(seq(nrow(DF)), 1000),] Where DF is your data On Tue, Nov 16, 2010 at 3:13 PM, Mariana wrote: > > Hi there: > I am a total beginner in R, and I have a simple question: > I have a table with thousands of lines that represent locations, and two > columns: latitude and longitud

Re: [R] Anyone can help with this question

2010-11-16 Thread David Winsemius
On Nov 16, 2010, at 12:13 PM, Mariana wrote: Hi there: I am a total beginner in R, Time to read the Posting Guide. (Especially since Nabble appears to deficient in providing an introductory document, at least judging from the email behavior of some of its users.) and I have a simple q

[R] Anyone can help with this question

2010-11-16 Thread Mariana
Hi there: I am a total beginner in R, and I have a simple question: I have a table with thousands of lines that represent locations, and two columns: latitude and longitude. I need to randomly sample 1000 lines. How do I do it? I know the command "sample", but it samples elements independently, no