Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

1,298 results for “from:Dimitris Rizopoulos”

initial Hessian in optim's BFGS
Dimitris Rizopoulos · Mar 21, 2005 · r-devel

Dear all, I'd like to ask if it would be a good idea to add an extra argument to 'optim' (with default value NULL) to give a initial Hessian for the BFGS algorithm. This could be handy in some...

Viewing function code
Dimitris Rizopoulos · Aug 10, 2009 · r-help

well, you almost have it -- try this: # two methods for the merge generic methods(merge) merge.default merge.data.frame I hope it helps. Best, Dimitris Werner W. wrote: > Hi, > > in the quest of learning from others' codes, I am...

Select specific rows of a matrix
Dimitris Rizopoulos · Nov 9, 2008 · r-help

try this: mat <- matrix(sample(90:2000, 10000, TRUE), 1000, 10) ind <- rowSums(mat > 100 & mat < 120) > 0 mat[ind, ] I hope it helps. Best, Dimitris mentor_ wrote: > Hi, > > if I have a large matrix e.g. with the dimensions...

regular exprs
Dimitris Rizopoulos · Nov 7, 2010 · r-help

Dear All, I would appreciate any help with the following: given the vector 'x' x <- c("Ass1", "Ass.s1", "Ass2", "Ass.s2") I would like to pick up the positions where the character string contains "Ass" but does not contain...

Kaplan-Meier survfit problem
Dimitris Rizopoulos · Apr 19, 2010 · r-help

you need: survfit(Surv(days, status == 1) ~ 1) I hope it helps. Best, Dimitris On 4/19/2010 4:44 AM, ericyujin99 wrote: > > When I try to the code from library(survival) of library(ISwR), > > the following code > > survfit(Surv...

Question: R software
Dimitris Rizopoulos · Apr 5, 2009 · r-help

check package adapt, http://cran.r-project.org/web/packages/adapt/index.html Best, Dimitris salia a wrote: > > > > > > > > > I need the commond in R for double integral over the range - infinity<x<y< infinity . > Could you please help me. > > Thanks...

vectorisation?
Dimitris Rizopoulos · Jul 26, 2010 · r-help

have a look at function rollapply() from package zoo. I hope it helps. Best, Dimitris On 7/26/2010 8:28 AM, Raghu wrote: > Hi > > I have 3500 rows of data (say a single column) in a vector. If I...

length with missing values
Dimitris Rizopoulos · Oct 15, 2004 · r-help

or even: colSums(!is.na(mat)) Best, Dimitris ----- Original Message ----- From: "Peter Dalgaard" <p.dalgaard at biostat.ku.dk> To: "Dimitris Rizopoulos" <dimitris.rizopoulos at med.kuleuven.ac.be> Cc: ""Luis Rideau Cruz"" <Luisr at frs.fo>; <r-help at...

Function question
Dimitris Rizopoulos · Oct 17, 2008 · r-help

try uniroot(), e.g., f <- function (x) x^2 uniroot(function(x, a) f(x) - a, c(0, 10), a = 4) I hope it helps. Best, Dimitris dennis11 wrote: > Hi, > > Let's say very simply there is a function: > > f...

Plotting pdf of function
Dimitris Rizopoulos · Mar 4, 2009 · r-help

have a look at ?curve(), e.g., curve((1 + x^2) / pi, -15, 15) I hope it helps. Best, Dimitris Beetle wrote: > Hi Guys, > I'm a numbie to R. > I searched the forum for plotting pdf's of functions...

Combination
Dimitris Rizopoulos · Feb 17, 2009 · r-help

Eik Vettorazzi wrote: > Hi Dani, > see ?combn . > > combn(1:50,2) > gives you all combinations as matrix. > you can do sth like > > apply(combn(1:50,2),2, paste, sep="", collapse="") note that you could simplify the above by combn...

integer vector to a string
Dimitris Rizopoulos · May 10, 2006 · r-help

probably you need ?paste, e.g., paste(1:500, collapse = ",") I hope it helps. Best, Dimitris Quoting S?ren Merser <merser at image.dk>: > hi there > is there a way that i can coerce a vector of integers to ONE...

Omiting repeated values
Dimitris Rizopoulos · Feb 21, 2007 · r-help

x <- sample(1:3, 20, TRUE) x # do you mean unique(x) # or rle(x)$values I hope it helps. Best, Dimitris ---- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35...

Length of vector without NA's
Dimitris Rizopoulos · Sep 23, 2010 · r-help

try this sum(!is.na(x)) I hope it helps. Best, Dimitris On 9/23/2010 5:08 PM, Ralf B wrote: > Hi, > > this following code: > > x<-c(1,2,NA) > length(x) > > returns 3, correctly counting numbers as well...

Find the first values in vector
Dimitris Rizopoulos · Nov 9, 2009 · r-help

yet another solution is: vec <- c(TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE) seq_len(rle(vec)$lengths[1]) I hope it helps. Best, Dimitris Grzes wrote: > Hi ! > I have a vector: > vec= TRUE TRUE TRUE...

create sequences from two "from" and "to" vectors
Dimitris Rizopoulos · Jan 9, 2009 · r-help

one way is using mapply(), e.g., mapply(":", 1:4, 3:6) I hope it helps. Best, Dimitris Yasir Kaheil wrote: > hi all, > how can I create sequences that start from a known vector, say x1 and end > with another...

distance betwenn axis and axis annotation
Dimitris Rizopoulos · Feb 18, 2009 · r-help

have a look at ?par() and specifically parameter 'mgp', e.g., compare par(mfrow = c(1, 2)) plot(1, 1) plot(1, 1, mgp = c(2.5, 0.5, 0)) I hope it helps. Best, Dimitris Luis Ridao Cruz wrote...

problem with compating 2 strings
Dimitris Rizopoulos · Jan 22, 2009 · r-help

an example would be helpful ... > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. venkata kirankumar wrote: > Hi all, > > I got one problem with compating charecterstrings with...

Remove top-K elements in Vector
Dimitris Rizopoulos · Feb 18, 2009 · r-help

try this: x[-(1:3)] # or tail(x, -3) Best, Dimitris Gundala Viswanath wrote: > Hi all, > > Suppose I hve this vector: > >> x > [1] 3 4 7 17 22 12 15 12 3 3 1 1 > > How can I remove the...

Removing duplicates from a list
Dimitris Rizopoulos · Jan 14, 2009 · r-help

have a look at ?unique(), e.g., unique(c(1,2,3,4,5,2,1)) I hope it helps. Best, Dimitris glenn wrote: > For a list say; > > list1<-{1,2,3,4,5,2,1} > > How do I remove...

Can't find what you're looking for? Try searching with Google .