Skip to content
Prev 139532 / 398506 Next

problems creating data frames

This should do what you want for the data.frame:
+                          Atenolol = c(4, 8, 10, 3, 6, 5, 6, 3, 7, 5, 4, 6),
+                          Placebo = c(0, 7, 0, 7, 0, 7))
Behavior_Therapy Atenolol Placebo
1                 6        4       0
2                 7        8       7
3                 6       10       0
4                 5        3       7
5                 5        6       0
6                 5        5       7
7                 7        6      NA
8                 8        3      NA
9                 9        7      NA
10                6        5      NA
11                6        4      NA
12                7        6      NA

For the column names, try   check.names=FALSE.
On Fri, Mar 14, 2008 at 4:01 PM, Will Holcomb <wholcomb at gmail.com> wrote: