Displaying 20 results from an estimated 600 matches similar to: "Faster union of polygons?"
2011 Sep 06
2
Sweave : some comments disappear
Dear R-helpers,
when I have an R code chunk in a sweave file like this:
<<>>=
x <- 1:10
# this comment disapears
x
# this one does not!
print(x)
#mean
mean(x)
@
The first comment does not appear in the sweaved document, the second
one does. How can this be?
I have tried print=TRUE and keep.source=TRUE, but neither seem to
affect this behavior.
thanks,
Remko
2023 Feb 22
1
Restored mail folders conflict with renamed original ones
On 22/2/2023 2:30 ?.?., Aki Tuomi wrote:
> Can you please try
>
> doveadm exec imap -u username_of_the_user
> 1 LIST "" "*"
>
> and see if it is there?
Here is the output:
# doveadm exec imap -u userx
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT
MULTIAPPEND
2009 Aug 19
2
RGoogleDocs/RCurl through proxy
Dear list,
I am trying to use RGoogleDocs, but I am connecting through a proxy server.
I know RCurl is used for the connection, which should be able to deal
with proxies and such.
How do I set this up for RCurl? And can I use those settings with
RGoogleDocs as well?
I have the name of the proxy server and the port number.
(Windows XP).
thanks,
Remko
2010 May 09
1
Plot polygon in 3D with rgl
Dear R-helpers, an rgl-ers in particular,
what is the easiest way to plot a section of a plane in 3D, that is
given by the xyz coordinates of the outline?
Suppose I have a polygon - which I know for sure is a set of
coordinates on the same plane. One method I found is to use surf.tri
from the geometry package, and then plot the triangles with
rgl.triangles. This method is not perfect though,
2010 Oct 25
2
R-Fortran question (multiple subroutines)
Dear R-helpers,
apologies if this is somewhere in a manual, I have not been able to
find anything relevant. I run Windows Vista.
I have some Fortran code in a subroutine, and have no problem calling
this from R with .Fortran, compiling the code either with 'R CMD
SHLIB' or independently with gfortran.
But is it possible to have more than one subroutine in my source file,
one depending
2009 Dec 01
4
Is there a function to test if all the elements in a vector are unique
length(unique(c(1,2,2)))==length(c(1,2,2))
I use the above test to test if all the elements in a vector are
unique. But I'm wondering if there is a convenient function to do so
in R library.
2010 Mar 30
1
SHLIB not working (Win Vista)
Dear R-helpers,
I tried to build a DLL like I have done so many times, but this time
on my new machine, but it gives the erorr:
(from cmd window)
>R CMD SHLIB Boxcnt.f
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error c:/PROGRA~1/R/R-210~1.1/share/make/winshlib.mk 4: Command syntax error
*** 1 errors during make ***
The error is not in my Fortran file, because I also tried other files
2009 Oct 20
1
system() or shell() with python script
Hi all,
I am having some problems calling a python script from R that resides
in a folder that is in the path (WindowsXP):
> system("quickPadTool.py")
Warning message:
In system("quickPadTool.py") : quickPadTool.py not found
# I also tried 'shell' (and shell.exec as well).
> shell("quickPadTool.py")
'quickPadTool.py' is not recognized as an
2010 Oct 19
1
DLL not found
Dear R-helpers,
I have a fresh installation of windows vista, and R 2.12.0 (session info below).
Problem:
> require(sp)
Loading required package: sp
Error in library.dynam(lib, package, package.lib) :
DLL 'lattice' not found: maybe not installed for this architecture?
> require(lattice)
Loading required package: lattice
Failed with error: ?package 'lattice' is not
2009 Oct 19
2
Possible bug in plot.POSIXct regarding x axis
I believe I have found a bug (or at least a misfeature) in plot.POSIXct.
See the following example code.
set.seed(1)
x=seq(1,1e8,length=100)+round(runif(100)*1e8)
y=as.POSIXct(x,origin="2001-01-01")
plot(y)
This plots some random (date)times against their indices. The y axis
correctly shows appropriate values (years), but the x axis contains the
single number '59:58' in the
2008 Mar 09
1
Help on vectorizing
Dear R-helpers,
I have two problems that I don't know how to vectorize (but would like to because my current solution is slow).
# 1.
#I have a vector x:
x <- c(3, 0, 1, 0, 2, 2, 2, 0, 4, 2)
#I want this translated into a new vector based on x,so that each element of x
#is the number of zeroes, followed by a 1. The new vector would look like:
#> r# [1] 0 0 0 1 1 0 1 1 0 0 1 0 0
2009 Jul 20
1
Problem with as.POSIXct on dates object
Dear R-helpers,
I have a problem converting an object made with the 'chron' function
to a POSIXct object:
# Make date based on DOY
dat <- chron(dates=232, origin.=c(month=1, day=1, year=2008))
dat
#[1] 08/20/08
# Converting to POSIXct uses current timezone (Sydney):
as.POSIXct(dat)
#[1] "2008-08-20 10:00:00 EST"
# Setting GMT timezone has no effect?
as.POSIXct(dat,
2012 May 03
1
deparse(substitute(x)) on an object with S3 class
Dear list,
can someone explain to me why deparse(substitute(x)) does not seem to work
when x is of a user-defined S3 class?
In my actual problem, my print method is part of a package, and the method
is registered in the NAMESPACE, if that should make a difference.
> print.testclass <- function(x,...){
xname <- deparse(substitute(x))
cat("Your object name
2013 Mar 27
3
[PATCH 1/4] drm/nvc0: implement VRAM compression
---
drivers/gpu/drm/nouveau/core/include/subdev/ltcg.h | 7 +
drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c | 55 +++++----
drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c | 129 +++++++++++++++++++-
drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c | 58 +++++++++-
4 files changed, 220 insertions(+), 29 deletions(-)
diff --git
2011 Jun 28
2
gam confidence interval (package mgcv)
Dear R-helpers,
I am trying to construct a confidence interval on a prediction of a
gam fit. I have the Wood (2006) book, and section 5.2.7 seems relevant
but I am not able to apply that to this, different, problem.
Any help is appreciated!
Basically I have a function Y = f(X) for two different treatments A
and B. I am interested in the treatment ratios : Y(treatment = B) /
Y(treatment = A) as
2009 Feb 11
1
How to tell if lattice is current device?
Dear R-helpers,
I have a function that adds some segments to the current plot, but if
I the current plot is made with any of the lattice functions (in my
case, levelplot),
I should use lsegments rather than segments.
How can I tell if the current device was made with plot() or e.g.
levelplot() or another lattice function?
dev.cur() does not help me, it just tells me "windows 2".
2009 Jun 10
1
gpc.poly datatype
I have a list of polygons generated by the contourLines() command (each
object of the list is a list in itself with two objects: a vector of x
values, and a vector of y values for each vertex). I wish to convert that
list into a gpc.poly object of multiple contours. How do I do this? gpclib
apparently has no method of coercing lists into the gpc.poly object type.
As well, when I have a
2006 Sep 01
1
core dump with point.in.polygon
I've been trying to get some code to run on a 64-bit FreeBSD machine running
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.0 (2006-04-24)
ISBN 3-900051-07-0
and keep getting a core dump with the following results:
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: .Call("R_point_in_polygon_sp", as.numeric(point.x),
2023 Feb 20
1
Restored mail folders conflict with renamed original ones
Hello,
We are running Dovecot 2.3.18 (together with Postfix) on CentOS 7. It
uses a Maildir structure.
We have a user who has organized his mailbox as shows up at the end of
this mail. The user had forgotten that he had renamed his "Grants Active
\ European" (.Grants Active.European) folder to "Grants Active \
International" (.Grants Active.International), he thought that
2010 Mar 01
1
GPC file
Hi,
I have a tar.gz file. Using $tar -xzvf 'filename', I untarred the file.
However, I found that the content is .PGC files (e.g.
ISCCP.D2.0.GLOBAL.1983.07.99.0000.GPC ).
I have tried to search for analysis of gpc data file in R. I have not been
successful to get a good tip.
I would be pleased if anybody could tell me if gpc analysis is implemented
in R. Is there a program I must first