def remove_outliers(df,numeric_features):remove_outliers is a function which removes outliers bymean by 2 standard deviations or below the mean by 2 standard deviationsnumeric_featur
我创建了以下函数,并认为可以轻松地将输出保存在一个新的df中,但不能#create a function to know how many outliers we have in eachmetabolite
p<-table(abs(x)>mean(x,na.rm=T)+4*sd(x,na.rm=T))}
outliers<