I ask to be excused for my ignorance of R which I have been learning for the past one month. Specifically I have downloaded xxx_adm-_RData files (xxx for the country and - being 0, 1 or 2) for a number of countries of interest. My real interest are just the long/lat coordinates of each country, which I can use to overlay on analyses of climate fields like rainfall, temperature, etc. For the past two weeks I have been going through SO posts on how I can access a country's coordinates in an RData file and use them with other data, without any success. My attempts to get google maps or readGR() or readBin() after a download have not been successful. I wonder whether what am asking for is feasible.
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
after putting the rdata file in your working directory, do something like
The rdata loads variable into your workspace so that command will show you what the variable names are, so you can then use them.
I don't have the file you're talking about so I can't tell you how to access the specific fields you need.
edit
Based on your comment: Ok so the object you load is an object of type SpatialPolygonsDataFrame, and that has a Slot/property called Polygons, with objects of type Polygon. Those polygons I assume are the lat lng coordinates around the country. Accessing the coordinates should look something like
then something like