This is a basic question but unfortunately I could not find the relevant command elsewhere.
Is there a way i can convert a Spatial Points Dataframe to an ordinary dataframe in R.
e.g. if the ordinary dataframe is df with Lat, Lon as location coordinates I can obtain a spatial df as:
coordinates (df)= ~Lat + Lon
How is the reverse possible or is it even possible ?
as.data.frame()does just what you are looking for: