similar to: counting with factors

Displaying 20 results from an estimated 10000 matches similar to: "counting with factors"

2007 Oct 25
4
ploting labels on barplot
Again me. I want to plot the numbers on the bars of a barplot. This can be done using hist function when setting the label argument true (i.e. data <- c(1,2,3,4) hist(data, labels=T) When I try this using barplot I get an error: > barplot(summary(data), labels=T) Error in axis(if (horiz) 2 else 1, at = at.l, labels = names.arg, lty = axis.lty, : formal
2007 Dec 01
3
compare strings
Sorry for the question, but I really cannot find the right search terms to find an answer.. I have a data frame with strings in some of the columns. I want to know all the rows where the strings in both columns are equal. How do I do this? Thanks, Bernd [[alternative HTML version deleted]]
2007 Oct 25
2
data frame usage
Hi, I am new to R and couldn't find any information on how to handle my table data that I just read in the way I want to use it.. I read in a table from a file: x <- read.delim("filenam", header=TRUE) one column (x$label) hold the class labels. Another holds some values (x$val). I want to calculate summary statistics for different classes. How would I do this? Thanks, Bernd
2007 Oct 29
2
Qsub - unable to open connection to X11 display
Hi there, I want to run an R script on a cluster with qsub. Obviously I don't want to display any X window, but I want use png() or something else to write out images. Unfortunately I get the following error message: > png(filename = " ALL.png", width = 480, height = 480, pointsize = 12, bg = "white", res = NA) Error in X11(paste("png::", filename,
2008 Mar 17
1
summary of summaries
Hi, I have a few hundreds files with numerical information of different length but with the same column structure. I use the following code to get summary statistics fplist <- list.files(pattern=".*analysis") for (fp in fplist){ x2 <- read.delim(fp) summary(x2) } Summary gives something like: summary (x2) V1 V2
2007 Nov 26
1
looking for packages that visualize nucleotide sequence properties
Hi there, I am looking for R-packages that can help me visualize properties on nucleotide sequences. I want to display sequences in the 1-100K base range as lines and plot features above and below those lines. Any ideas would be welcome. Thanks, Bernd
2001 Dec 07
1
densityplots
Dear all, I am new in R so please forgive the "dumb" question... I am used to work with Mathematica where it is possible to display a 2D array as a collection of shaded squares. The gray level there represents the value of the array element. It is basically a projection of a 2-dimensional histogram. After a lot of reading I still haven't found that kind of function. I would be
2002 May 24
1
Axis labels
Dear all I have a problem with assigning my own labels to the axis of a plot. I want to substitute the given labels e.g. 1,2,3,... with a vector of values and strings e.g. "12.23", "1.34", "245,5", "Result". B.t.w. how do I rotate these labels so they don't overlap???? I want to use the image function to plot. Thanks for your kind help. Bernd
2008 Jan 04
1
R command line arguments
Hi, I would like start R in BATCH mode and submit my own parameters. Or in other words, I would like to specify variables from the command line and execute a script using those. I have been looking at commandArgs and calling R from the command line under bash: R CMD BATCH --no-save --args -filename="$filname" -- r-test.R r-test.Rout The problem here is, if $filename contains
2008 Nov 17
1
Type III ANOVA of package car depends on factor level order
## Question1: How to define IV with interaction alone, without main effects? ## Question2: Should Type III ANOVA in package car be independent of the factor level order? ## data from http://www.otago.ac.nz/sas/stat/chap30/sect52.htm drug <- c(t(t(rep(1,3)))%*%t(1:4)); disease <- c(t(t(1:3)) %*% t(rep(1,4))); y <- t(matrix(c( 42 ,44 ,36 ,13 ,19 ,22 ,33 ,NA ,26 ,NA ,33 ,21 ,31 ,-3 ,NA
2007 Jul 05
3
summarizing dataframe at variable/factor levels
All, Is there an efficient way to apply say "mean" or "median" to a dataframe according to say all combinations of two variables in the dataframe? Below is a simple example and the outline of a "manual" solution that will work but is not very efficient (could also generalize this to a function). Searched the archives and docs but didn't see anything close to
2015 Sep 30
2
sobre fread {data.table}
Hola de nuevo, el archivo .rel esta en una carpeta comprimida .zip, yo la descomprimo con win rar. Como no sea ese el motivo por el que no me da el fichero completo? El 30 de septiembre de 2015, 10:30, MªLuz Morales <mlzmrls en gmail.com> escribió: > Pues soy gafe entonces, > no lo entiendo: > > > datIn <- fread("C:\\Users\\iphealthMariluz\\Documents\\Proyecto
2015 Oct 01
4
sobre fread {data.table}
Hola de nuevo, parece que la última versión del paquete data.table es 1.9.6 La he probado y parece que no funciona bien, me da error: Error in fread("C:/Users/iphealthMariluz/Documents/Proyecto iphealt/ProcesamientoTexto/Adverse Drug Event/ADE-Corpus/DRUG-AE_eliminoLinea1856.rel") : 4 arguments passed to .Internal(nchar) which requires 3 El 30 de septiembre de 2015, 13:38,
2015 Sep 30
2
sobre fread {data.table}
Si en la línea 1856 de tus datos reemplazas |"cotton-wool" spots| por |cotton-wool spots| funciona (y fread lee todas las línas). Suena a bug en el paquete (porque las comillas que no son vecinas de separador las gestiona correctamente). Igual quieres comentarle al autor del paquete el problema para que le eche un ojo. De todos modos, te recomendaría que comprobases el problema
2013 Feb 17
2
nested random factor using lme produces errors
Hi, I am running a mixed-effect model with a nested-random effect. I am interested in gut parasites in moose. I has three different type of treatment that I applied to moose which are from different "families". My response variable is gut parasites and the factors are moose families which is nested within treatment. My data is balanced. To answer this question, I used the lme function
2015 Sep 29
2
sobre fread {data.table}
Y con fread.. directamente sobre el ".rel"... > datIn <- fread("DRUG-AE.rel") > dim(datIn) [1] 6821 8 Saludos, Carlos Ortega www.qualityexcellence.es El 29 de septiembre de 2015, 18:45, Pedro Concejero Cerezo < pedro.concejerocerezo en telefonica.com> escribió: > No tiene cabecera. Tendrás que ponerle nombre a las variables > Prueba este código,
2007 Jul 06
1
maintaining specified factor contrasts when subsetting in lmer
All, I'm using lmer for some repeated measures data and have specified the contrasts for a time factor such that say time 3 is the base. This works fine. However, when I next use the subset argument to remove the last two time values, the output indicates that the specified contrast is not maintained (see below). I can solve this by creating a new dataframe for the subset of interest
2013 Apr 24
2
Regression on stratified count data
Hi all: For stratified count data,how to perform regression analysis? My data: age case oc count 1 1 1 21 1 1 2 26 1 2 1 17 1 2 2 59 2 1 1 18 2 1 2 88 2 2 1 7 2 2 2 95 age: 1:<40y 2:>40y case: 1:patient 2:health oc: 1:use drug 2:not use drug My purpose: Anaysis whether case and
2015 Apr 02
3
Dovecot Oy merger with Open-Xchange AG
On 4/1/15, Reindl Harald <h.reindl at thelounge.net> wrote: > > > Am 01.04.2015 um 14:33 schrieb Bernd Petrovitsch: >> On Mit, 2015-04-01 at 13:07 +0200, Reindl Harald wrote: >>> Am 01.04.2015 um 13:04 schrieb Bernd Petrovitsch: >>>> IMHO the larger the corporation is, the less are the chances for >>>> *long-term* benefits of the OSS/free
2018 May 04
2
Regression model fitting
Hi all , I have a dataframe (Hypertension) with following headers :- > Hypertension ID Hypertension(before drug A) Hypertension(On drug A) On drug B? Healthy diet? 1 160 90 True True 2 190