Using R convert data.frame to simple vector

后端 未结 3 826
醉话见心
醉话见心 2020-12-03 11:35

I have this data.frame:

> print(v.row)
    X1  X2  X3  X4  X5  X6  X7  X8  X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24
57          


        
3条回答
  •  有刺的猬
    2020-12-03 11:52

    I had this data frame from csv

    x <- as.numeric(dataframe$column_name)
    

    worked great. (same with dataframe[3], 3 being my column index didn't work)

提交回复
热议问题