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/20051129/b674b46b/attachment.pl
Hi there During execution of sapply I want to extract the number of times the function given to supply has been executed. I came up with: mylist <- list(a=3,b=6,c=9) sapply(mylist,function(x)as.numeric...
Hi everybody Does anybody know a function that generates a factor of length N with K levels given the proportions c(p1, p2,... ,pk)? It would not be too hard to write it for myself, but if there's a...
how about: t.d <- data.frame(col1=c("31*","0","102*","71*","31","66","47"), col2=c("66","0*","66","80","2*","31*","38*"), stringsAsFactors = FALSE) t.x <- apply(t.d,1,function(x) x[order(unlist(x)==grep("\\*$", unlist...
Dear all I want to generate a list like this: a <- data.frame(1:10) attr(a,'myattribute') <- 'something' b <- data.frame(11:20) attr(b,'myattribute') <- 'anything' mylist <- list(a,b) Is there a way to place the dataframes...
Dear R-Helpers Given a function like foo <- function(data,var1,var2,var3) { f <- formula(paste(var1,'~',paste(var2,var3,sep='+'),sep='')) linmod <- lm(f) return(linmod) } By typing foo(mydata,'a','b','c') I get the result of the...
Dear all I imported a Stata .dta file with the read.dta-function from the foreign-package. The dataframe's dimensions are > dim(d.apc) [1] 15806 1300 Importing needs up to 15 min and calculations with these data are...
Dear Dave and Roland Thanks for your answers! I think sample() does the job I'm looking for. I also came up with rmultinom(), but could not make it working, because I don't want several multinomial distributed vectors, but...
Thanks for your answer. I went round the problem by directly connect to the sql-database instead of generating a .csv file and then upload it. This works perfectly with the RODBC package and is much more suitable, too. Kind...
Hi all I have to generate some test data for import in an sql database. The database is meant for web-based data entry in a study taking place in a german speaking region, so factor levels of the variables...
Hi there I want to pass arguments (i.e. the response variable and the subset argument) in a self-made function to glm. Here is one way I can do this: f.myglm <- function(y,subfact,subval) { glm(d.mydata...
Hall Christian Ich habe Dir hier den Output desselben Models mir den selben Daten mit R und mit Stata gerechnet angeh??ngt. Wie Du siehst sind die Unterschiede nicht unbetr??chtlich. Da Du bestimmt schon ??hnliche Erfahrungen gemacht hast, wollte...
Dear all I've got some problems submitting a manuscript, because I can't manage creating the favourable eps-file of a graph created in R. The journal's graphic requirements are as followed: format: eps width: max. 6 inches...
Can't find what you're looking for? Try searching with Google .