KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have returned stats on my data using the table command as such: subject<-c(4,4,2,2,3,3) correct<-c(0,1,1,1,0,0) test<-data.frame(subject,correct) freq_test<-head(table(test$subject,test$correct)) This returns a table which looks like this 0 1 2 0 2 3 2 0 4 1 1 That's great, but the problem is that I would like, the first column to be a vector rather than row.names (so that I can code it properly as "subject"). Is there a way to get this column to act in this way?
Tags (comma-separated)
Save Edits
Cancel