Closed li-xuyang28 closed 1 year ago
When trying to apply case weight (which is a column of the input data.frame, that is of type numeric), the following error occur:
Error in get.weight(case.wt, subj.unique.count) : 'list' object cannot be coerced to type 'double'
If I check the input column, it is indeed numeric
class(data.rfsrc$weights) [1] "numeric"
There is no missing value and it runs normally without class.wt.
When trying to apply case weight (which is a column of the input data.frame, that is of type numeric), the following error occur:
Error in get.weight(case.wt, subj.unique.count) : 'list' object cannot be coerced to type 'double'
If I check the input column, it is indeed numeric
There is no missing value and it runs normally without class.wt.