[R] Growth Curves with lmer

2010-08-11 Thread Michael Scharkow
Dear all, I have some growth curve data from an experiment that I try to fit using lm and lmer. The curves describe the growth of classification accuracy with the amount of training data t, so basically y ~ 0 + t (there is no intercept because y=0 at t0) Since the growth is somewhat nonlinear

[R] Inline text labels in Lattice barchart

2010-03-14 Thread Michael Scharkow
Dear all, I'm trying to create a very simple stacked barchart where the percentages are displayed inside the bar. Apparently, this is not as simple as I thought because I can only create the chart, not the labels: barchart(prop.table(umgang.bpa,margin=1),xlab=Proportion,auto.key=list(adj

[R] Replace NAs in a range of data frame columns

2009-12-12 Thread Michael Scharkow
Dear all, I'm stuck in a seemingly trivial task that I need to perform for many datasets. Basically, I want to replace NA with 0 in a specified range of columns in a dataframe. I know the first and last column to be recoded only by its name. I can select the columns starting like this