I realize that this is terribly basic, but I just don't seem to see it at this
moment, so I would very much appreciate your help.
How shall I transform this dataframe:
> df1
Name Index Value
1 a 1 0.1
2 a 2 0.2
3 a 3 0.3
4 a 4 0.4
5 b 1 2.1
6 b
Dear R Helpers,
I am missing something very elementary here, and I don't seem to get it from
the help pages of the ave, seq and seq_along functions, so I wonder if you
could offer a quick help.
To use an example from an earlier post on this list, I have a dataframe of this
kind:
dat = data.fr
f distance). In this way the value listed after the last entry in
cluster 1 will be the closest in distance to the members of cluster1.
Can I use only the results of these functions (and how), or do I need to do
other data manipulation (and if so what exactly) to make sure the output
compli
To all of you who answered me: Thank you so much!
Each approach taught me something new and I really appreciate your help!
Best regards,
Dana Sevak
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
olumn, I think I could accomplish
this with:
df2 = reShape(df.index$X1, id=df.index$Name, colvar=df.index$Index)
colnames(df2) = c("V1", "V2", "V3")
However, is there a way to get to df2 without using the Index column and still
have the NAs written as described
5 matches
Mail list logo