1. 理解错误信息 错误信息 "error in xtfrm.data.frame(x) : cannot xtfrm data frames" 明确指出,xtfrm 函数无法直接对数据框(data frame)进行操作。xtfrm 函数主要用于因子(factor)或数值向量(numeric vector)的排序转换,以便在比较或排序中使用。 2. 检查代码上下文 由于您没有直接提供具体的代码段,我将基...
在使用psych::describeBy()的时候,发现报错: Error in xtfrm.data.frame(x) : cannot xtfrm data frames 此外: Warning message: In FUN(data[x, , drop = FALSE], ...) : You were trying to describe a non-nu…
I have got this error twice recently - no idea why, but in the last instance it was solved by changing tibble to data.frame, that is: starwars <- data.frame(starwars) #this made the below command work instead of showing…