[R] Question in using e1071 svm routine

David Winsemius dwinsemius at comcast.net
Thu Nov 26 04:14:17 CET 2009


On Nov 25, 2009, at 7:54 PM, akal wrote:

>
> Hi all,
>
> I am encountering the same error "Error in if (any(co)) { : missing  
> value
> where TRUE/FALSE needed"
> when i run:model <- svm(databctrain, classesbctrain)
>
> I am not sure what this error means . is it some problem with the  
> dataset ?

How do you propose that we address this question?

>
> Could i get some help ?

-------------- next part --------------

>

Only if you supply sufficient information. Read the Posting Guide  
before reposting, please.

-- 
David
> Thanks,
> Akshatha
>
>
>
> losemind wrote:
>>
>> Hi all,
>>
>> I've got the following error message in using e1071 svm routine...
>>
>> Could anybody please help me?
>>
>> Thank you!
>>
>> ---------------------------------
>> model <- svm(y=factor(mytraindata[, 1]), x=mytraindata[, -1],
>> probability=T)
>> Error in if (any(co)) { : missing value where TRUE/FALSE needed
>> In addition: Warning message:
>> In FUN(newX[, i], ...) : NAs introduced by coercion
>>
>> ______________________________________________
>> 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.
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/Question-in-using-e1071-svm-routine-tp24382208p26522910.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list