Re: [R] Help with for loops and if statements

2020-09-24 Thread PIKAL Petr
Hi And above what Jim suggested, count is only a placeholder for results of tasks a-d. Cheers Petr > -Original Message- > From: R-help On Behalf Of Dan Bosio > Sent: Wednesday, September 23, 2020 11:00 PM > To: r-help@r-project.org > Subject: [R] Help with for loops an

Re: [R] Help with for loops and if statements

2020-09-24 Thread Jim Lemon
Hi Dan, This list has a "no homework" policy, but as you really do seem to be struggling, I'll suggest that you read the help page for "abs" carefully and learn about "<-" (assign a value). Perhaps these will give you a start. Jim On Thu, Sep 24, 2020 at 6:19 PM Dan Bosio wrote: > > Hi there > >

[R] Help with for loops and if statements

2020-09-24 Thread Dan Bosio
Hi there I am in an intro to R course and the professor has not been much help. One of the questions on the latest homework has me stumped. The question is below, along with my answers so far. 8. [15 points] Given the following code, # # x <- rnorm(10) # # Do the following. # # (1) create a cou