R Warning: Mistake in factor

后端 未结 2 519
傲寒
傲寒 2021-01-06 22:56

My R code is:

means_log_adj <- aggregate(lab_data[,delta_touse], 
    by = list(
        factor(mydata_adj$Response_EP, labels = c(\"non_responder\", \"re         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 23:13

    Adding to Andrie on Jun 20 '11 at 12:48

    In the example provided as:

    factor(x)
    [1] a b c d e
    Levels: a b c d e 
    

    count the number of levels in the result set. Here there are 5 so you can set your ratio to 1:5. This works well when executing bubbleMap's key.entries variable. When I get this error, the first thing I do is what was prescribed by Andrie and update the ratio with the number of levels displayed.

提交回复
热议问题