Re: [R] Re: how to add a column with string values to a data frame while still converting them to factors

2005-04-27 Thread Uwe Ligges
avneet singh wrote: i got the first part: agm.data$ProdCategory=as.factor(agm.data$ProdCategory) the second i am still struggling with For the second part, see ?is.na. Uwe Ligges On 4/26/05, avneet singh [EMAIL PROTECTED] wrote: I have 2 questions. In essence i am trying to create product

Re: [R] Re: how to add a column with string values to a data frame while still converting them to factors

2005-04-27 Thread Petr Pikal
Hi On 26 Apr 2005 at 16:18, avneet singh wrote: i got the first part: agm.data$ProdCategory=as.factor(agm.data$ProdCategory) the second i am still struggling with ?is.na is.na(whatever) is what you probably want. Cheers Petr On 4/26/05, avneet singh [EMAIL PROTECTED] wrote:

[R] Re: how to add a column with string values to a data frame while still converting them to factors

2005-04-26 Thread avneet singh
i got the first part: agm.data$ProdCategory=as.factor(agm.data$ProdCategory) the second i am still struggling with On 4/26/05, avneet singh [EMAIL PROTECTED] wrote: I have 2 questions. In essence i am trying to create product categories based on product description and have it as an