r - Extracting environmental variables at coordinates -


i using r , trying create dataframe containing information on environmental variables @ coordinates (x,y).

currently working matrix altitude data. in form long, lat, altitude.

and spatial points data frame containing x,y coordinates

i have tried use extract function in form:

xyalts <- extract(altvals,xypoints) 

however keep getting error:

error in (function (classes, fdef, mtable)  :    unable find inherited method function ‘extract’ signature ‘"matrix", "spatialpointsdataframe"’ 

can suggest why not work? can extract function not used spatial point data frames?


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -