I have a spatial feature object in R.  How do I add a column for each feature  that is an indication of proximity.   in other words, I want to give each object a score on how close it is to other features.   each feature is the ouline of a building.