search for: cast_test

Displaying 1 result from an estimated 1 matches for "cast_test".

2009 Aug 17
3
Reshape package: Casting data to form a grid
...-90 66.75 NA -87.75 17.10167 NA 6 -90 75.75 NA -87.75 17.10167 NA I'm attempting to form a grid based on the OrigLat, Longitude and Blaney columns, to form the rows, columns and values of the new grid respectively. The command I've been using is: cast_test <- cast(finalframe, finalframe$OrigLat~variable, finalframe$Longitude~variable, finalframe$Blaney~variable) Error: Casting formula contains variables not found in molten data: finalframe$OrigLat, variable And I've tried removing the ~variable suffixes: cast_test <- cast(finalframe, fina...