[R] arules - getting transaction data in

2008-03-17 Thread Amnon Melzer
Hi All Hoping someone can help me with the "transactions" object. I am struggling to get my data in. I know the answer is in the help somewhere I'm sure, I just cannot find it. Essentially, I have data in this format (though I can change it if it particularly unsuitable) Transaction_id, store

[R] ftable and xtabs

2008-03-12 Thread Amnon Melzer
Hoping someone can help me with xtabs and ftable. I'm trying to get a pair of ftables (possibly more) next to each other. For example: > dunhill_lights_xtab<-ftable(xtabs(grossedupobs ~ gender+age_group + dunhill_lights, data = ciggs)) > dunhill_lights_xtab dunhill_lights

[R] tree() producing NA's

2008-02-11 Thread Amnon Melzer
Hi Hoping someone can help me (a newbie). I am trying to construct a tree using tree() in package tree. One of the fields is a factor field (owner), with many levels. In the resulting tree, I see many NA's (see below), yet in the actual data there are none. > rr200.tr <- tree(backprof ~

[R] tree() producing NA's

2008-02-10 Thread Amnon Melzer
Hi Hoping someone can help me (a newbie). I am trying to construct a tree using tree() in package tree. One of the fields is a factor field (owner), with many levels. In the resulting tree, I see many NA's (see below), yet in the actual data there are none. > rr200.tr <- tree(backprof ~