Displaying 20 results from an estimated 7000 matches similar to: "which() function not finding certain numbers"
2010 Feb 17
2
extract the data that match
Hi r-users,
I would like to extract the data that match. Attached is my data:
I'm interested in matchind the value in column 'intg' with value in column 'rand_no'
> cbind(z=z,intg=dd,rand_no = rr)
z intg rand_no
[1,] 0.00 0.000 0.001
[2,] 0.01 0.000 0.002
[3,] 0.02 0.000 0.002
[4,] 0.03 0.000 0.003
[5,] 0.04 0.000 0.003
[6,]
2011 Jan 20
6
Identify duplicate numbers and to increase a value
Hi everybody.
I want to identify duplicate numbers and to increase a value of 0.01 for each time that it is duplicated.
Example:
x=c(1,2,3,5,6,2,8,9,2,2)
I want to do this:
1
2 + 0.01
3
5
6
2 + 0.02
8
9
2 + 0.03
2 + 0.04
I am trying to get something like this:
1
2.01
3
5
6
2.02
8
9
2.03
2.04
Actually I just know the way to identify the duplicated numbers
rbind(x, duplicated(x) |
2011 Jan 19
1
Using subset to filter data table
I am having difficulty understanding how I would constrain a data set by
filtering out 'records' based on certain criteria.
Using SQL I could query using 'select * from my.data where LithClass in
('sand', 'clay')' or some such.
Using subset, there seem to be ghosts left behind (that is, all of the
LithClass *.Labels* remain after subset)
> dput(tcc)
2000 Sep 24
4
SSH_CLIENT _not_ set when doing a command
Hi,
I'm trying to create an dynamic dns system by using the nsupdate (or Net::DNS) trough a non-passphrase protected ssh session. I've keygen'ed an extra key, with no passphrase and using it, i execute a litte script on the server, which updates te DNS records. (something like this: ssh pickup /usr/local/bin/updatedns 10.1.2.3)
This al works fine and dandy. I would like to protect
2010 Dec 30
2
optim and singularity
Hello,
I was unable to find clues to my problem in ?optim. Using the data and code
below, I get an error ("system is exactly singular") when a particular line
of code is left in, but have found that 'optim' works when I comment it out.
The line of code in question is after the closeAllConnections() line of code
and contains a call to "na.approx" from the zoo package.
2004 Dec 02
3
Tbench benchmark numbers seem to be limiting samba performance in the 2.4 and 2.6 kernel.
Hi,
I'm getting horrible performance on my samba server, and I am
unsure of the cause after reading, benchmarking, and tuning.
My server is a K6-500 with 43MB of RAM, standard x86 hardware. The
OS is Slackware 10.0 w/ 2.6.7 kernel I've had similar problems with the 2.4.26
kernel. I use samba version 3.0.5. I've listed my partitions below, as well
as the drive models. I have a
2003 Jun 26
4
Problems with eepro100 or BroadCom NetXtreme and syslinux 2.04
Hi all!
We use pxelinux for booting a diskless Linux from whitch we install all
our systems.
But we discovered some Problems:
- With v1.75 the Kernel is fetched from the TFTP-Server with no problem,
but it gets not started on Broadcom NetXtreme with newer PXE-Bioses
- With v2.04, pxelinux even seems not to be able to fetch the kernel
from the TFTP-Server. This affects also Intel's
2011 Jun 09
3
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
Duncan,
Below are the tabulated compile times and executable sizes.
A) gcc 4.5.4svn using -msse3 -ffast-math -O3 -fno-tree-vectorize
B) gcc 4.5.4svn/dragonegg using -msse3 -ffast-math -O3 -fno-tree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns
C) gcc 4.5.4svn/dragonegg using -msse3 -ffast-math -O3 -fno-tree-vectorize
Compile time (seconds)
Benchmark A) stock B) gcc 4.5.4/ C)
2011 Jun 09
3
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
On Thu, Jun 09, 2011 at 03:44:40PM +0200, Duncan Sands wrote:
> Hi Jack, thanks for doing this.
>
>> Below are the tabulated compile times and executable sizes.
>>
>> A) gcc 4.5.4svn using -msse3 -ffast-math -O3 -fno-tree-vectorize
>> B) gcc 4.5.4svn/dragonegg using -msse3 -ffast-math -O3 -fno-tree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns
>> C)
2011 Jun 09
3
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
Current dragonegg svn has all of the -fplugin-arg-dragonegg-enable-gcc-optzns bugs for
usage with -ffast-math -O3 addressed except for those related to PR2314. Using the -fno-tree-vectorize
option, we can evaluate the current state of -fplugin-arg-dragonegg-enable-gcc-optzns with
the Polyhedron 2005 benchmarks compared to stock dragonegg and stock gcc 4.5.4. The runtime
benchmarks below show that
2003 Apr 16
5
rh9 and pxe
Hi,
I've got pxelinux 2.00 working to boot
rh 7.3, 8.0, and phoebe-beta pxe install images
but I've recently tried to load the
rh 9 pxe install images
and I get this..
4000
AX:0208
BX:0200
CX:0002
DX:0000.
Any thoughts?
Thanks
aaron
2011 Jun 09
0
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
Hi Jack, thanks for doing this.
> Below are the tabulated compile times and executable sizes.
>
> A) gcc 4.5.4svn using -msse3 -ffast-math -O3 -fno-tree-vectorize
> B) gcc 4.5.4svn/dragonegg using -msse3 -ffast-math -O3 -fno-tree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns
> C) gcc 4.5.4svn/dragonegg using -msse3 -ffast-math -O3 -fno-tree-vectorize
These numbers really
2011 Jun 10
0
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
Duncan,
Here are the complete benchmarks rerun against gcc 4.5.4 built with...
Using built-in specs.
COLLECT_GCC=gfortran-fsf-4.5
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin11.0.0/4.5.4/lto-wrapper
Target: x86_64-apple-darwin11.0.0
Configured with: ../gcc-4.5.4/configure --prefix=/sw --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.5/info
2003 Apr 05
1
Preliminary 2.03-pre1 result...
It seems that 2.03-pre1 resolves PXELINUX problem on a reasonable number
of hosts. Perhaps somewhat importantly this seems to include the RBFG
PXE boot floppy, which did not work with 2.02.
This was somewhat of a surprise, since it didn't exhibit the failure
mode that I would have thought would have been the trigger of the bug.
Instead, it was one of those stacks that would transmit packets
2012 Jul 29
2
problems with R startup in mac
Dear sir/madam,
I encountered some problems when running R on my computer. To be honest, I
am only a beginner of computer programming and I have no idea how to deal
with it. I have tried to change the font in "system preference" but it did
not work. Can you tell me how to get it right?
The system of my computer is Mac OS snow leopard
The warnings are like these:
During startup -
2003 Jul 29
4
pxelinux 2.04+ hangs after loading kernel
Hi,
I just tried to boot my token ring devices with 2.05 - to no avail,
it hangs after loading the kernel. I then tried older versions, and found
2.03 booting like a charm, and every 2.04-pre including 2.04 hanging.
Here's the config of the devices:
- Networkstation 2800 with IBM PCI Token Ring card 2
- IBM Thinkpad T21 with IBM PCI Token Ring card 2
Maybe this has to do with the changes
2011 Jun 09
0
[LLVMdev] -fplugin-arg-dragonegg-enable-gcc-optzns status
Hi Jack, thanks for these numbers. Can you also please measure compile times?
I'm thinking of enabling gcc optimizations by default, but I don't want to
increase compile times, which means choosing a value for the
-fplugin-arg-dragonegg-llvm-ir-optimize option that is low enough to get good
compile times, yet high enough to get fast code. It would be great if you could
play around with
2013 May 15
1
x and y lengths differ
I have a problem with R. I try to compute the confidence interval for my
df. When I want to create the plot I have this problem: Error in
xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ.
I try this code:
library(dplR)
df.rwi <- detrend(rwl = df, method = "Spline",nyrs=NULL)
write.table(df.rwi,file="rwi.txt",quote=FALSE,row.names=TRUE)
2012 Nov 09
2
sink() doesn't work
Oftentimes I want to make outputs to be displayed on the R console.
However, after I execute a program with a sink command in it the R console
becomes unresponsive. Meaning that the following occurs in R console:
> source("Program_containing_sink.R")
> a<-1
> a
>
>sink()
>a
>
R help says that sink() will bring output back to the console but i's not
2009 Mar 22
2
"rsync --delete" won't delete certain files
Hi,
as I just discovered, in recent versions of rsync the "--delete" option
seems to not work in certain cases. I couldn't come up with a simple
scenario to reproduce the problem, so I'll have to tell the whole story:
I use rsync to regularly backup a system onto other disks. The filesystems
I want to save are mounted on "/", "/usr/ and "/data", the