Re: Assign values to existing column in SparkR

2016-09-10 Thread Felix Cheung
h Species 1 5.1 3.5 0 0.2 setosa 2 4.9 3.0 0 0.2 setosa 3 4.7 3.2 0 0.2 setosa 4 4.6 3.1 0 0.2 setosa 5 5.0 3.6 0 0.2 setosa 6 5.4 3.9 0 0.4 setosa _ From: Deepak Sharma <deepakmc...@gmail.com<mailto:deepakmc...@gmail.com>> Sent: Friday, September 9, 2016 1

Re: Assign values to existing column in SparkR

2016-09-09 Thread Deepak Sharma
Data frames are immutable in nature , so i don't think you can directly assign or change values on the column. Thanks Deepak On Fri, Sep 9, 2016 at 10:59 PM, xingye wrote: > I have some questions about assign values to a spark dataframe. I want to > assign values to an

Assign values to existing column in SparkR

2016-09-09 Thread xingye
I have some questions about assign values to a spark dataframe. I want to assign values to an existing column of a spark dataframe but if I assign the value directly, I got the following error.df$c_mon<-0Error: class(value) == "Column" || is.null(value) is not TRUEIs there a way to solve this?