Random forest IN R under classification

r
random_forest
randomforest

#1

while running random forest in R as a classification model taking 0,1.im getting R Square value as negative.any advice regarding the corrective action


#2

@nehak - Could you please post your code.