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
--
> 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
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
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
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
-
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
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
You might take a look at the reshape package, which switches from 'long' to
'wide' formats and vice versa in a fairly flexible way.
S Ellison
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li
> Sent: 13 November 2018 07:22
> To: R mailing list
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
9 matches
Mail list logo