r - Error: length(cols) > 0 is not TRUE on SparkR agg function -


i try group dataframe column:

>sparkr::agg(sparkr::groupby(df, "column_1")) 

why following error:

error: length(cols) > 0 not true 

i found out kind of error (see one) relates parameters provided function (here: agg). missed specifying output column:

sparkr::agg(sparkr::groupby(df, "column_1"), "column_1") 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -