Re: [R] How to construct a double-entry with variables from a dataset

2016-09-23 Thread ruipbarradas
Hello, Is this what you mean? dat <- data.frame(x = rnorm(100), A = factor(sample(3, 100, TRUE)), B = factor(sample(3, 100, TRUE))) xtabs(~ A + B, dat) Hope this helps, Rui Barradas Citando Andrea Marcela Huerfano Barbosa : Hi everyone, My name is Marcela, I am bachelor student of stat

Re: [R] How to construct a double-entry with variables from a dataset

2016-09-23 Thread Michael Dewey
Dear Marcela Can you clarify what you mean by a double entry table? On 23/09/2016 15:07, Andrea Marcela Huerfano Barbosa wrote: Hi everyone, My name is Marcela, I am bachelor student of statistics. I have a data frame with 59 variables and two of them are categorical and have three levels eac

[R] How to construct a double-entry with variables from a dataset

2016-09-23 Thread Andrea Marcela Huerfano Barbosa
Hi everyone, My name is Marcela, I am bachelor student of statistics. I have a data frame with 59 variables and two of them are categorical and have three levels each one, I would like to construct a double -entry table with this variables, I mean the categorical ones. Any help will be really t