Hi
Say I've this vector with several duplicates
>x<-c(1,2,3,4,2,6,2,8,2,3)
>which(duplicated(x))
[1] 5 7 9 10 11
But what I realy want is somthing like:
List({2,5,7}, {3,10}, ...)
Then from each sublist I can specify which of the duplicate items to drop
res<-NULL
for(vec in myDuplicateList)
hi, use paste:
# a string/number/date
pn <- '39R5238';
sql <- paste("select u.unitid from test where part =", pn)
^^
# an array of strings/numbers/dates
pn=c(1,2,3,4)
sql <- paste("select u.unitid from test where part in (",
hi, here's a way:
> attr(table(unlist(d)),'dimnames')[[1]]
[1] "1" "2" "3"
> as.numeric(table(unlist(d)))
[1] 1 1 2
soren
- Original Message -
From: "Bingshan Li" <[EMAIL PROTECTED]>
To: "jim holtman" <[EMAIL PROTECTED]>
Cc:
Sent: Sunday, September 17, 2006 6:14 AM
Subject: Re: [R] using
Hi
It seems that survfit() doesn't accept the argumnet 'error' as below
>survfit(fit, error='greenwood')
Error in survfit.coxph(fit, error = "greenwood") :
unused argument(s) (error ...)
Isn't is allowed to do that for a coxph object?
Regards Soren
Windows XP, SP2
R 2.3.0
hi
does anyone have knowledge on how to connected to StatConnector from PHP
I have tried:
new COM("STATCONNECTORSRVLib.StatConnector") or die("Unable to
instantiate StatConnector");
with no succes
regards soren
__
R-help@stat.math.ethz.ch mailing l
yes, of cause, i'm sorry, don't what i was thinking about
regards
- Original Message -
From: "Peter Dalgaard" <[EMAIL PROTECTED]>
To: "Søren Merser" <[EMAIL PROTECTED]>
Cc: "R - help"
Sent: Wednesday, May 10, 2006 9:06 PM
Subject:
hi there
is there a way that i can coerce a vector of integers to ONE string with
the numbers comma separated like:
1:500 ->"1,2,3, ..., 500"
i've tried deparse, but it divides the result into a vector of string
(depending on the setting of width with a max of 500)
regards soren
Ripley" <[EMAIL PROTECTED]>
To: "Søren Merser" <[EMAIL PROTECTED]>
Cc: "R - help"
Sent: Sunday, June 12, 2005 12:39 PM
Subject: Re: [R] y-axis and resizing window
On Sun, 12 Jun 2005, Søren Merser wrote:
> using plot(..., las=1), i.e. horizontal axis label
hi
using plot(..., las=1), i.e. horizontal axis labels, the labels on the
y-axis jams if the heigth of the graphics windov becomes too low
while both x-axis and y-axis kind of removes superflus lables with las=0
(default)
is there a way to make plot behave alike with horizontal lables?
regards s
Hi
I want to plot control charts for several events grouped by employees.
As every employees doesn't encounter every event, a variable number of
control charts is produced in turn.
Now what I need is a way to get a new empty screen when the printout for one
employee has finished as the title lines
o big, i.e. >8
it might not be the wrong trail, so perhaps i have to use formatC somehow
regards soren
- Original Message -
From: "Prof Brian Ripley" <[EMAIL PROTECTED]>
To: "Søren Merser" <[EMAIL PROTECTED]>
Cc: "R - help"
Sent: Thursday, Dece
hi
is it possible to change tabstop (default 8) in the GUI ?
regards soren
i'm using
winxp sp2
R ver. 2.0.1
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.
named lists will do
regard søren
btw thanks for the link to S Poetry
- Original Message -
From: "Patrick Burns" <[EMAIL PROTECTED]>
To: "Søren Merser" <[EMAIL PROTECTED]>
Sent: Saturday, October 16, 2004 5:01 PM
Subject: Re: [R] hashing
As someone has sta
is hashing implemented in R
regards søren
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
exactly what i needed
thanks a lot
soren
- Original Message -
From: "Peter Dalgaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "R-help" <[EMAIL PROTECTED]>
Sent: Tuesday, August 17, 2004 2:35 PM
Subject: Re: [R] table and getting rownames
> [EMAIL PROTECTED] writes:
>
> > hi ther
hi there
say that i have this table
>x<-table(adoc, oarb)
>x
oarb
0 1
adoc
ab1 0
am5 1
ba 14 1
cc 271 3
ch 87 2
dz 362 6
fl
bracket?
d2[] <- lapply(d2, function(x) if (is.factor(x)) factor(x) else x)
- Original Message -
From: "Peter Dalgaard" <[EMAIL PROTECTED]>
To: "Søren Merser" <[EMAIL PROTECTED]>
Cc: "R - help" <[EMAIL PROTECTED]>
Sent: Sunday, June 27
hi there
tried to use subset with drop=TRUE, but all the 'old' levels are preserved,
i.e. when calling e.g. ftable a lot of zeros are displayed
>x<-subset(LREG, (kir=='AA' | kir=='BB') & (type=='t1' | otype=='t2'),
drop=TRUE, select=c(event, kir, type))
> ftable(x)
i explicit have to call facto
Hello
We would like to perform a logistic regression analysis weighting the
independent variable in a temporal fashion, i.e. events occuring most
recent get highest weight. Does anyone know how to do this in R??
Regards
S. Merser and S. Lophaven
hi there
is there a way to convert objects of class ftable into LaTex code
preserving the 'look' with row and column infomation?
xtable() {xtable} can't handle such objects and latex() {Hmisc} just texify
the number matrix,
without row/column information
regards soren
__
par(oma=c(0,0,2,0)) and title(main='TITLE 1', outer=T)
solved my problem
i'm much obliged
kind regards soren
btw sorry for the vague subject line
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the p
hi there
i've got this litle strange problem working with multiple plots i one screen
the title dissapears when more than 4 images comes up
up to 4 plots the title it shows nicely
the display is set up like:
split.screen(figs=c(3,4), erase=TRUE)
some plots
close.screen(all=T)
title(main='TITLE
hi
I need 'rw1062.zip' since i can't get excel, R1070 or R1071 to work with the R (D)COM
Server
everything worked fine in the god rw1062 days
the lapack routines can't be loaded
'unable to load shared library c:\r/moduleslapack.dll, the specified library could not
be found'
don't know if it's th
23 matches
Mail list logo