Displaying 2 results from an estimated 2 matches for "g49".
Did you mean:
49
2009 Jul 31
1
scale subsets of grouped data in data frame
...ex for the attrribute name.)
I can do this in R with a lot of code and manual steps. It would be
really nice to find a more automated way.
My data looks like this
group group_height group_weight height weight
g22 3.2 8.896 3.2 8.896
g22 2.5 6.95 2.5 6.95
g22 3.1 8.618 3.1 8.618
g49 2.4 6.672 2.4 6.672
g49 4.2 11.676 4.2 11.676
g49 2.5 6.95 2.5 6.95
g55 2.6 7.228 2.6 7.228
g55 3.4 9.452 3.4 9.452
g55 3.3 9.174 3.3 9.174
What I want to do is scale the data by each group
So in pseudo-code
for(group in groups){
if(column_name = regex(grou...
2006 Feb 24
3
Sorting alphanumerically
I'm trying to sort a DATAFRAME by a column "ID" that contains
alphanumeric data. Specifically,"ID" contains integers all preceeded
by the character "g" as in:
g1, g6, g3, g19, g100, g2, g39
I am using the following code:
DATAFRAME=DATAFRAME[order(DATAFRAME1$ID),]
and was hoping it would sort the dataframe by ID in the following manner
g1, g2, g3, g6, g19,