Re: [R] Re place only first NA in column

2009-11-03 Thread Erik Iverson
())) -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of bikemike42 Sent: Tuesday, November 03, 2009 2:58 PM To: r-help@r-project.org Subject: [R] Re place only first NA in column Dear All, I am trying to fill in a blank vector (a) with one

Re: [R] Re place only first NA in column

2009-11-03 Thread Steve Lianoglou
Hi, On Nov 3, 2009, at 3:58 PM, bikemike42 wrote: Dear All, I am trying to fill in a blank vector (a) with one value at a time, with the value of the number of rows in a randomized dataset with rowSums=0. Below is the code I've got so far, but what I want to be as the last line is

[R] Re place only first NA in column

2009-11-03 Thread bikemike42
Dear All, I am trying to fill in a blank vector (a) with one value at a time, with the value of the number of rows in a randomized dataset with rowSums=0. Below is the code I've got so far, but what I want to be as the last line is a[1st NA,]=nz such that this will run until all of my NAs are

Re: [R] Re place only first NA in column

2009-11-03 Thread Mike Treglia
Erik and Steve, Thanks again for your help, both solutions do exactly what I need. Cheers, Mike Steve Lianoglou wrote: Hi, On Nov 3, 2009, at 3:58 PM, bikemike42 wrote: Dear All, I am trying to fill in a blank vector (a) with one value at a time, with the value of the number of rows in a