Skip to content

Error during matrix multiplication

4 messages · s.s.m. fauzi, Jeff Newmiller

#
You need to learn to use the str() function to debug these kinds of problems. And you need to learn to provide data with your code (perhaps with the dput function) so others can reproduce your problem if you want help.

I would guess that you have non-numeric data in your files.
---------------------------------------------------------------------------
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.
"s.s.m. fauzi" <ssmfone at gmail.com> wrote:

            
#
You used neither str() nor dput(), you still haven't provided reproducible code (your code reads csv, but you did not supply csv), and you are posting in html as the posting guide requests that you not do (but you probably didn't read that either). A more verbose description of how to ask a question can be found at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example .
 Hmmm... maybe that is your clue though... if your files actually look like you are showing them, then they are NOT csv files, and you should not be using sep="," or you should re-create them as csv files. But don't guess... read up at the link above and learn how to see what is really going on.
---------------------------------------------------------------------------
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.
"s.s.m. fauzi" <ssmfone at gmail.com> wrote: