I have above table containing latitude and longitude values, But latitudes are in column & longitudes are in row, I want both in column wise and with their corresponding values
I have above table containing latitude and longitude values, But latitudes are in column & longitudes are in row, I want both in column wise and with their corresponding values
Could you add the desired output? I guess you can use reshape package.
library(reshape)
df <- read.table("your_file")
result <- melt(df, id = c("name"))