Displaying 20 results from an estimated 48 matches for "trg".
Did you mean:
org
2006 Jul 26
2
Branching on 'grep' returns...
Greetings, all.
I'm fiddling with some text manipulation in R, and I've found
something which feels counterintuitive to my PERL-trained senses; I'm
hoping that I can glean new R intuition about the situation.
Here's an example, as concise as I could make it.
trg<-c("this","that")
# these two work as I'd expected.
if ( grep("this",trg) ) { cat("Y\n") } else { cat("N\n") }
if ( grep("that",trg) ) { cat("Y\n") } else { cat("N\n") }
# These all fail with error 'argum...
2017 Aug 22
4
boot.stepAIC fails with computed formula
...-3, 3)
x4 <- runif(n, -3, 3)
x5 <- runif(n, -3, 3)
x6 <- runif(n, -3, 3)
x7 <- runif(n, -3, 3)
x8 <- runif(n, -3, 3)
y1 <- 42+x3 + 2*x6 + 3*x8 + runif(n, -0.5, 0.5)
dat <- data.frame(x1,x2,x3,x4,x5,x6,x7,x8,y1)
#the real data won't have these names...
cn <- names(dat)
trg <- "y1"
xvars <- cn[cn!=trg]
frm1<-as.formula(paste(trg,"~1"))
frm2<-as.formula(paste(trg,"~ 1 + ",paste(xvars,collapse = "+")))
strt=lm(y1~1,dat) # boot.stepAIC Works fine
#strt=do.call("lm",list(frm1,data=dat)) ## boot.stepAIC FAILS...
2017 Aug 23
3
boot.stepAIC fails with computed formula
...n, -3, 3)
> x6 <- runif(n, -3, 3)
> x7 <- runif(n, -3, 3)
> x8 <- runif(n, -3, 3)
> y1 <- 42+x3 + 2*x6 + 3*x8 + runif(n, -0.5, 0.5)
>
> dat <- data.frame(x1,x2,x3,x4,x5,x6,x7,x8,y1)
> #the real data won't have these names...
>
> cn <- names(dat)
> trg <- "y1"
> xvars <- cn[cn!=trg]
>
> frm1<-as.formula(paste(trg,"~1"))
> frm2<-as.formula(paste(trg,"~ 1 + ",paste(xvars,collapse = "+")))
>
> strt=lm(y1~1,dat) # boot.stepAIC Works fine
>
> #strt=do.call("lm",list(...
2017 Aug 23
0
boot.stepAIC fails with computed formula
It seems that if you build the formula as a character string, and
postpone the "as.formula" into the lm call, it works.
instead of
frm1 <- as.formula(paste(trg,"~1"))
use
frm1a <- paste(trg,"~1")
and then
strt <- lm(as.formula(frm1a),dat)
regards,
Heinz
Stephen O'hagan wrote/hat geschrieben on/am 23.08.2017 12:07:
> Until I get a fix that works, a work-around would be to rename the 'y1' column, used a fixed form...
2017 Aug 22
1
boot.stepAIC fails with computed formula
...n, -3, 3)
> x6 <- runif(n, -3, 3)
> x7 <- runif(n, -3, 3)
> x8 <- runif(n, -3, 3)
> y1 <- 42+x3 + 2*x6 + 3*x8 + runif(n, -0.5, 0.5)
>
> dat <- data.frame(x1,x2,x3,x4,x5,x6,x7,x8,y1)
> #the real data won't have these names...
>
> cn <- names(dat)
> trg <- "y1"
> xvars <- cn[cn!=trg]
>
> frm1<-as.formula(paste(trg,"~1"))
> frm2<-as.formula(paste(trg,"~ 1 + ",paste(xvars,collapse = "+")))
>
> strt=lm(y1~1,dat) # boot.stepAIC Works fine
>
> #strt=do.call("lm",list(...
2017 Aug 22
0
boot.stepAIC fails with computed formula
...3)
>> x7 <- runif(n, -3, 3)
>> x8 <- runif(n, -3, 3)
>> y1 <- 42+x3 + 2*x6 + 3*x8 + runif(n, -0.5, 0.5)
>>
>> dat <- data.frame(x1,x2,x3,x4,x5,x6,x7,x8,y1)
>> #the real data won't have these names...
>>
>> cn <- names(dat)
>> trg <- "y1"
>> xvars <- cn[cn!=trg]
>>
>> frm1<-as.formula(paste(trg,"~1"))
>> frm2<-as.formula(paste(trg,"~ 1 + ",paste(xvars,collapse = "+")))
>>
>> strt=lm(y1~1,dat) # boot.stepAIC Works fine
>>
>> #s...
2017 Aug 22
1
boot.stepAIC fails with computed formula
SImplify your call to lm using the "." argument instead of
manipulating formulas.
> strt <- lm(y1 ~ ., data = dat)
and you do not need to explicitly specify the "1+" on the rhs for lm, so
> frm2<-as.formula(paste(trg," ~ ", paste(xvars,collapse = "+")))
works fine, too.
Anyway, doing this gives (but see end of output)"
bst <- boot.stepAIC(strt,data =
dat,B=50,alpha=0.05,direction='forward',steps=limit,
scope=list(lower=frm1,upper=frm2))
> bst
Summar...
2017 Aug 22
0
boot.stepAIC fails with computed formula
...n, -3, 3)
> x6 <- runif(n, -3, 3)
> x7 <- runif(n, -3, 3)
> x8 <- runif(n, -3, 3)
> y1 <- 42+x3 + 2*x6 + 3*x8 + runif(n, -0.5, 0.5)
>
> dat <- data.frame(x1,x2,x3,x4,x5,x6,x7,x8,y1)
> #the real data won't have these names...
>
> cn <- names(dat)
> trg <- "y1"
> xvars <- cn[cn!=trg]
>
> frm1<-as.formula(paste(trg,"~1"))
> frm2<-as.formula(paste(trg,"~ 1 + ",paste(xvars,collapse = "+")))
>
> strt=lm(y1~1,dat) # boot.stepAIC Works fine
>
> #strt=do.call("lm",list(...
2017 Feb 07
12
[Bug 12569] New: Missing directory errors not ignored
...Assignee: wayned at samba.org
Reporter: axkibe at gmail.com
QA Contact: rsync-qa at samba.org
When using --delete-missing-args and --ignore-errors with a a file list it
terminates anyway if one directory, that is not a sub of root, is not existing.
See:
~$ mkdir -p src/a trg/a
~$ echo "/a/b/c" > list
~$ /usr/local/bin/rsync -slt --ignore-errors --force --ignore-missing-args
--delete-missing-args --files-from=list --rsync-path=/usr/local/bin/rsync src
localhost:`pwd`/trg
file has vanished: "/home/axel/src/a/b"
ABORTING due to invalid path from sen...
2012 Nov 29
2
rsync using huge traffic
...sync is using very huge amounts traffic. But first to the setup. The
server I backup has 4GB of data and I use the following command to
backup this data. /usr/bin/rsync -aze 'ssh -i /root/.ssh/backup.key -l
backupuser' --rsync-path='sudo rsync' --delete --exclude-from=ex.list
$SRC $TRG
The problem is that the traffic generated to backup these 4GB of data
is often (yes not every time I backup) up to 200GB and more if I don't
stop the process. Rsync it self is showing me not more than 4GB of
transmitted data at the end of the rsync call.
So is there a known reason for this be...
2004 Sep 21
1
SFTP is prompting for password
Hi,
I am facing a problem in migrating to SFTP from FTP
for an unix based application.
I have got 2 m/c, SRC (Source) m/c and TRG (Target)
m/c.
For SFTP connectivity, I created a Public-Key
(ssh-keygen -t dsa) in src_usr1(user-id) at SRC m/c .
Which created the necessary identification file
(id_dsa & id_dsa.pub) andthen,
I copied the id_dsa.pub into the file authorized_keys
in trg_usr1(user-id) at TRG m/c.
And also pl...
2003 Oct 08
3
2 questions regarding base-n and identifing digits
...the string and
converting back. Is there another way.
It would look something like that:
> a<-1234
> a
[1] 1234
> b<-foo(a)
> b
[,1] [,2] [,3] [,4]
[1,] 1 2 3 4
Thanks!
Andrej
_________
Andrej Kveder, M.A.
researcher
Institute of Medical Sciences SRS SASA; Novi trg 2, SI-1000 Ljubljana,
Slovenia
phone: +386 1 47 06 440 fax: +386 1 42 61 493
[[alternative HTML version deleted]]
2009 Oct 30
2
DAHDI/ZAP overlap dialing
Hi,
I have a PRI euroisdn link between an Alcatel PBX and Asterisk.
I'm having some trouble with overlap dialing.
Suppose I dial '874053' from an Alcatel extension ('7034') where '87' is an Alcatel prefix of type "ARS Prof.Trg Grp Seiz.with overlap".
I'm expecting Asterisk to receive '1004053' (where '100' is a prefix which always shows up in the euroisdn setup).
However, Asterisk is only receiving '1004' which means that it's not reading the digits that follow.
Are there issues wi...
2010 Nov 20
4
How to sync an exact list of files, Including deletes!?
Hello,
I'm author of Lsyncd - the live syncing deamon -
http://code.google.com/p/lsyncd/ - a daemon that uses Linux` inotify
to watch for filesystem changes - aggregates them for a few seconds
and then periodically calls rsync to transfer the changes to
target(s). Version 1 was simply aware of directories only, and it
called rsync once with --delete -d for every directory in which
anything
2005 Dec 29
1
use of tapply?
...omeone could
take the time to show me how I can rewrite this code?
Many thanks
Tom
data.intersects<-data.frame(
x=c(0.230,0.411,0.477,0.241,0.552,0.230),
y=c(0.119,0.515,0.261,0.431,0.304,0.389),
angle=vector(length=6),
length=vector(length=6),
row.names=c('tbr','trg','dbr','dbg','pbr','pbg'))
calcDist<-function(x,y){
#calcualates distance from origin (C)
origin<-data.frame(x=0.34,y=0.36)
dx<-origin$x-x
dy<-origin$y-y
length<-sqrt(dx^2+dy^2)
angle<-asin(dy/length)
return(li...
2004 Aug 06
4
mount point
hello...everybody...
i have a question about mount point ...
if i want to separate the streaming by category, let say i want to play an
english category song.
Then what should i do is just go to http://putera-trg.kustem/english and
the song plays.
if i want to play rock category songs, then just go to
http://putera-trg.kustem/rock and the
songs play.
This is about a mount point but i still not understand how to create the
mount point.
is it necessary to set the mount point in the shout.conf & icecast.c...
2008 Feb 08
16
Dom0 issues: snv_79b and Tecra M9
Hi all,
I have a Toshiba Tecra M9 and have not been able to boot it dom0. This
is running SXDE 01/08, snv79b.
After booting under kmdb and setting moddebug=80000000 before booting
the Solaris kernel (with help from Dan Mick), I was able to see
mac_ether as the last thing loading, right after loading the e1000g
driver. I cannot drop into kmdb via F1-A after it hangs. I''ve also
2009 Aug 02
3
deliver is curious
Hi,
Im' using deliver with postfix (mailbox_command =
/usr/lib/dovecot/deliver -n -m "$EXTENSION").
In dovecot.conf I've set mail_location to
maildir:/var/spool/imap/users/%u/Maildir
It works, but not for ONE "special" email.
If I send mail to e.g. th at trg-oha.de it gets correctly delivered (see
noerror.txt), but I have one mail with an attachment (i cannot provide
it because of privacy reasons) where i get the attached error.
How comes that deliver doesn't use the mail_location but the real
home-directory (from ldap, it doesn't exist on the...
2017 Feb 06
0
Missing directory errors not ignored
Dear rsync-list,
I got following issue demonstrated by this script:
-----
$ mkdir -p src/a trg/a
$ echo "/a/b/c" > list
$ /usr/bin/rsync -slt --ignore-errors --force --ignore-missing-args
--delete-missing-args --files-from=list src localhost:`pwd`/trg
file has vanished: "/home/axel/src/a/b"
ABORTING due to invalid path from sender: a/b/c
rsync error: protocol incompati...
2004 Aug 06
0
mount point
...rnet users.
I hope this helps clear things up.
brett
> hello...everybody...
>
> i have a question about mount point ...
>
> if i want to separate the streaming by category, let say i want to play
> an english category song.
> Then what should i do is just go to http://putera-trg.kustem/english and
> the song plays.
> if i want to play rock category songs, then just go to
> http://putera-trg.kustem/rock and the
> songs play.
>
> This is about a mount point but i still not understand how to create the
> mount point.
> is it necessary to set the mount...