Remove column names in a DataFrame
问题 In sparkR I have a DataFrame data . When I type head(data) we get this output C0 C1 C2 C3 1 id user_id foreign_model_id machine_id 2 1 3145 4 12 3 2 4079 1 8 4 3 1174 7 1 5 4 2386 9 9 6 5 5524 1 7 I want to remove C0,C1,C2,C3 because they give me problems later one. For example when I use the filter function: filter(data,data$machine_id==1) can't run because of this. I have read the data like this data <- read.df(sqlContext, "/home/ole/.../data", "com.databricks.spark.csv") 回答1: SparkR made