我有一个 csv 文件中的数据。当我阅读它时,这些列处于因子级别,我无法进行任何计算。
我使用过, as.numeric(df$variablename)但它为变量呈现了一组完全不同的数据。
as.numeric(df$variablename)
original data in the variable: 2961,488,632, as.numeric output: 1,8,16
csv r dataframe
csv ×1
dataframe ×1
r ×1