1
初心者くさい適用するために、複数のarguementsに渡す - その後、私は好きだろうか....助けてイマイチgoogleのいくつかの基本的な構文を把握することができないと言葉の共通ネスを与えられたのここ/ sapply sytnax
mtcars$testcol = 'testing'
imgood = sapply(mtcars, IQR, na.rm=T) #works ok... helpme =
sapply(mtcars, quantile c(.3,.9, .95, na.rm=TRUE) #don't know how to
を行うには
はまた、私は、summarise_allとdplyr :: あるTHER summarise_eachを見てきた... sapply /適用とパラメータのちょうどmtcars$mynewcolumn = imgood....etc
パスですこれがここで働く方法?
サプリー(mtcars、function(x){ quantile(x、c(.3、.9、.95、na.rm = TRUE)) }) '' '? – Abdou
これは誤字です。あなたはコンマ 'サプリーがありませんでした(mtcars、quantile、c(.3、.9、.95、na.rm = TRUE))' –
これは、上記のように数値ではない列に追加するまで機能します。私は----サプリー(mtcars、function(x){ifelse(is.numeric(x)、quantile(x、c(.3、.9、na.rm = TRUE))、 'xxx' })----しかし、私はマルチプル値の出力を得ません – scbears88