Re: [R] Extracting the dimnames of an array with variable dimensions

2011-05-16 Thread Pierre Roudier
quot;a"  "A"  "f" >  [9,] "b"  "B"  "f" > [10,] "c"  "B"  "f" > [11,] "d"  "B"  "f" > [12,] "a"  "C"  "f" > [13,] "d"  "C&q

Re: [R] Extracting the dimnames of an array with variable dimensions

2011-05-15 Thread Pierre Roudier
subset(u, V1 > 0)[, 1:3] >   X1 X2 X3 > 2   b  A  e > 3   c  A  e > 7   c  B  e > 11  c  C  e > 12  d  C  e > 16  d  D  e > 17  a  A  f > 18  b  A  f > 20  d  A  f > 22  b  B  f > 24  d  B  f > 25  a  C  f > 27  c  C  f > 28  d  C  f > 29  a  D  f &g

[R] Extracting the dimnames of an array with variable dimensions

2011-05-15 Thread Pierre Roudier
Hi list, In a function I am writing, I need to extract the dimension names of an array. I know this can be acheived easily using dimnames() but my problem is that I want my function to be robust when the number of dimensions varies. Consider the following case: foo <- array(data = rnorm(32), dim

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Pierre Roudier
Hi all, 2011/4/4 Felipe Carrillo : > Manuel: > As far as I know one needs gpclibPermit() in order to fortify > see this: > Note: polygon geometry computations in maptools >     depend on the package gpclib, which has a >     restricted licence. It is disabled by default; >     to enabl