s-news
[Top] [All Lists]

[no subject]

To: <s-news@wubios.wustl.edu>
Subject:
From: "Abd Rahman Kassim" <rahmank@frim.gov.my>
Date: Fri, 27 Jul 2001 08:20:21 -0700
Dear S-Plus Users,
 
Hi! I am trying to use the "ifelse" command to create a new variable "group". However I received an error message below. It seemed that the variable kod is read as "factors". So I've change the "data type" for kod from "factors" to "double" using the window menu. But the kod value change to new numbers altogether. Can any one advised me to solve this problem.
 

all$group <- ifelse(all$kod < 1404, "D", "ND")

Error in Ops.factor(all$kod, 1404): "<" not meaningful for factors

Thanks
 
Abd. Rahman Kassim

 

 

<Prev in Thread] Current Thread [Next in Thread>
  • [no subject], Abd Rahman Kassim <=