Displaying 2 results from an estimated 2 matches for "data_variables".
Did you mean:
data_variable
2008 Aug 07
3
Create new dataframes with dames from dataset...
Hi
I'm wondering if you could save new data frames with in a loop using the
names within the data frame... I.e. If you have a data frame as below
Product Type Test
A One 67
A Two 55
B One 42
A One 55
I would like to generate new dataframes as follow...
A.One (including)
A One 67
A One 55
A.Two (including)
A
2012 Oct 17
2
loop of quartile groups
Greetings R users,
My goal is to generate quartile groups of each variable in my data set. I
would like each experiment to have its designated group added as a
subsequent column. I can accomplish this individually with the following
code:
brks <- with(data_variables,
cut2(var2, g=4))
#I don't want the actual numbers, I need a numbered group
data$test1=factor(brks, labels=1:4)
However, I cannot get a loop to work nor can I get a loop to add the
columns with an appropriate name (ex. quartile_variable). I have tried
multiple different ways...