Displaying 1 result from an estimated 1 matches for "plate2".
Did you mean:
plate
2010 Feb 01
1
assigning 'default' values
Hi all,
probably something really simple, that I've missed but I'm running this loop
in my Rscript:
<code>
for (i in 1:nrow(cells)){
if(plate == as.character(cells[i,1])){
plate2 <-cells[i,2]}
}
<code>
it's assigning the relevant data correctly as long as plate exists somewhere
in cells[i,1]. The problem is that if it doesn't exist then it retains the
previous value of plate2. I've tried setting it to a default value in a
number of ways, but most have...