Skip to content
Prev 316587 / 398506 Next

For loop on data frame

Your example is not reproducible. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

I would guess you have tabs at the ends of your lines in the input file. This is a fairly common problem when you muck with data in Excel.

To find these problems yourself, learn to examine the objects you create by executing the statements one-to-one and interspersing ?str calls and printing objects so you understand what the code is working with.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Esam Tolba <eatolba at gmail.com> wrote: