search for: behavior_therapy

Displaying 1 result from an estimated 1 matches for "behavior_therapy".

2008 Mar 14
2
problems creating data frames
...ssume I just don't understand the proper R way of doing things. The first situation is I have an set of uneven data vectors. When I try to use them to create a data frame I would like the bottoms of them padded with NAs, without explicitly specifying that. When I do: anxiety.data = data.frame(Behavior_Therapy = c(6, 7, 6, 5, 5, 5, 7, 8, 9, 6, 6, 7), Atenolol = c(4, 8, 10, 3, 6, 5, 6, 3, 7, 5, 4, 6), Placebo = c(0, 7, 0, 7, 0, 7)) It duplicates the values for Placebo twice. I can correct this by doing: anxiety.data = data.frame(Behavior_Therapy = c(6,...