Displaying 9 results from an estimated 9 matches for "davejaiminm".
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 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 Feb 20
1
QuadTree
Could any one tell me how to implement QuadTree in R?
Or are there any packages avaialble to implement it in R.
[[alternative HTML version deleted]]
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 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 :
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]]
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:*