this is pre-data
Name type cnt
Jay A 1
Jay B 2
John A 3
John B 6
how to set the data like this
Name A B
Jay 1 2
John 3 6
data.frame() is not wokring as I expect. any idea?
here is my data for real
Name type cnt
1 Anne A 30
2 Barbara A 15
3 Ben A 21
4 Cindy A 100
5 Edd A 105
6 Eric A 22
7 Jacky A 17
8 John A 97
9 Lex A 22
10 Nick A 18
11 Paul A 100
12 DoIt B 66
13 FixIt B 66
14 Anne C 185
15 Barbara C 88
16 Ben C 4
17 Eric C 4
18 Jacky C 92
19 Lex C 7
20 Nick C 3