📜  r - transform as facto - R 编程语言代码示例
📅  最后修改于: 2022-03-11 14:52:01.395000             🧑  作者: Mango
代码示例1
df$myvar <- as.numeric(as.character(df$myvar))
df$myvar <- as.factor(df$myvar)