Re: [R] How to create gridded data

2019-03-25 Thread David L Carlson
m: lily li Sent: Monday, March 25, 2019 1:18 AM To: David L Carlson Cc: r-help Subject: Re: [R] How to create gridded data Now I have new question about this post. If the grid coordinates in DF1 are not complete, i.e. there are missing coordinates, how to fill these with -99 in the exported

Re: [R] How to create gridded data

2019-03-24 Thread lily li
-- > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77843-4352 > > From: lily li > Sent: Tuesday, November 13, 2018 10:50 PM > To: David L Carlson > Cc: Sarah Goslee ; R mailing list < > r-help@r-project

Re: [R] How to create gridded data

2018-11-15 Thread David L Carlson
p;M University College Station, TX 77843-4352 From: lily li Sent: Tuesday, November 13, 2018 10:50 PM To: David L Carlson Cc: Sarah Goslee ; R mailing list Subject: Re: [R] How to create gridded data Thanks, Sarah's answer helps the question. Now how to change the gridded data back to

Re: [R] How to create gridded data

2018-11-14 Thread MacQueen, Don via R-help
gt; Texas A&M University > College Station, TX 77843-4352 > > > -Original Message- > From: R-help On Behalf Of Sarah Goslee > Sent: Tuesday, November 13, 2018 8:16 AM > To: lily li > Cc: r-help > Subject: Re: [R] How to

Re: [R] How to create gridded data

2018-11-13 Thread lily li
3.2 5.0 1.8 2.0 > > > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77843-4352 > > > -Original Message- > From: R-help On Behalf Of Sarah Goslee > Sent: Tuesday, Nov

Re: [R] How to create gridded data

2018-11-13 Thread David L Carlson
- David L Carlson Department of Anthropology Texas A&M University College Station, TX 77843-4352 -Original Message- From: R-help On Behalf Of Sarah Goslee Sent: Tuesday, November 13, 2018 8:16 AM To: lily li Cc: r-help Subject: Re: [R] How to create gridded

Re: [R] How to create gridded data

2018-11-13 Thread Sarah Goslee
If you want an actual spatial dataset, the best place to ask is R-sig-geo R has substantial capabilities for dealing with gridded spatial data, including in the sp, raster, and sf packages. Here's one approach, creating a SpatialGridDataFrame, which can be exported in any standard raster format u

Re: [R] How to create gridded data

2018-11-13 Thread S Ellison
er 2018 07:22 > To: R mailing list > Subject: [R] How to create gridded data > > Hi R users, > > I have a question about manipulating data. For example, I have DF1 as the > following, how to transform it to a gridded dataset DF2? In DF2, each value > Precip is an attri

Re: [R] How to create gridded data

2018-11-13 Thread Jim Lemon
Hi lily, Something like this should work: DF1<-read.table(text= "latitude longitude Precip 45.5 110.5 3.2 45.5 1115.0 45.5 111.5 1.8 45.5 1122.0 46 110.5 6.1 46 1114.5

[R] How to create gridded data

2018-11-12 Thread lily li
Hi R users, I have a question about manipulating data. For example, I have DF1 as the following, how to transform it to a gridded dataset DF2? In DF2, each value Precip is an attribute of the corresponding grid cell. So DF2 is like a spatial surface, and can be imported to ArcGIS. Thanks for your