趣天学塘 QTXT

随性、随时、随心
点点滴滴的生活记录
在寻找诗和远方的路上
一手机、一相机、一电脑、一本书、一个人、一世界、一生
@ since 2012
Attitude Determines Altitude!

© 趣天学塘 QTXT | Powered by LOFTER

Hello Code 004-mutate新建列之加减乘除

>df_train <- mutate(df, df_train_sixgenes$scores = df_train_sixgenes$PMCH*( -0.6294544) + df_train_sixgenes$IFNB1*( -0.3168858) + df_train_sixgenes$IGF2*( 0.1835164) + df_train_sixgenes$PYCR1*( -0.3942564))

>df_train_sixgenes$scores <- df_train_sixgenes$PMCH*( -0.6294544) + df_train_sixgenes$IFNB1*( -0.3168858) + df_train_sixgenes$IGF2*( 0.1835164) + df_train_sixgenes$PYCR1*( -0.3942564)

评论