Displaying 20 results from an estimated 300 matches similar to: "adding header info to write.table"
2004 Feb 17
4
importing ascii grids (for gstat)
Hello,
Is there anyone who could give me an example of how to import an ascii grid (i.e. ArcGIS exported raster) into R. I want to use it with gstat but don't know the appropriate import routine.
Thanks very much for your help.
Regards,
femke
Femke Reitsma
Graduate Student (ABD)
Geography Department
2181 LeFrak Hall
University of Maryland
College Park, MD 20742
Phone: 301-405-4121
2012 Jul 04
3
Please help
Dear All,
I am a research student in environment. I have only little programming knowledge. I am currently doing the last project about rainfall impact on ground water quality in an area. It happens that I have to use R to read rainfall data (3 dimension) from ASC file (*.asc), and then write them into one NCDF file (*.nc).
I have been working very hard on study R, but I
2005 Aug 15
2
queer data set
I have a dataset that is basically structureless. Its dimension varies
from row to row and sep(s) are a mixture of tab and semi colon (;) and
example is
HEADER1 HEADER2 HEADER3 HEADER3
A1 B1 C1 X11;X12;X13
A2 B2 C2 X21;X22;X23;X24;X25
A3 B3 C3
A4 B4 C4 X41;X42;X43
A5 B5 C5 X51
etc., say. Note that a blank
2008 Jul 28
0
Help with yaImpute
Dear fellow R-users
I am trying to do some imputation using K-NN with the yaImpute library. All seems to be going well until I try to use
AsciiGridImpute. All my data are correctly formatted and I am able to run and view the results of yai. Below is my code:
****************************************************************************************************
library("yaImpute")
data
2012 Mar 26
2
read.csv and field containing single quotes
I need to read in csv files, created by 3rd party, with fields
containing single quotes (as shown below).
"header1","header2","header3","header4"
"field1r1","field2r1","field3r1","field4r1"
"field1r2","field2r2","field3r2PartA), field3r2PartB Very" Long","field4r2"
2004 Feb 18
5
overlay points on plot
Dear R-help list,
I'm trying to overlay a number of data objects in a plot. Following an earlier example on the list I've created an empty plot as follows
> xlim <- range(as.numeric(c("0","10000")))
> ylim <- range(as.numeric(c("0","25")) )
> plot(NA, xlim=xlim, ylim=ylim, xlab="distance", ylab="semivariance")
2004 Feb 08
5
iterating over files in a directory with R
Hello,
I'm an R newbie and was wondering whether there are R commands for iterating over files in a directory. Basically what I want to do is to iterate over many files and apply some R functions to each file seperately.
e.g. for (each file in a directory) do { some R calculation with the info in that file }
Could someone please give me a pointer to how (or if) this might be done with R
2004 Feb 18
2
using names() as a variable in a formula
Greetings List,
I'm having some trouble with the use of the names function in a formula. Below is an example of something that works (i.e first line), and the second line is the same formula which doesn't. I want to be able to reference the column of the dataC table so I can run the variogram iteratively with a loop.
> v<-variogram(A1~1,loc=~x+y, dataC)
>
2008 Nov 05
1
Using RGDAL to "copy" header information...
R-geographers...
I'm trying to solve a problem to implement a line-by-line tiled
processing using RGDAL (read 1 line of an image, process the one line,
write one line of the image to a binary file). Everything except for
the final step I'm able to do using a combination of RGDAL and r-base
commands. Below is the basic structure, the input file "elev" can be
any image file
2007 Apr 18
3
Matrix or grid conversion of spatial data
Dear Happy R-users & experts,
I am in need of advice,
While working with spatial data (x & y coordinates of seed locations) I have come accross the problem that I need to convert my point data into a matrix or grid system. I then need to count how often a point falls into a certain position in the matrix or grid. I have searched all day online, asked collegeas but nothing works.
Sadly
2009 Feb 21
1
Extracting xy from raster based on raster value
I have a raster (which I called glc), which I read
into R as a raster with "raster.create.from.file" from the raster package (R-forge). Values in glc range between 1 and 27 (whole numbers only). I'd like to extract all cells with a value of 1 to create
a new raster with only the cells that have a value of 1, or to extract
the xy values of all raster cells with a value of 1. Could you
2013 Apr 26
1
How to export graph value in R
Dear exports,I have created a hypsometric curve (area-elevation curve) for my watershed by using simple command hypsometric(X,main="Hypsometric Curve", xlab="Relative Area above Elevation, (a/A)", ylab="Relative Elevation, (h/H)", col="blue")It plots the hypsometric curve in "RGraphics window", My question is how can I export values which is used
2010 Sep 24
2
Reading in .aux (ESRI raster files) into R
Dear All,
I'v tried to read in data in numerous ways including:-
Spain10km<-data.frame(readAsciiGrid("F://RMap//sp10kpointid1.aux"))
Error in readAsciiGrid("F://RMap//sp10kpointid1.aux") :
object 'cellsize' not found
In addition: Warning message:
In readLines(t, n = 6) :
incomplete final line found on 'F://RMap//sp10kpointid1.aux'
2011 Jan 05
1
Prediction error for Ordinary Kriging
Hi ALL,
Can you please help me on how to determine the prediction error for ordinary
kriging?Below are all the commands i used to generate the OK plot:
rsa2 <- readShapeSpatial("residentialsa", CRS("+proj=tmerc
+lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1 +x_0=0 +y_0=0
+ellps=intl +units=m +no_defs"))
x2 <- readShapeSpatial("ptna2",
2005 Jun 02
1
DEM calculation
Hello R-World,
i am trying to calculate data for a DEM (Digital Elavation Model) which i
also want to plot in R. i have the coordinates for the lower left corner
which look something like this:
x<-42,2
y<-50,5
besides i have the cellsize of the grid, which is:
z<-1,1
what i do is to calculate the corrdinates of the cells to the right and top,
what i can do by specifying the number of
2010 Oct 19
1
Problems with a specific calculate.
Hello friends of R,
My name is Toni, i'm 25 and I'm working on the Meteorological Investigation team from Balearic Islands.
I had contact to you because I have a problem:
I done a file for every day since 1912 about precipitation. That file has the following structure:
> str(Ast)
Loading required package: sp
Formal class 'SpatialPixelsDataFrame' [package "sp"]
2007 Mar 03
1
R software to place points on Yahoo maps
Is there any R software that create an image from Yahoo maps together
with points of known UTM coordinates (or lat/long marked? Note that
my region of interest is not covered in sufficient detail by Google maps.
It actually does not have to be Yahoo maps as long as it has sufficient
coverage of my region but that's the one I have found with coverage of
my region. The scale I am interested in
2008 Aug 05
4
LIDAR Problem in R (THANKS for HELP)
Hi All,
I am a PhD student in forestry science and I am working with LiDAR data set
(huge data set). I am a brand-new in R and geostatistic (SORRY, my
background it?s in forestry) but I wish improve my skill for improve myself.
I wish to develop a methodology to processing a large data-set of points
(typical in LiDAR) but there is a problem with memory. I had created a
subsample data-base but
2012 Dec 17
2
looping through spatial points and getting counts of spatial points in spatial grid in R
Hi,
I am stuck in a looping problem. It might be an easy problem for experienced R users but I have been unable to do it. Any kind of help or advice will be great appreciated.
I am creating a spatial grid and have a list of spatial points in a folder. I can read the spatial points separately and get a count of the points in the spatial grid in R. The output should be a table showing the counts of
2007 Jun 10
1
variable scope
caveat: I haven't either read actionscript language spec nor really
got through swfdec context, frame and such. This is fully based on
blocky.swf code inspection.
thanks to flare, i can extract the below beautiful code. You don't
need to understand the whole thing but there is one thing to notice:
border[XY]start are initialized in on(press) and get used in
on(release). Currently swfdec