Displaying 1 result from an estimated 1 matches for "na13".
Did you mean:
a13
2011 Aug 08
1
Help on reshape2 data frame rearrangement
...9 ........ I have tried a variety of approaches, none of which worked. The following code does not work but suggests the task might be possible, perhaps in 2 steps. Df2 <- dcast (Data1, Length ~ Site, value_var = "Length") Its output is: Length Site 1 Site 210 10 NA13 13 NA14 14 NA.......5 NA 57 NA 79 NA 9 One easy solution is to reshape in Excel and import a new dataframe for use but I would like to do it in R. Any suggestions would be much appreciated. Regards,BJ
[[a...