Skip to content
Prev 75299 / 398502 Next

invalid 'mode' of argument?

On Wed, 2005-08-10 at 08:13 -0400, Kang, Sang-Hoon wrote:

            
This error (which is from sum()) seems to come if you have non-numeric
data (factors, character variables etc.). Check that your data are
strictly numeric. Some of the most common cases I've seen are that row
or column names are not read as row and column names but as data rows or
columns.
You shouldn't forge your data: the function handles zeros.

PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

cheers, jari oksanen