search for: num_con_biol_rep

Displaying 2 results from an estimated 2 matches for "num_con_biol_rep".

Did you mean: num_con_biol_reps
2005 Oct 03
3
Problem building/checking library that requires input from user
...are just integers), and it gets this info from the user as num_reps <- readline("How many reps do you have... ") num_reps <- as.integer(num_reps) and then loops for(i in 1:num_reps) { #code } HOWEVER, I get this error msg when trying to check/build/install: Error in 1:num_con_biol_reps : NA/NaN argument Presumably this is because R thinks the variable is never initialized before i try to use it as a loop limit... Anyway around this?? I tried initializing the num_reps variable in the code before the readline, but get the same error... Thanks very much in advance, Ken
2005 Oct 03
0
Problem building/checking library that requires input fro m user
...> > > > and then loops > > > > > > for(i in 1:num_reps) > > > { > > > #code > > > } > > > > > > > > > HOWEVER, I get this error msg when trying to check/build/install: > > > > > > Error in 1:num_con_biol_reps : NA/NaN argument > > > > > > Presumably this is because R thinks the variable is never > > > initialized before > > > i try to use it as a loop limit... > > > > > > Anyway around this?? I tried initializing the num_reps > > > variable...