Re: [R] Writing program for these

2011-01-27 Thread Ben Bolker
s that we are taking away. > #or > #y<-z[-c(1:100,901:1000)] > mean(y) > > -- > From: "Ben Bolker" > Sent: Thursday, January 27, 2011 2:24 PM > To: > Subject: Re: [R] Writing program for these > >> Ben Boyadjian hotmail.com> writes: >> >&

Re: [R] Writing program for these

2011-01-27 Thread Siri Bjoner
Siterer "Sascha Vieweg" : On 11-01-27 14:24, Ben Bolker wrote: Ben Boyadjian hotmail.com> writes: Double post? Yes, probably just hoped that if he changed the subject someone would do his homework for him... __ R-help@r-project.org mailing

Re: [R] Writing program for these

2011-01-27 Thread Sascha Vieweg
On 11-01-27 14:24, Ben Bolker wrote: Ben Boyadjian hotmail.com> writes: Double post? Hello I am trying to solve these problems and I am not allowed to use loops or ifs. 1st Question My first question is that I have generated 100 random numbers from the uniform distribution then A)add o

Re: [R] Writing program for these

2011-01-27 Thread Ben Bolker
Ben Boyadjian hotmail.com> writes: > > Hello I am trying to solve these problems and I am not allowed to use loops or ifs. > > 1st Question > My first question is that I have generated 100 random numbers from the uniform distribution then > A)add only the negative integers. > B)add elements u

[R] Writing program for these

2011-01-27 Thread Ben Boyadjian
Hello I am trying to solve these problems and I am not allowed to use loops or ifs. 1st Question My first question is that I have generated 100 random numbers from the uniform distribution then A)add only the negative integers. B)add elements until the first appearance of a negative element.