Displaying 20 results from an estimated 40000 matches similar to: "QuadTree"
2011 Mar 24
2
Using C code in R
Hi,
I am new to R and I want to know how to use C code which contains two
functions one called inside another.I know that how to use C code in R if it
has only one function but dont know how to do it in above case. I want to
use the same in R .My C code is as follows.
//#include <R.h>
void sayHello();
void g();
void sayhello() {
Rprintf("Hello world %d\n",global);
}
void
2011 Mar 28
1
Points on Map
Hi,
I am new to R and I want to plot points on the Map of New York . I also
want to divide map of New York into small grids(not fixed) .I want that
these point should be plotted from a file.How can I do it?Any help would be
greatly appreciated.
Thanks
Jaimin
[[alternative HTML version deleted]]
2011 Apr 05
1
Grid on Map
I am new to R.I want to draw grid from a csv file which contains latitude
minimum ,latitude maximum ,longitude minimum ,longitude maximum.The grid
should be divided into exactly 4 quadrants. The map is of NY state of USA. I
want to know how can I do it.
Help would be appreciated.
Thanks
Jaimin
[[alternative HTML version deleted]]
2011 Jun 12
1
Pointers in R
Hello Everyone,
I am new to R and would like to create a quad tree in R. However the problem
is that I don't think R has pointers. Is there any way to create a tree in
R?
Thanks
[[alternative HTML version deleted]]
2011 Jun 18
1
Pass Vector from R to C
Hi ,
I have a function which passes a vector from R to C. However the size of the
vector is decided inside the c program. But as I have to pass the size while
calling the function from R lot of my space is getting wasted. Is there any
other alternative?
I call c function as :
2005 Oct 12
4
Downgrade from 3 to 2 suggestions
After considerable experimentation I'm forced to accept that Samba 3 has
problems with the combination of being a domain member, the 2.6 kernel,
and Dell 2850 hardware. It works fine on the 2.4 kernels but fails on
all the 2.6 versions I have avaialble for testing. I have one machine
that I really prefer could stay at 2.6 so my last resort there is to try
a downgrade to samba 2.X
In the
2015 Jun 18
2
[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?
Hi
As the title says, are all the debug nodes of LLVM IR avaialble in DWARF?
If I add a new custom MDNode in LLVM IR, can I expect the debug data will
be available in DWARF in the binary if I compile in debug mode?
Thanks
Riyad
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Apr 23
1
Pass String from R to C
Hi,
I am using a function which accepts the string from R and prints it.
But when I am calling .C("main","hello");
it is printing any random thing.
My C function is
void main(char *str)
{
Rprintf("%s",str);
}
Can you help how to achieve this using .C interface?
Thanks
Jaimin
[[alternative HTML version deleted]]
2019 Mar 06
2
nvidia on 7.6
On 06/03/2019 19:30, Pete Geenhuizen wrote:
>
>
> On 03/06/2019 09:59 AM, Fred Smith wrote:
>>
>>> I tried to install this and ran into a conflict
>>>
>>> --> Processing Conflict:
>>> nvidia-x11-drv-340xx-340.107-2.el7_6.elrepo.x86_64 conflicts ocl-icd
>>> --> Finished Dependency Resolution
>>> Error: nvidia-x11-drv-340xx
2019 Mar 06
2
nvidia on 7.6
On 06/03/2019 21:53, Pete Geenhuizen wrote:
>
>
> On 03/06/2019 04:21 PM, Phil Perry wrote:
>> On 06/03/2019 19:30, Pete Geenhuizen wrote:
>>>
>>> That is all good and well, but my problem is that I now can't install
>>>
>>> vlc smplayer mplayer, or? ffmpeg-libs because they need
>>> ocl-icd-2.2.12-1.el7.x86_64from epel.
2008 Jan 19
2
MySQL + R as a Replacement for SAS Proc SQL + Various Stat Procs
For cost reasons, I'd like to replace SAS on my PC under Win XP Pro.
Nearly all my work involves medium-size datasets (100k-10M) records which I
cleanup, relate, fliter and get into shape for analysis using SAS/SQL
followed by standard statistical procedures, e.g. regression using SAS proc
reg.
It seems to me that this type of analysis could be done in MySQL followed
by R, but I'd like
2004 Jan 27
8
distance between two matrices
Hi all,
Say I have a matrix A with dimension m x 2 and matrix B with
dimension n x 2. I would like to find the row in A that is closest to
the each row in B. Here's an example (using a loop):
set.seed(1)
A <- matrix(runif(12), 6, 2) # 6 x 2
B <- matrix(runif(6), 3, 2) # 3 x 2
m <- vector("numeric", nrow(B))
for(j in 1:nrow(B)) {
d <- (A[, 1] - B[j, 1])^2 + (A[,
2017 Nov 14
0
error message for function: lmer (from lme4 package)
> On Nov 14, 2017, at 5:13 AM, Fix Ace via R-help <r-help at r-project.org> wrote:
>
> Dear R Community,
> My data have 3 conditions and each condition has 6 replicates. I am trying to fit my data for a linear mixed model using the lmer function from lme4 package to find the random effects of the replicates;
Better venue for this question might be SIG-mixed-models. See the link
2017 Nov 14
4
error message for function: lmer (from lme4 package)
Hi, David,
Thank you very much for getting back to me! Sorry about the messy code example. I am re-posting here (including the error message):
> example.3=data.frame(levels=as.numeric(XXX[,c(4)]),replicate=rep(c("0","1","2","3","4","5"),3),conditions=c(rep("11",6),rep("12",6),rep("13",6)))> example.3? ?
2012 Feb 18
1
Plot OctTree
Hi Everyone,
I have csv file which is in following format
xmin,xmax,ymin,ymax,zmin,zmax
I want to plot 3d graph with all the all octants being displayed as well.
Any idea? I have used scatterplot3d package but it does not seem to have
anything by which i can draw "octants" inside cube as well.
Thanks
[[alternative HTML version deleted]]
2012 Apr 22
1
Return dynamic array from C to R
Hi Everyone,
I am new to R and I am trying to return array(dynamic) from C to R. But
when I print array(vector) in R it gives NA as output. When I print array
in C it gives correct o/p but some how it is not returned to R.
*Code in C:*
void test(double *vec,double *size){
vec = (double *)calloc(2 , sizeof(double));
*(vec+0) = 1;
*(vec+1) = 2;
*size = 2;
}
*Code in R:*
2005 Oct 07
3
panel data unit root tests
Hi,
The question is as follows: has anyone coded panel data unit root tests
with R? Even the "first generation" tests (see e.g. Levin & Lin 1993;
Pesaran, & Smith & Im 1996; Maddala & Wu 1999) would be sufficient for my
needs. To my understanding, these are rather easy to code, but as I have
taken just my first steps in coding with R, existing code would save me
2006 Mar 29
1
Data assimilation / inverse modeling in R
Hello,
I'm trying to find out if something has been written in R regarding data
assimilation and inverse modeling.
These searches do not return anything that look like Kalman filter
variations (EK, SEEK, ROEK, etc.)
help.search("assimilation")
help.search("inverse model")
Regards,
**************************************************
AVIS DE NON-RESPONSABILITE: Ce
2006 Aug 09
1
NLS and IV
Hello All,
I'm looking to test a variable in a logit model (glm(...,
binomial(link="logit"))) for exogeneity (endogeneity). At this point I am
planning to try implementing Jeffery Grogger's "A Simple Test for Exogeneity in
Probit, Logit, and Poisson Regression Models", Economic Letters, 1990. To do
this, I need to be able to do an instrumental variables NLS
2008 Apr 12
2
nonlinear curve fitting on a torus
Dear R users.
I have data observed on the surface of a torus, and
am trying to fit the nonlinear regression using
the geodesic equation on a torus. Could anyone give
me a helpful advise on this problem? I would
definitely appreicate your reply.
Sincerely,
SUNGSU KIM
[[alternative HTML version deleted]]