How to select standard deviation within a row? (in SQL - or R :)

前端 未结 4 1183
时光取名叫无心
时光取名叫无心 2020-12-21 04:41

I wonder whether there is a way to select the standard deviation from several integer fields in MySQL within the same row. Obviously, if I use



        
4条回答
  •  囚心锁ツ
    2020-12-21 05:23

    With R:

    df <- your.pull
    sd(t(df[sapply(df, is.numeric)]))
    

    Pull data with RMySQL or RODBC, remove non numeric columns, transpose and use sd.

提交回复
热议问题