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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -