Re: [R] Error Message Documentation

2006-09-17 Thread Uwe Ligges
cjkogan111 wrote:
 Hello,
 I am new to R, and trying to work with it. I have a couple of quick
 questions. First, I made a program and got the following error message.
 --
 Error in if (DatMdFile$Time.Value[NmRecord]  VBinTimesMinTop[NmCounter]) {
 : 
 missing value where TRUE/FALSE needed
 In addition: Warning message:
  not meaningful for factors in: Ops.factor(DatMdFile$Time.Value[NmRecord],
 VBinTimesMinTop[NmCounter]) 
 -
 I noticed that one of the values had decimal places, while the other didn't,
 so the comparison would be 11.00  10
 I don't know if that might have anything to do with my problem.

Well, not really the decimal places, but the data type.

 Anyway, I don't have much idea what the error means, and I don't know how to
 check what data type the different vectors are.

So time to start looking at the documentation?
class() is your friend, you might also want to try str().

 I was wondering if anyone could help me out, and also, I was wondering if
 there is any error documentation (stuff that tells what the error means.)

Probably one of your objects is a factor rather than a numeric value.


 Thanks!
 - cjkogan111

ujligges1234

__
R-help@stat.math.ethz.ch 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.


[R] Error Message Documentation

2006-09-16 Thread cjkogan111

Hello,
I am new to R, and trying to work with it. I have a couple of quick
questions. First, I made a program and got the following error message.
--
Error in if (DatMdFile$Time.Value[NmRecord]  VBinTimesMinTop[NmCounter]) {
: 
missing value where TRUE/FALSE needed
In addition: Warning message:
 not meaningful for factors in: Ops.factor(DatMdFile$Time.Value[NmRecord],
VBinTimesMinTop[NmCounter]) 
-
I noticed that one of the values had decimal places, while the other didn't,
so the comparison would be 11.00  10
I don't know if that might have anything to do with my problem.
Anyway, I don't have much idea what the error means, and I don't know how to
check what data type the different vectors are.

I was wondering if anyone could help me out, and also, I was wondering if
there is any error documentation (stuff that tells what the error means.)

Thanks!
- cjkogan111
-- 
View this message in context: 
http://www.nabble.com/Error-Message-Documentation-tf2283899.html#a6344607
Sent from the R help forum at Nabble.com.

__
R-help@stat.math.ethz.ch 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.