I have some work in R, Suppose i have following column data
Lat Lon Var1 Var2 Var3
with the huge number of patterns, since the data are vector i want to change that data into grid matrix. for example
Lon Lon Lon
Lat Var1 Var1 Var1
Lat Var1 Var1 Var1
Lat Var1 Var1 Var1
what is the most effective command in R, thanks