Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
函数sparkR中的Drop列_R_Apache Spark_Sparkr - Fatal编程技术网

函数sparkR中的Drop列

函数sparkR中的Drop列,r,apache-spark,sparkr,R,Apache Spark,Sparkr,假设我想编写一个函数从SparkR数据帧(版本1.6.0)中删除一列: dropColumn目前在dataframe中没有方便的方法来删除列。我认为,在SparkR中实施之前,这将一直有效: dropColumn <- function(df, col) { tempdf <- new("DataFrame", sdf=SparkR:::callJMethod(df@sdf, "drop", col), isCached=FALSE)

假设我想编写一个函数从SparkR数据帧(版本1.6.0)中删除一列:


dropColumn目前在dataframe中没有方便的方法来删除列。我认为,在SparkR中实施之前,这将一直有效:

dropColumn <- function(df, col) {
    tempdf <- new("DataFrame",
          sdf=SparkR:::callJMethod(df@sdf, "drop", col),
          isCached=FALSE)
    tempdf
}
newdf <- dropColumn(inputdf, 'Email')

dropColumn目前在dataframe中没有方便的方法来删除列。我认为,在SparkR中实施之前,这将一直有效:

dropColumn <- function(df, col) {
    tempdf <- new("DataFrame",
          sdf=SparkR:::callJMethod(df@sdf, "drop", col),
          isCached=FALSE)
    tempdf
}
newdf <- dropColumn(inputdf, 'Email')

dropColumn Open JIRA,在DataFrame上实现所需的方法,制作PR?我的意思是,在这里你没什么办法。DataFrame根本没有实现
[[打开JIRA,在DataFrame上实现所需的方法,创建PR?我的意思是,在这里你对此无能为力。DataFrame根本没有实现
[[
dropColumn <- function(df, col) {
    tempdf <- new("DataFrame",
          sdf=SparkR:::callJMethod(df@sdf, "drop", col),
          isCached=FALSE)
    tempdf
}
newdf <- dropColumn(inputdf, 'Email')