Re: [R] My function and NA Values Problem

2017-10-27 Thread Engin YILMAZ
Thanks SEZEN and BERGER Now it is working. My mistake <- I have written this statement (na.rm=TRUE) to the wrong location (after the sum expression) Thanks for your kindly responses Sincerely Engin YILMAZ 2017-10-27 10:57 GMT+03:00 Ismail SEZEN : > > > On 27 Oct 2017, at 10:43, Engin YILMAZ

Re: [R] My function and NA Values Problem

2017-10-27 Thread Ismail SEZEN
> On 27 Oct 2017, at 10:43, Engin YILMAZ wrote: > > Dear R Staff > > My working file is in the annex. "g1.csv" > I have only 2 columns. Rice and coke. > I try to execute following(below) function, but do not work. > Because "Coke" value has NA values. > I try to add "na.rm=True" to the function

Re: [R] My function and NA Values Problem

2017-10-27 Thread Eric Berger
na.rm=TRUE (you need to capitalize) On Fri, Oct 27, 2017 at 10:43 AM, Engin YILMAZ wrote: > Dear R Staff > > My working file is in the annex. "g1.csv" > I have only 2 columns. Rice and coke. > I try to execute following(below) function, but do not work. > Because "Coke" value has NA values. >

[R] My function and NA Values Problem

2017-10-27 Thread Engin YILMAZ
Dear R Staff My working file is in the annex. "g1.csv" I have only 2 columns. Rice and coke. I try to execute following(below) function, but do not work. Because "Coke" value has NA values. I try to add "na.rm=True" to the function but do not work How can I solve this problem with this function or