search for: cra

Displaying 20 results from an estimated 49 matches for "cra".

Did you mean: cr4
2009 Nov 03
3
Weird operator behaviour
Hi, I have a dataset called 'fish'. fish$Species returns extract 1. When I use fish$Species != c("CRA","PHC"), i.e. I want all species except "CRA" and "PHC", I get extract 2 which is blatantly wrong. Can anyone see what I'm doing wrong? Regards, James EXTRACT 1 > fish$Species [1] ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ATO...
2004 Sep 14
1
documentation error par("cin") and par("cra") (PR#7227)
Dear all, the help of par() claims that cin and cra are c(width, height) but it appears to be rather c(height, width) Best regards Jens Oehlschl?gel > plot.new() > strheight("W", unit="inches") [1] 0.1354167 > par("cin") [1] 0.1354167 0.1875000 > version _ platform i386-pc-mingw...
2000 Apr 25
1
loops
...ram the core of the program which is: s <- NULL k <- 0 for ( j in 1:(nc-1)) { for (jp in (j+1):nc ) { k <- k+1 s[k] <- 0 for (i in 1:(nr-1)) { for(ip in (i+1):nr) { a <- xr[i,j]+xr[ip,jp]-xr[i,jp]-xr[ip,j] s[k] <- s[k] + a*a } } } } cra <- max(s) where nc=number of columns, nr number of rows and the xr's are the centered ranks. the statistic being cra, there is a similar version where mean is replace by median in a previous step.. There must be a way in R to replace the 4 for loops i<i' and j<j' Thanks for...
2009 Aug 11
2
Slicing cra**y csv files
...V9 V10 1 36 Results 22 Results 28 Results I just need the numbers as a vector. Excel can do it with a few lines of VBA, but there must be a way to do it directly in R, would make things easier. Thanks a lot! jorgusch -- View this message in context: http://www.nabble.com/Slicing-cra**y-csv-files-tp24913849p24913849.html Sent from the R help mailing list archive at Nabble.com.
2008 Jan 31
1
png() and pdf() alignment problems
Hi all! My aim is to print a thematic map containing vector output and an image backdrop (six orthophoto tiles). The size of one image tile is 2500 rows and 2500 columns. The are six tiles to be printed. Of course this is far to much for sending the job to a pdf() device. The raster image would consist of 37500000 squares, each representing a raster cell. So my a attempt was to separate vector
2007 Jan 26
1
Inferring dimensions on bitmap device from par()
Hi, I am trying to infer the dimension of an opened bitmap (png, jpeg, bitmap device...) from par() parmeters. From the help on par(), I found that: > dim <- c(400, 200) > png("foo.png", width=dim[1], height=dim[2]) > dim2 <- par("din") * par("cra") / par("cin") > dev.off() > dim2 [1] 399.9999 199.9999 I've tried the above on Rv2.4.1 on WinXP and Linux with png() and jpeg() and the precision is good enough. However, when I turn to the bitmap() device, I found the following: > s <- 3; # Multiple of 72pt (def...
2010 Apr 28
0
New package for ICA uploaded to CRA
I have uploaded a new package to CRAN called ProDenICA. This fits ICA models directly via product-density estimation of the source densities. This package was promised on page 567 in the 2nd edition of our book 'Elements of Statistical Learning' (Hastie, Tibshirani and Friedman, 2009, Springer) . Apologies that it is so lat...
2010 Apr 28
0
New package for ICA uploaded to CRA
I have uploaded a new package to CRAN called ProDenICA. This fits ICA models directly via product-density estimation of the source densities. This package was promised on page 567 in the 2nd edition of our book 'Elements of Statistical Learning' (Hastie, Tibshirani and Friedman, 2009, Springer) . Apologies that it is so lat...
1999 Dec 02
1
Large plot symbols (with pch = 1 etc)
On my home (Windows 98) machine I find: > par()$cra [1] 42 16 > par()$csi [1] 0.1666667 > On my work machine I believe I had par()$cra [1] 17 16 So it looks as though R is reading the width wrongly, and that it is the width that is somehow used to determine the plot character size. Incidentally I noted Brian's comment that R had misrea...
2009 Jan 22
5
Combining Custom and Preset Linetypes
Dear R-Users, I created the xyplot below using 10 groups (9 groups + 'Total' of all groups) with lty=1:10. I need the 'Total' to be a bold solid line (lty=1) where as the 9 groups just need to be distinguishable from each other. As you can probably see, when the group reaches CRA6 the lty starts from 1 again. I have tried to specify ten unique lines using lty= c("10","92","11","12","62","9212","33","19","12529252","7111") however R won't let me use "10" (i.e....
1998 Jun 17
1
Warning in par(args)
...ng test 4 (requires stepwise). ok dse2 graphics tests ...completed dse3 graphics tests ...completed dse4 graphics tests ...completed All Brief User Guide example part 1 tests ...Read 1820 items Warning in par(args) : parameter "cin" can't be set Warning in par(args) : parameter "cra" can't be set Warning in par(args) : parameter "csi" can't be set Warning in par(args) : parameter "din" can't be set Warning in par(args) : parameter "cin" can't be set Warning in par(args) : parameter "cra" can't be set Warning in p...
2003 May 12
2
on.exit(par(old.par)) warnings
I often use something like old.par <- par(set someting) on.exit(par(old.par)) but in R 1.7.0. I now get warnings: > old.par <- par() > par(old.par) Warning messages: 1: parameter "cin" can't be set in: par(args) 2: parameter "cra" can't be set in: par(args) 3: parameter "csi" can't be set in: par(args) 4: parameter "cxy" can't be set in: par(args) 5: parameter "din" can't be set in: par(args) 6: gamma cannot be modified on this device in: par(args) Is this a mistake o...
1998 Sep 22
1
"Segmentation Fault - core dumped" in R 0.62.3
I am occasional getting "Segmentation Fault - core dumped" in R 0.62.3 (I think more often then I did in 0.62.2). I have not been able to do this in any reliably reproducible way yet, but thought I would mention the problem in case some else can isolate it. Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
1999 Mar 24
0
par$csi
Dear R-help, I'm using 63.3 on windows NT. The improved graphics device has a problem in that the default par settings produce text that is way too small (63.2 seemed fine). I've compared the parameters between 63.3 and 63.2 and the ones that differ are : cin, cra, csi, mai, pin, plt. In the par help file, cin and cra have no documentation other than that they are read only, the last three don't appear to concern text size. The all important one is csi, the height of default characters in inches, in 63.2 it is 0.2755906, in 63.3 it's 0.1377953, unfo...
1997 Jul 28
0
Samba on Irix 6.2/6.3 (SAMBA digest 1364)
Todd Daugherty (SAMBA digest 1364) enquired about samba on Irix 6.2/6.2. For Irix 6.2 I only need to add the following to the Makefile. # FOR SGI IRIX 6.2, use this line instead (David.Billinghurst@restech.cra.com.au) FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES LIBSM = FLAGS1 = -O -n32 +++++++++++++++++++++++++++++++++++++++++ (Mr) David Billinghurst Comalco Research Centre PO Box 316, Thomastown, Vic, Australia, 3074 Phone: +61 3 9469 0642 FAX: +61 3 9462 2700 Email: David.Billing...
2009 Mar 19
1
Difference in client vs. server graphics defaults
...e margins, legends improperly placed, etc. I checked the default par() settings and found differences between my machine and the server's R instance in 6 parameters. I attempted to set the server-side par() settings to mimic my client machine, but I cannot change the three read-only settings of cra, cxy, and din, and the graphs still look distorted. Is there another way to make the two sets of defaults equal each other? I am using R 2.6.1 on the server and 2.7.0 on my client computer, but I am doubtful that this would have an effect. Any ideas? Thanks! Jason [[alternative HTML version de...
2009 Jan 22
1
Defining Solid Line using Line Type Specification
Dear R-Users, I created the xyplot below using 10 groups (9 groups + 'Total' of all groups) with lty=1:10. I need the 'Total' to be a bold solid line (lty=1) where as the 9 groups just need to be distinguishable from each other. As you can probably see, when the group reaches CRA6 the lty starts from 1 again. I have tried to specify ten unique lines using lty= c("10","92","11","12","62","9212","33","19","12529252","7111") however R won't let me use "10" (i.e....
1999 Dec 17
1
R 0.90.1 for Windows
...---------------------------- It is possible to install packages from any directory (set PKGDIR on the make command) and to any directory (set RLIB on the make command). RLIBS is no longer accepted for the library directory: use R_LIBS (which has been preferred since 0.65.0). The code to set the `cra' parameter for a windows() device (and hence the base character size of symbols) is more robust. The code handling Ctrl-like keys has been changed and ought to be more robust (AltGr on Danish Windows NT used to misbehave.) savePlot recognises filename="clipboard" (or "") f...
1999 Dec 17
1
R 0.90.1 for Windows
...---------------------------- It is possible to install packages from any directory (set PKGDIR on the make command) and to any directory (set RLIB on the make command). RLIBS is no longer accepted for the library directory: use R_LIBS (which has been preferred since 0.65.0). The code to set the `cra' parameter for a windows() device (and hence the base character size of symbols) is more robust. The code handling Ctrl-like keys has been changed and ought to be more robust (AltGr on Danish Windows NT used to misbehave.) savePlot recognises filename="clipboard" (or "") f...
2002 Sep 23
2
Trouble with Windows 2000 sp3
Hello, I work in a development shop where we write code for both Linux and Windows, and develop on both OS's on a codebase stored on a Linux drive with Samba shares. Ever since I 'upgraded' my Windows 2000 system to service pack 3, I have been having trouble compiling my code with Visual Studio over this Samba connection. Basically what happens is that Visual Studio reports