User Tools

Site Tools


melting_casting_aka_pivoting_data_in_r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

melting_casting_aka_pivoting_data_in_r [2015/07/09 18:05]
vincenzo created
melting_casting_aka_pivoting_data_in_r [2015/07/10 11:43] (current)
vincenzo
Line 14: Line 14:
 </​code>​ </​code>​
  
 +To attach() or not attach(): that is the question. ​
  
 +<code r>
 attach(data.c) attach(data.c)
 data.sorted <- data.c[order(-bid_amount),​ ] data.sorted <- data.c[order(-bid_amount),​ ]
 data.sorted$order <- 1:​nrow(data.sorted) ​ data.sorted$order <- 1:​nrow(data.sorted) ​
 +</​code>​
  
melting_casting_aka_pivoting_data_in_r.txt ยท Last modified: 2015/07/10 11:43 by vincenzo