Displaying 20 results from an estimated 700 matches similar to: "adding a method to the dist function"
2004 Jan 16
2
reference to objects
Hi,
is there a way to reference to a data object without copying it?
For example I have a huge matrix called dist and I want two objects
obj1 and obj2 to have a memeber dist that points to the matrix, but
I don't want, for memory reasons, to copy the matrix twice.
As far as I understand the following code will generate three copies
of my data:
dist <- some_code_that_generates_data
2007 Jan 19
2
combn implementation
Hi,
I was checking the source code to the function combn that "generates
all combinations of the elements of 'x' taken 'm' at a time.",
because I wished to modify it. I have a doubt about a statement.
This is the main loop.
._1 <- 1:1
nmmp1 <- n - m + ._1
while (a[1] != nmmp1) {
if (e < n - h) {
h <- ._1
e <-
2007 Feb 28
1
incremental plots with pdf and dev.copy
Hi,
I am trying to produce incremental plots directly using the pdf
device. I mean that I want to produce a plot, save it in a pdf
file, then add details and save the new plot in a new file, and
so on. Before I used to do this with x11, by just adding graphics to
a plot and then using dev.copy2eps at the right times for each eps
figure. Now I want to do this in batch mode and the x11 device is not
2004 Mar 19
3
how to fix a factor
Hi all,
I created a data frame with three factors, plus the response that
looks like this:
x1 x2 x3 y
a 1 1 0.3
a 2 1 0.1
b 1 1 0.4
c 4 3 0.1
...
I would like to analise the effect of two of them, keeping the third fixed
(I already know the effect of the last). The reason why I don't create several
data frames for each value of the thirs factor is simply convenience (I'd like
to be able
2004 Feb 02
2
ordering in dotplot
Dear R-friends,
the dataset I am using (data.it) is organized as follows
partner stp btp reg
hk 0.64 1 s
ger 0.27 1 d
tur 0.27 1 s
rom 0.24 1 s-f
por 0.24 1 s
spa 0.23 1 s
gre 0.22 1 d-f
aus 0.17 1 d
uk 0.16 1 s
be 0.16 1 d
arg 0.15 1 s
usa 0.13 1 d-f
fra 0.13 1 s
neth
2006 Dec 13
2
Phonetic symbols (IPA) in R graphics
Hi all,
I would like to add phonetic symbols in my figures. Usually I typeset
my documents in LaTeX and I use the tipa [1] package to get
International Phonetic Alphabet (IPA) fonts. So, my problem would be
solved if I could insert LaTeX commands in the text() function (I
guess at least).
I would like to avoid using psfrag (that is, inserting a string in
the eps figure and then substituting it
2007 Feb 28
1
adding graphics after dev.copy
Hi,
I am trying to create a plot and save it as pdf to the file
file1.pdf, then add some details and save the new plot as file2.pdf.
I would like to avoid repeating all the instructions needed to create
file1.pdf when I create file2.pdf.
This is what I have tried:
pdf(file="file1.pdf")
plot(1:10)
dev.copy(pdf,file="file2.pdf")
points(2,3)
dev.off()
dev.off()
When I run
2010 Sep 15
4
Sas to R
Hi,
I need to call an R program from Sas. I have tried using the following code
in Sas using the x command but it just calls up dos and says
'D:\Program' is not recognized as an internal or external command, operable
program or batch file.
]
SAS CODE:
options xwait xsync;
%let Rsource=S:\EPI_Data\Communicable Diseases\DR1355 Historic Communicable
Disease Analaysis\R graphics;
options
2006 Jan 23
9
Xen on USB Key
Hi list,
Here is the idea. I am running a domU out of a partition on a USB drive. I
use the other partition to store the domU state. Then I carry this USB key
to my office and restore the VM at the point where I left it. Thus I am
trying to use xen''s virtualization to carry my desktop on a USB key.
I have put up a web page explaining the details and a script to prepare the
USB key.
2009 Nov 05
3
Bhattacharyya distance metric
I need to use the Bhattacharyya distance metric to determine population
separation. Has anyone written a Bhattacharyya distance metric function in
R?
--
View this message in context: http://old.nabble.com/Bhattacharyya-distance-metric-tp26221259p26221259.html
Sent from the R help mailing list archive at Nabble.com.
2011 Apr 04
6
sshd: Authentication Failures: 137 Time(s)
Hi,
to prevent scripted dictionary attacks to sshd
I applied those iptables rules:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m recent
--update --seconds 60 --hitcount 4 --name SSH --rsource -j DROP
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m recent --set
--name SSH --rsource
And this is part of logwatch:
sshd:
Authentication Failures:
unknown
2013 Mar 07
1
Fwd: mistake on Securing SSH
This was sent to me regarding the wiki.
---------- Forwarded message ----------
From: "Martin Kon??ek" <mkonicek12 at gmail.com>
Date: Mar 7, 2013 4:44 AM
Subject: mistake on Securing SSH
To: <timothy.ty.lee at gmail.com>
Cc:
Hi TImothy,
I saw wiki http://wiki.centos.org/HowTos/Network/SecuringSSH and it is
pretty good, but there is a mistake.
*Instead of having*
iptables
2015 Dec 28
9
Firewall trouble?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I recently tried adding a firewall to my Samba 4 server using the port
information I found on the wiki. Below is a dump of the resulting rules.
root at dc01:~# iptables -S
- -P INPUT DROP
- -P FORWARD DROP
- -P OUTPUT ACCEPT
- -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
- -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m
2010 Apr 22
2
Unable to make bitmapdll files on windows 7 64 bit machine
I am trying to build a windows 32 bit version of R 2.11.0 from source on a machine running
windows 7 - 64 bit while running as the machine's administrator.
I am able to run "make all recommended"...However, once I attempt to build the bitmap files I get the following:
C:\Rsource\R-2.11.0\src\gnuwin32>make bitmapdll
make -C bitmap
make[1]: Entering directory
2002 Aug 30
4
(PR#1964) The attached function working fine with R 1.3.0 but giving problem with R 1.5.1 (PR#1964)
The division part of the following code is not executing -
(seq(n-1)*mean(XS)-cumsum(XS[seq(n-1)]))*diff(XS)/((n-1)*var(XS))
Note: Prof Yatracos: Would you please send them one example ?
Thanks,
Kaushik
-----Original Message-----
From: ripley@stats.ox.ac.uk [mailto:ripley@stats.ox.ac.uk]
Sent: Friday, August 30, 2002 4:27 PM
To: Kaushik Bhattacharyya
Cc: r-devel@stat.math.ethz.ch;
2012 Jul 05
3
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
Hello;
I wrote this simple loop pass to collect the number of instructions in each
loop of the program. The code is as follows-
#define DEBUG_TYPE "loopinst"
#include "llvm/Pass.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Instructions.h"
#include
2012 Jun 20
3
[LLVMdev] Is Loop Dependence Analysis Printing Correct Stats?
Hi;
I was playing with the -lda pass of LLVM on the following program-
#include <stdio.h>
void main()
{
int a[10];
int i;
for(i = 0; i < 4; i ++)
{
a[i] = a[i-1]+1;
}
}
I run the following commands -
clang a.c -emit-llvm -S
opt -analyze -stats -lda a.s
The output is -
Printing analysis 'Loop Dependence Analysis':
Loop at depth 1, header block: %for.cond
Load/store
2012 May 18
3
[LLVMdev] Adding a New Instruction to LLVM IR
Hello;
I was planning to add a new instruction to the LLVM IR (and later to MIPS
backend) for TLS(Thread level speculation) support. For this I tried to
follow the steps described in http://llvm.org/docs/ExtendingLLVM dot
html#instruction.
But I could not find any llvm/lib/AsmParser/Lexer.l
and llvm/lib/AsmParser/llvmAsmParser.y file in both the svn repository and
the source code downloaded
2005 Dec 13
3
is my initramdisk right? also getting ''Error opening /dev/console'' error
Hello,
I am getting kernel panic while trying to xm create a domU.
Xen version 3.0
Linux kernel 2.6.12.6
Grub entry for dom0:
title Xen 3.0 / XenLinux 2.6
kernel /boot/xen- 3.0.gz console=vga
module /boot/vmlinuz-2.6-xen0 root=LABEL=/ ro console=tty0
module /boot/initrd-2.6.12.6-xen0.img
For domU, my xm file contains:
kernel = "/boot/vmlinuz-2.6.12.6-xenU "
2020 Nov 19
2
Understanding CallInst::Create
Hello;
I am working on porting a tool written for LLVM3.5 to LLVM10. There
used to be a call instruction with the signature
static CallInst * Create (Value *F, Value *Actual, const Twine
&NameStr="", Instruction *InsertBefore=0)
Can anyone please explain what it supposed to do? What was F and Actual?
Thank you so much.
--
Dr. Arnamoy Bhattacharyya
R&D Compiler Engineer