[R] Question about error message

David L Carlson dcarlson at tamu.edu
Wed Jun 29 16:19:54 CEST 2011


I'd guess that "filename" is not a matrix nor something that can be coerced
into a matrix. Try 

> class(filename)

To find out if it is a matrix. Without knowing more about "filename" it is
hard to diagnose. It could be a data.frame with a character field or some
other simple issue resulting from importing the data into R.

> str(filename) 

Will list the fields in the "filename" and their type. For norm they must
all be numeric.

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of David Kaplan
Sent: Tuesday, June 28, 2011 3:22 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Question about error message

Greetings,

I'm getting this error message using Joe Shafer's "NORM" package.

Error in storage.mode(x) <- "double" :
   (list) object cannot be coerced to type 'double'

I'm not sure what this means.


I get this message when running

  s <- prelim.norm(filename)

prelim.norm is used to develop some summary statistics, etc. before 
implementing the EM algorithm for missing data.  Please note that this 
is a data fusion exercise and there is considerable amounts of missing 
data by design.

Thanks in advance,

David

-- 

=======================================================================
David Kaplan, Ph.D.
Professor
Department of Educational Psychology
University of Wisconsin - Madison
Educational Sciences, Room, 1082B
1025 W. Johnson Street
Madison, WI 53706

email: dkaplan at education.wisc.edu
homepage:
http://www.education.wisc.edu/edpsych/default.aspx?content=kaplan.html
Phone: 608-262-0836
=======================================================================




	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list