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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -