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.

13 results for “from:Christian Bieli”

Indexing variables within lapply?
Christian Bieli · Nov 29, 2005 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20051129/b674b46b/attachment.pl

extract index during execution of sapply
Christian Bieli · Jun 22, 2007 · r-help

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...

random generation of a factor
Christian Bieli · May 22, 2006 · r-help

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...

Data management problem (reorder rows in dataframe by text flag)
Christian Bieli · Feb 7, 2007 · r-help

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...

assign object to list
Christian Bieli · Jan 20, 2006 · r-help

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...

updating formula inside function
Christian Bieli · Jan 11, 2006 · r-help

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...

How to handle large dataframes?
Christian Bieli · Feb 14, 2006 · r-help

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...

random generation of a factor
Christian Bieli · May 22, 2006 · r-help

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...

factor levels with umlauts
Christian Bieli · Oct 10, 2006 · r-help

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...

factor levels with umlauts
Christian Bieli · Oct 6, 2006 · r-help

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...

Passing arguments to glm()
Christian Bieli · Jun 30, 2006 · r-help

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...

GEE Modelle in Stata und R
Christian Bieli · Feb 8, 2006 · r-help

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...

problems with submitting an eps-file created in R
Christian Bieli · Jul 22, 2005 · r-help

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 .