Re: [R] Banner using R

2019-01-15 Thread David L Carlson
tor w/ 3 levels "v1","v2","v3": 1 1 1 1 1 2 2 2 2 2 ... Then table (or xtabs) will work: > Data.tbl <- table(Data.stack) > addmargins(Data.tbl, 2) ind values v1 v2 v3 Sum A 2 3 5 10 B 3 2 0 5 ------------ D

[R] Banner using R

2019-01-15 Thread Luca Meyer
Hi, I am a bit rusty with R programming and I would appreciate some assistance with the following. I have a dataset like: Data <- data.frame(v1 = c('A', 'B' ,'B' ,'A', 'B'), v2 =c('A', 'B', 'A', 'A', 'B'), v3 = c('A', 'A', 'A', 'A', 'A’)) How can I get a banner of the sort? Count v1 v