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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090604/04136065/attachment-0001.pl>
Dear R-helpers, How come that in the following code the rnorm() function is evaluated only once for each branch of the 'ifelse' ? x <- rnorm(10) y1 <- ifelse(x > 0, rnorm(1) , rnorm(1)) What is the right way to...
Dear R-helpers, How come that in the following code the rnorm() function is evaluated only once for each branch of the 'ifelse' ? x <- rnorm(10) y1 <- ifelse(x > 0, rnorm(1) , rnorm(1)) What is the right way to...
Hi, I would like to feed Sweave with an UTF8 encoded file, and obtain an UTF8 TeX file (so that I can use XeTeX and its font handling facilities). I'm under Win XP. I guess this is a matter...
What is puzzling me is that rnorm(1) is only evaluated *twice*, one time for each branch, with only 2 different random deviates, instead of giving ten different random deviates. y1 has indeed 10 values but with only 2 different...
Dear All, I'm modelling some longitudinal data (1 continuous response variable measured at 6 times (covariate time taken as factor), 1 continuous baseline, one "treatment" variable also taken as a factor) collected in the same subjects using the following...
Hi all, I can't fathom why the accented "?" in the following ggplot2 graph makes R hangs when using tikzdevice,? whereas it works using simple pdf device. ###### library(tikzDevice) library(ggplot2) options(tikzDefaultEngine = "luatex") tikzLualatexPackages =c( ? "\\usepackage{tikz}\n", ? "\\usepackage...
Dear R-users I'm modelling some longitudinal data (1 response variable measured at 6 occasions, 1 baseline, one "treatment" variable) collected in the same subjects using the following model: library(nlme) model.lme <- lme(response ~ V0+ time+ tt + tt...
> But you got only two (eventually one) distinct values, right? Look at > the code for 'ifelse': yes and no are only called once each, then > recycled to desired length. > > I guess you want something like > > x <- rnorm(10) > y <- rnorm...
...ifelse, a function of three **vector** arguments.... Yes !! I misunderstood the functioning of ifelse. Thanks Jacques. Peter Dalgaard wrote: > jropers at freesurf.fr wrote: >> What is puzzling me is that rnorm(1) is only evaluated *twice*, one >> time for each...
Can't find what you're looking for? Try searching with Google .