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.
Hi mighty R-gurus and other enthusiastics, I just encountered this: library(its) x <- its(sort(rnorm(10)), as.POSIXct(Sys.time() + 1:10)) plot(x, type = "p", pch = c(rep("A", 5), rep("B", 5))) Am I missing something...
Dear All, I luckily found the following feature (or problem) when tried to apply ifelse-function to an ordered data. > test <- c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE) > ifelse(test, 0, 1:4) [1] 0 0 0 4 1...
>> To answer at least partially to my own question: >> >> "na.to.0" <- function(x) >> { >> xx <- data.matrix(x) >> xx[is.na(x)] <- 0 >> xx <- data.frame(xx) >> xx >> } >> >> seems to work (Idea is/was replace a data.frame NAs by...
a[!is.element(a, b)] Jussi -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Alexander Sokol Sent: 11. marraskuuta 2004 15:34 To: r-help...
There is N-1 linearly independent columns in the NxN matrix. Jussi Jussi M??kinen Analyst, State Treasury, Finance, Finland -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch...
Try (run..): rnorm(1, 0, 1) # (or in this case rnorm(1) - check ?rnorm) aaa <- function(x) x + 1 aaa(1) ?.First Regards, Jussi -----Original Message----- From: Petr Pikal [mailto:petr.pikal at precheza.cz] Sent: Thursday, March 13, 2003...
Sorry, last answer slipped away because accidental key shortcut typing. Thank you for your reply. Here is a sample of my data.frame (KUNTADATA): KUNTADATA[1:10,c(6:8, 20)] Kunta Period Name Asunnot 1100 intarr_14 1 ESPOON...
Thanks Duncan, For pointing this out. You maybe saved my day. I agree that these results are neither something I would like to see. I changed the code to be: ifelse.o <- function (test, yes, no) { storage.mode(test) <- "logical...
Sorry, my previous answer slipped away because accidental key shortcut typing when I was trying to copy/paste the example. *** Thank you for your reply. Here is a sample of my data.frame (KUNTADATA): KUNTADATA[1:10,c(6:8...
Hello R-users. I haven't use R for a life time and this might be trivial - I hope you do not mind. I have a questions about arguments in the Glm-function. There seems to be something that I...
Hello dear r-gurus! I have a question about the logit-model. I think I have misunderstood something and I'm trying to find a bug from my code or even better from my head. Any help is appreciated. The...
I have got few answers which has pointed out that usually logit-model is for a binary response (dependent) variable. And this was a part of my (obviously badly written) question: is it possible to regress frequency data (e.g...
> Thomas Lumley wrote: > > On Tue, 31 May 2005, Duncan Murdoch wrote: > > > > > >>M??kinen Jussi wrote: > >> > >>>Dear All, > >>> > >>>I luckily found the following feature (or problem) when tried to > >>>apply > >>>ifelse-function to an ordered data. > >>> > >>> > >>> > >>>>test <- c(TRUE, TRUE, TRUE...
Hello and thank you dear R-people in advance. This is quite basic question but which I have confronted occasionally and get over it without satisfying solution. The question is about factors, this time I would just like convert a...
To answer at least partially to my own question: "na.to.0" <- function(x) { xx <- data.matrix(x) xx[is.na(x)] <- 0 xx <- data.frame(xx) xx } seems to work (Idea is/was replace a data.frame NAs by...
Can't find what you're looking for? Try searching with Google .