Displaying 19 results from an estimated 19 matches similar to: "extract function extracting only NA values"
2010 Jan 25
4
R Output and ArcGIS
Dear all,
I've been using R on a Mac to process some data for export to ArcMap GIS (which only runs on Windows). ArcMap seems to require tab-delimited data (my data are in 3 columns), so I've been using the sep="\t" argument. However, this resulted in strange end-of-line characters when displayed on a PC. I looked in the write.table help file to find that eol="\r\n"
2008 Jul 09
3
rbinom for a matrix
I have a large matrix full of probabilities; I would like to convert each
probability to a 1 or a 0 using rbinom.
How can I do this on the entire matrix? The matrix was converted from a
raster ArcMap dataset, so the matrix is essentially a map. Because of this,
I have no column headings.
Thanks!
--
View this message in context: http://www.nabble.com/rbinom-for-a-matrix-tp18366867p18366867.html
2008 Jul 16
2
gstat problem with lidar data
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080716/338e44b9/attachment.pl>
2009 Oct 19
1
Spatstat: xy binary data into mask type to use in owin(mask=)
Dear users,
I am trying to export polygons from Arcmap into Spatstat to run some
simulations using functions available in Spatstat package.
One particular area to be exported is formed by a number of polygons
defining the external boundaries of the area (as a groups of islands) and a
number of polygons inside the previous ones, as ?holes? not to be
considered as part of the area.
I have
2010 Mar 05
1
hier.part
Hi everyone,
A beguinner question.
- How shall i import 9 different ascii (created from a gis layer (arcmap
grid)) into R to create a single dataframe for using in hier.part?
Should i use read.table, then turn each created object into a single vector
using unlist and finally use data.frame to joint all the vectors into a
unique data frame (xcan in the usage of hier.part) ?
I´ve been trying to
2004 Apr 29
1
R-crash using read.shape (maptools)
Hi List,
I am trying to read a large shapefile (~37,000 polys) using read.shape [winxp, 1gig ram, dellbox). I receive the following error:
AppName: rgui.exe AppVer: 1.90.30412.0 ModName: maptools.dll
ModVer: 1.90.30412.0 Offset: 0000309d
The getinfo.shape returns info, and the shapefile is readable in arcmap.
Any ideas on how to overcome this?
Thanks Herry
2016 Apr 22
2
Unexpected values obtained when reading in data using ncdf and ncdf4
Dear R Users,
I am encountering a problem when reading nc files into R using the ncdf and ncdf4 libraries. The nc files are too large to attach an example (but if someone is interested in helping out I could send a file privately via an online drive), but the code is basic:
for(i in 1:length(thesenames[,1])){
data <- nc_open(paste(INDIR, thesenames[i,c("wholename")],
2013 Apr 30
2
task percentage completion
Dear All,
Is it possible to add a percentage completion bar to R? I find it
frustrating when running long calculations that I don't know at what
point the process is. It would be very helpful so I am not guessing if I
should wait a few minutes or hours.
2008 Jul 18
3
"Spreading risk" in a matrix
I have a binary matrix that represents a map of invasive species risk (1 =
infested; 0 = uninfested). It started as a matrix of probabilities
(developed in ArcMap) that I converted to binary with this R code:
binary.matrix<-matrix(rbinom(length(prob.matrix),prob=prob.matrix,size=1),nrow=nrow(prob.matrix))
Now, I would like to "spread" the risk for year 2 of the invasion. I'd like
2016 Apr 22
0
Unexpected values obtained when reading in data using ncdf and ncdf4
On Fri, Apr 22, 2016 at 1:32 AM, Louise Mair <louise.mair at slu.se> wrote:
> Dear R Users,
>
> I am encountering a problem when reading nc files into R using the ncdf
> and ncdf4 libraries. The nc files are too large to attach an example (but
> if someone is interested in helping out I could send a file privately via
> an online drive), but the code is basic:
>
?[...]?
2007 Jan 10
1
map data.frame() data after having linked them to a read.shape() object
Dear all,
I try to first link data in a data.frame() to a (polygon) read.shape()
object and then to plot a polygon map showing the data in the
data.frame. The first linking is called "link" in ArcView and "relate"
in ArcMap. I use the code shown below, though without success.
Help with this would be greatly appreciated.
Thanks!
Tord
require(maptools)
# Read shape file
2012 Aug 13
4
write.dbf error: invalid subscript type 'list'
Dear all,
I am basically a GIS user and am new to R.
I am trying to write a data frame to a dbf file.
*n.simulations <- 999
binomial <- kulldorff(geo, cases, population, NULL, pop.upper.bound,
n.simulations, alpha.level, plot)
cluster <- binomial$most.likely.cluster$location.IDs.included
df <- data.frame(ID=seq(1,n.simulations,by=1),
simloglkhd=binomial$simulated.log.lkhd)
2013 May 15
1
stack object layer names not visible
I use to be able to see the layer names of a RasterStack by just typing
its name but now I only get this
class : RasterStack
dimensions : 70, 180, 12600 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -80, 10, 50, 85 (xmin, xmax, ymin, ymax)
coord. ref. : NA
If I do plot(s) then I can see all the layers and their names.
Why is this happening?
2013 Apr 18
1
find lowest AIC of a LM
hello all,
I have a simple linear model with 4/5 variables that I am trying to fit.
I would like to find the lowest AIC value with any combination of all
the variables. I would like to implement this with a while/for loop.
Possibly I would like to generalize this so then I can use it when I
have many more variables. I do not want to use step AIC. At the moment I
am doing it manually but I
2006 Jan 27
0
Any ESRI users? Upgrade 3.0.14 to 3.0.21a broke Arcmap layer loading?
We just upgraded our samba server from 3.0.14 to 3.0.21a and have discovered
a subtle but very painful problem.
Users of ESRI ArcMap (on fully patched Windows XP clients) are unable to
read complex layered file data.
Arcmap works fine with 3.0.14, it works fine with the data on a windows
share, and it works fine when I set up a server to run the version of samba
shipping with Solaris 9 (3.0.2! ).
2006 Jan 30
1
SOLVED was Re: Any ESRI users? Upgrade 3.0.14 to 3.0.21a broke Arcmap layer loading?
Did not hear from anyone on this, so maybe we are the only ESRI users who
got bit, but this turned out to be an issue with oplocks. Disabling oplocks
on the server eliminated the problem.
On 1/27/06, Elizabeth Schwartz <betsy.schwartz@gmail.com> wrote:
>
> We just upgraded our samba server from 3.0.14 to 3.0.21a and have
> discovered a subtle but very painful problem.
> Users of
2009 Apr 09
1
reading an image and adding a legend
Hi all,
I would like to
1. Read in an arcmap image into R (I can export pretty much any type of image jpeg, bitmap etc from arcmap)
2. Use R to create a nice colour legend in the plot
First of all, Is this possible?
So far I'm stuck on point 1. I have tried read.pnm() from pixmap and read.jpeg() from rgl.
the pnm example provided works fine
x <-
2008 Oct 24
0
Weighted LSCV 2d kernel smoothing
R List,
I am seeking help in the area of kernel smoothing. I am attempting to use LSCV values to conduct 2d and weighted 2d kernel smoothing (imported from an ArcMap shapefile), and have been unable to find tools to conduct such analysis in R. My biggest problem is determining the LSCV value and finding a tool that does weighted smoothing, as there are obviously many different packages that will
2013 Mar 14
1
How to copy current line in Tinn-R
Hello All,
A very simple question about Tinn-R. I am able to use the send line
shortcut, but I want to be able to just copy the current line to the
clipboard and then paste in the current document or somewhere else.
It's so tedious to select the whole line and then copy it.
Thanks