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.
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! > - cjkogan111ujligges1234
Does anyone know the basic commands to debug in s plus. I know how to debug in r, but I'm having trouble finding similar tools. Mostly what I want to know is what is the equivalent of the debug() command, and what do I use to move to the next line, and get the values of different variables. Thanks! -cjkogan111 -- View this message in context: http://www.nabble.com/Error-Message-Documentation-tf2283899.html#a9101832 Sent from the R help mailing list archive at Nabble.com.