a1 <- subset(a, a$Tarsus!="NA")
print("sd of Tarsus: ")
as.double(a1)
# sd(a1) # bug
Error: ‘list’ object cannot be coerced to type ‘double’
Execution halted
本文描述了在R语言中尝试将含有非缺失值(Tarsus不等于NA)的子集a1转换为双精度数时遇到的错误,指出list对象不能直接转换为double类型,导致程序中断。
a1 <- subset(a, a$Tarsus!="NA")
print("sd of Tarsus: ")
as.double(a1)
# sd(a1) # bug
Error: ‘list’ object cannot be coerced to type ‘double’
Execution halted
1971
1030

被折叠的 条评论
为什么被折叠?