[R] Banner using R

Luca Meyer |uc@m1968 @end|ng |rom gm@||@com
Tue Jan 15 19:26:02 CET 2019


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	v2	v3	TOT
A		2	3	5	10
B		3	2	0	5

I have tried with xtabs and expss but I do not seem to get what I need...

Thanks,

Luca



More information about the R-help mailing list