@@ -845,7 +845,7 @@ setMethod("kurtosis",
845845# ' @note last since 1.4.0
846846setMethod ("last ",
847847 signature(x = " characterOrColumn" ),
848- function (x , na.rm = FALSE , ... ) {
848+ function (x , na.rm = FALSE ) {
849849 col <- if (class(x ) == " Column" ) {
850850 x @ jc
851851 } else {
@@ -1289,7 +1289,7 @@ setMethod("round",
12891289# ' @note bround since 2.0.0
12901290setMethod ("bround ",
12911291 signature(x = " Column" ),
1292- function (x , scale = 0 , ... ) {
1292+ function (x , scale = 0 ) {
12931293 jc <- callJStatic(" org.apache.spark.sql.functions" , " bround" , x @ jc , as.integer(scale ))
12941294 column(jc )
12951295 })
@@ -1336,7 +1336,7 @@ setMethod("rtrim",
13361336# ' @note sd since 1.6.0
13371337setMethod ("sd ",
13381338 signature(x = " Column" ),
1339- function (x , na.rm ) {
1339+ function (x ) {
13401340 # In R, sample standard deviation is calculated with the sd() function.
13411341 stddev_samp(x )
13421342 })
@@ -1850,7 +1850,7 @@ setMethod("upper",
18501850# ' @note var since 1.6.0
18511851setMethod ("var ",
18521852 signature(x = " Column" ),
1853- function (x , y , na.rm , use ) {
1853+ function (x ) {
18541854 # In R, sample variance is calculated with the var() function.
18551855 var_samp(x )
18561856 })
@@ -2126,7 +2126,7 @@ setMethod("pmod", signature(y = "Column"),
21262126# ' @note approxCountDistinct(Column, numeric) since 1.4.0
21272127setMethod ("approxCountDistinct ",
21282128 signature(x = " Column" ),
2129- function (x , rsd = 0.05 , ... ) {
2129+ function (x , rsd = 0.05 ) {
21302130 jc <- callJStatic(" org.apache.spark.sql.functions" , " approxCountDistinct" , x @ jc , rsd )
21312131 column(jc )
21322132 })
@@ -2695,7 +2695,7 @@ setMethod("format_string", signature(format = "character", x = "Column"),
26952695# '}
26962696# ' @note from_unixtime since 1.5.0
26972697setMethod ("from_unixtime ", signature(x = "Column"),
2698- function (x , format = " yyyy-MM-dd HH:mm:ss" , ... ) {
2698+ function (x , format = " yyyy-MM-dd HH:mm:ss" ) {
26992699 jc <- callJStatic(" org.apache.spark.sql.functions" ,
27002700 " from_unixtime" ,
27012701 x @ jc , format )
@@ -2744,7 +2744,7 @@ setMethod("from_unixtime", signature(x = "Column"),
27442744# '}
27452745# ' @note window since 2.0.0
27462746setMethod ("window ", signature(x = "Column"),
2747- function (x , windowDuration , slideDuration = NULL , startTime = NULL , ... ) {
2747+ function (x , windowDuration , slideDuration = NULL , startTime = NULL ) {
27482748 stopifnot(is.character(windowDuration ))
27492749 if (! is.null(slideDuration ) && ! is.null(startTime )) {
27502750 stopifnot(is.character(slideDuration ) && is.character(startTime ))
@@ -2787,7 +2787,7 @@ setMethod("window", signature(x = "Column"),
27872787# ' @examples \dontrun{locate('b', df$c, 1)}
27882788# ' @note locate since 1.5.0
27892789setMethod ("locate ", signature(substr = "character", str = "Column"),
2790- function (substr , str , pos = 1 , ... ) {
2790+ function (substr , str , pos = 1 ) {
27912791 jc <- callJStatic(" org.apache.spark.sql.functions" ,
27922792 " locate" ,
27932793 substr , str @ jc , as.integer(pos ))
@@ -3179,7 +3179,7 @@ setMethod("dense_rank",
31793179# ' @note lag since 1.6.0
31803180setMethod ("lag ",
31813181 signature(x = " characterOrColumn" ),
3182- function (x , offset , defaultValue = NULL , ... ) {
3182+ function (x , offset , defaultValue = NULL ) {
31833183 col <- if (class(x ) == " Column" ) {
31843184 x @ jc
31853185 } else {
0 commit comments