similar to: breaking ties in order() based on many vectors

Displaying 20 results from an estimated 500 matches similar to: "breaking ties in order() based on many vectors"

2009 Feb 12
3
getting all pairwise combinations of elements in a character string
I'm able to do this as follows, but am wondering if anyone knows a simpler way which still avoids explicit loops? > (mystring <- letters[1:5]) [1] "a" "b" "c" "d" "e" > unlist(sapply(mystring[-length(mystring)], + function(x) paste(x,mystring[(grep(x,mystring)+1):length(mystring)],sep=""))) a1 a2 a3
2009 Aug 27
2
setting par(srt) according to plot aspect ratio
How can I look up the aspect ratio of a plot, so I can use that to correctly adjust the angle of text which is supposed to be parallel to a line in the plot? The following example code works for a 1:1 aspect ratio, but puts the text at the wrong angle if the plot region is short and wide or tall and narrow. I can't find a par() component containing the plot aspect ratio. It will be for
2009 Dec 16
1
difference between the meaning of MARGIN in sweep() and apply()
For example, subtracting 1:2 from the rows of a two-column matrix: > t(apply(matrix(1:6,ncol=2),MARGIN=1,function(y) y - 1:2)) [,1] [,2] [1,] 0 2 [2,] 1 3 [3,] 2 4 > sweep(matrix(1:6,ncol=2),MARGIN=2,1:2,FUN="-") [,1] [,2] [1,] 0 2 [2,] 1 3 [3,] 2 4 Is there a logic to this difference, or is it just a quirk of the history of these
2009 Aug 31
3
Two way joining vs heatmap
Hi STATISTICA has a function called "Two-way joining" (see http://www.statsoft.com/TEXTBOOK/stcluan.html#twotwo) and the reference material states that this is based on the method as published by Hartigan (found this paper: http://www.jstor.org/pss/2284710 through wikipedia). What is the relationship (if any) between the "heatmap" function in R and this technique? Is there an
2009 Feb 12
3
Looping multiple output values to dataframe
Dear R users, I have various vector geometry operations to perform on 3-D coordinate data located on multiple (500+) csv files. The code I have written for the calculations works just fine. I have written a 'for' loop to automate the task of extracting the coordinates from the files and perform the analyses. The loop works reasonable well, but if the number of csv files is greater than
2009 Apr 02
0
multiple annotations on a heatmap
Can someone recommend a more sophisticated way to annotate heatmaps than the ColSideColors argument of heatmap and heatmap.2? In particular, I would like to be able to annotate columns with more than one piece of information, like in Figure 1 of the article at http://www3.interscience.wiley.com/cgi-bin/fulltext/117905619/HTMLSTART / doi:10.1002/hep.22256. Some example data and a heatmap:
2007 Jul 17
1
problem with length()
In the following, can anyone tell me why length(eee) returns 9? I was expecting 15398, and when I try to add this vector to a data frame with that many rows, it fails complaining that the vector is of length 9. In what I thought was an identical situation with a related dataset, the same code worked as expected. > length(fff) [1] 15398 > str(fff) int [1:15398] 20010102 20010102
2006 May 08
3
OpenGL w/ FreeBSD 6-STABLE and Wine 0.9.12
Hello, I am running FreeBSD 6-STABLE with Xorg 6.9 and Wine 0.9.12 from the ports tree. The DRI extensions are installed and working properly for my ATI X800 AIW, as reported by glxinfo: display: :0 screen: 0 direct rendering: Yes ** snip ** OpenGL vendor string: Tungsten Graphics, Inc. OpenGL renderer string: Mesa DRI R300 20040924 AGP 8x TCL OpenGL version string: 1.2 Mesa 6.4.1 glxgears
2006 Apr 19
1
wpa_supplicant and wi
I am using a Netgear MA401 with the wi driver, and am having trouble using wpa_supplicant to set static WEP keys. I have the wlan_wep.ko module loaded with wlan and wi built into the kernel. My wpa_supplicant.conf looks like this: ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="INTERNERD" scan_ssid=1 priority=1 key_mgmt=NONE
2009 Nov 17
14
X45xx storage vs 7xxx Unified storage
We are looking at adding to our storage. We would like ~20TB-30 TB. we have ~ 200 nodes (1100 cores) to feed data to using nfs, and we are looking for high reliability, good performance (up to at least 350 MBytes /second over 10 GigE connection) and large capacity. For the X45xx (aka thumper) capacity and performanance seem to be there (we have 3 now) However, for system upgrades , maintenance
2016 Oct 14
4
Dovecot does not close connections
Hello, I am running into this error: /Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10)/ The suggested solution in hundreds of support requests on this mailing list and throughout the internet is to increase the number of maximum userip connections. But this is not curing the problem, it is just postponing it to the moment when the new limit is reached. When i
2012 May 24
3
PXE looping on localboot
I have seen posts about this problem, but have had trouble finding how/if it was resolved. I am trying to upgrade from syslinux-3.11 to syslinux-3.86 on RHEL5. On 3.86, when it performs a local boot from hard disk, it just keeps looping back into PXE boot again instead of booting from the hard disk. It will perform a system install just fine, but when it switches to localboot after the install,
2010 Jan 19
1
Error compiling R 2.10.1 on AIX
I'm trying to compile R 2.10.1 on AIX 5.3, and am getting the following error: Error in read.dcf(file = descfile) : Line starting 'Package: tools ...' is malformed! Calls: makeLazyLoading ... code2LazyLoadDB -> loadNamespace -> parseNamespaceFile -> read.dcf Execution halted make[3]: *** [all] Error 1 make[3]: Leaving directory
2000 May 22
2
Problem with "force create mode" et. al.
Hi, folks. I've got a weird situation here. I'm sure it's something small, but, well, either I've been cursed by a witch doctor, or my eyesight is getting too bad to find small problems. Either way, I'm more than willing to be pummeled for asking such a stupid question, as long as it helps me get it solved. I'm replacing an NT file server with a Samba box (hooray!).
2016 Oct 14
0
Dovecot does not close connections
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 14 Oct 2016, Benedikt Carda wrote: > I am running into this error: > /Maximum number of connections from user+IP exceeded > (mail_max_userip_connections=10)/ > > The suggested solution in hundreds of support requests on this mailing > list and throughout the internet is to increase the number of maximum > userip
2007 Jul 17
0
Problem building R with Sun Studio Compiler on SLES 9 SP3
In a previous thread I had problems on openSuse 10.2 building R with optimisation and discovered that if I wanted optimisation I need to turn on -fstore -fsimple1 (the first is to force storage on some Fortran routines , the second is to ensure IEEE arithmetic, with some optimisation). That worked for my desktop. The real problem is to work on our servers (Opterons running SLES9SP3) Make works
2013 Feb 27
0
Bordered legend icons and Text in plots
Hello, My colleagues and I use lattice for a variety of different purposes, and we came across a couple issues involving legend.R and update.trellis.R: 1. When using xyplot, the shapes in the plots are able to have borders and fill colours, but not so in the legend. I created a short script to isolate the problem (see legend-icons.R and Nofill.png). After some tracing through the source code,
2006 Apr 13
1
Working directory
Hi, I am a new user of "R", I am trying to read my data in.. "Cervixhc.dat" used to be in a different directory, now it has been moved to "O:\E&s\APC cervix FINAL (YG,MC,MD)\Manuscript\Data", but when I ran the following program (in red) I got an error message "Error in setwd(dir) : cannot change working directory", and "Error in file(file,
2008 Feb 05
0
xYplot, error bars, log scale
I'm new to Hmisc and trying to get the following to work, but if I un- comment the y-scale list (in order to get a log-scale for the hazard ratio), the error bars become strangely large. The dataframe is simply ODS output from TPHREG in SAS. Can someone point me towards what I'm sure is a naive error? Many thanks! tphreg1_parameterestimates1987$LCL <-
2011 Jul 28
0
lattiace bug with levelplot borders
Hi, I would like to report a problem with the levelplot borders in lattice. Description: The borders in levelplots appear when running in a Windows setting, however running the identical command in Linux does not generate the plot with the borders. The commands used were: library(lattice) levelplot(volcano, border = 'black', shrink = c(0.7, 0.7)); The same version of R (2.13.0) and