Re: [R] Is it possible to define another kind of NA

2014-11-13 Thread Marc Girondot
Le 13/11/2014 01:26, MacQueen, Don a écrit : Along the lines of what Bert Gunter said, the ideal way to represent LDL results depends on the functions used later to analyze them. I deal with such data on a daily basis and have never found it necessary to incorporate that information in the same

[R] metafor - code for analysing geometric means

2014-11-13 Thread Purssell, Ed
?Dear All I have some data expressed in geometric means and 95% confidence intervals. Can I code them in metafor as: rma(m1i=geometric mean 1, m2i=geometric mean 2, sd1i=geometric mean 1 CI /3.92, sd2i=geometric mean 2 CI/3.92...etc, measure=MD) All of the studies use geometric means.

Re: [R] metafor - code for analysing geometric means

2014-11-13 Thread Michael Dewey
On 13/11/2014 11:00, Purssell, Ed wrote: ?Dear All I have some data expressed in geometric means and 95% confidence intervals. Can I code them in metafor as: rma(m1i=geometric mean 1, m2i=geometric mean 2, sd1i=geometric mean 1 CI /3.92, sd2i=geometric mean 2 CI/3.92...etc,

Re: [R] Is it possible to define another kind of NA

2014-11-13 Thread Keith Jewell
On 13/11/2014 11:08, Marc Girondot wrote: Le 13/11/2014 01:26, MacQueen, Don a écrit : Along the lines of what Bert Gunter said, the ideal way to represent LDL results depends on the functions used later to analyze them. I deal with such data on a daily basis and have never found it necessary

Re: [R] Is it possible to define another kind of NA

2014-11-13 Thread peter dalgaard
As you may know already, that design can be considerably improved by making the wheel triangular, reducing the bump count per revolution by a full 25% -pd On 13 Nov 2014, at 16:17 , Keith Jewell keith.jew...@campdenbri.co.uk wrote: You are re-inventing the wheel and yours will probably end

Re: [R] Is it possible to define another kind of NA

2014-11-13 Thread Rich Shepard
On Thu, 13 Nov 2014, peter dalgaard wrote: As you may know already, that design can be considerably improved by making the wheel triangular, reducing the bump count per revolution by a full 25% It has been written that those who go around in circles think of themselves as big wheels. Rich

Re: [R] Is it possible to define another kind of NA

2014-11-13 Thread Rich Shepard
On Thu, 13 Nov 2014, Keith Jewell wrote: You are re-inventing the wheel and yours will probably end up square! R already has facilities for handling censored data, e.g. Surv in the survival package (which despite its name is applicable to applications other than survival analysis). There

[R] How to put inlined C code on a worker node?

2014-11-13 Thread Mikhail Umorin
Hello — I am using inline C functions within foreach %dopar% loop. On SMP (doParallel, doMP) it works but on MPI-based clusters (doMPI) it does’t. The reason, I think, is because the object code produced using the inline package, essentially an .so file, does not get copied onto the worker

[R] number of weights in multinom

2014-11-13 Thread Franck Vermet
Dear colleagues, In the function multinom (package nnet), I get the following message after training for a model with 9 inputs and 6 classes (output) : # weights: 66 (50 variable) I understand that there are 50 variables in the model, but I don't understand the number 66. How can we

[R] hi

2014-11-13 Thread Cox Lwaka
I have a bit of trouble here to program in r. I am anew user but i really enjoy working with it.I have a large number of variables in a matrix that are arranged sequentially on a line (chromosome). This order has to be maintained whatsoever. I am to develop an r algorithm that will develop

[R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Matthias Weber
Hello togehter, i have a little problem. Maybe anyone can help me. I have 2 data.frames, which look like as follows: First: NAMEMONTH BONUS 1 Andy 2014-10 100 2 Pete 2014-10200 3 Marc2014-10300 4 Andy2014-11400

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Rui Barradas
Hello, See ?merge, in particular the argument 'all'. dat1 - read.table(text = NAMEMONTH BONUS 1 Andy 2014-10 100 2 Pete 2014-10200 3 Marc2014-10300 4 Andy2014-11400 , header = TRUE, stringsAsFactors = FALSE)

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread William Dunlap
merge(df1, df2, all=TRUE) Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Nov 13, 2014 at 6:02 AM, Matthias Weber matthias.we...@fntsoftware.com wrote: Hello togehter, i have a little problem. Maybe anyone can help me. I have 2 data.frames, which look like as follows: First:

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Michael Dewey
On 13/11/2014 14:02, Matthias Weber wrote: Hello togehter, i have a little problem. Maybe anyone can help me. I think you might find ?merge enlightening Indeed given that the word merge occurs in your subject line and your text it is surprising you have not already found it. I have 2

[R] rpart package: How can I save print(rpart)

2014-11-13 Thread Karim Mezhoud
Hi, the print of rpart fitting gives the summary of tree I would like to save the console text of: fit - rpart(formula, data) summary - print(fit) when I look in summary I did not find the same thing as in print(rpart) [1] Clinical Data exists [1] merging samples from Clinical and

[R] rpart package: prp does not work with RStudio and R console

2014-11-13 Thread Karim Mezhoud
Hi, All right for rpart package but it seems there is a confusion in text function. prp is not found Error in fun() : could not find function prp Thanks Ô__ c/ /'_;kmezhoud (*) \(*) ⴽⴰⵔⵉⵎ ⵎⴻⵣⵀⵓⴷ http://bioinformatics.tn/ [[alternative HTML version deleted]]

Re: [R] rpart package: How can I save print(rpart)

2014-11-13 Thread William Dunlap
Use capture.output(), as in junk - capture.output(summary(1:10)) junk [1]Min. 1st Qu. MedianMean 3rd Qu.Max. [2]1.003.255.505.507.75 10.00 cat(junk, sep=\n) Min. 1st Qu. MedianMean 3rd Qu.Max. 1.003.255.505.507.75

Re: [R] rpart package: How can I save print(rpart)

2014-11-13 Thread Karim Mezhoud
Yes Thanks! that works, but I loose the \n when I would like to save or edit it. getTextInWindows is a function that edits any text in editor. getTextInWindows(summary): without \n save (file= junk.txt, junk):without \n getTextInWindow(capture.output(cat(junk, sep = \n))) :No works Thanks

Re: [R] rpart package: How can I save print(rpart)

2014-11-13 Thread William Dunlap
Use paste(collapse=\n, junk) if you want it as a single string with \n's in it. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Nov 13, 2014 at 1:13 PM, Karim Mezhoud kmezh...@gmail.com wrote: Yes Thanks! that works, but I loose the \n when I would like to save or edit it.

Re: [R] rpart package: How can I save print(rpart)

2014-11-13 Thread Karim Mezhoud
OK thanks That works. :) Ô__ c/ /'_;kmezhoud (*) \(*) ⴽⴰⵔⵉⵎ ⵎⴻⵣⵀⵓⴷ http://bioinformatics.tn/ On Thu, Nov 13, 2014 at 10:41 PM, William Dunlap wdun...@tibco.com wrote: Use paste(collapse=\n, junk) if you want it as a single string with \n's in it. Bill Dunlap TIBCO Software

[R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread Zheng Da
Hello, I'm trying to generate plain text from the .Rd files. I run R CMD Rd2txt xx.Rd -o xx.txt to get the plain text file. When I open the text file, I see _^H in front of each character in all section titles. I can't figure out where the problem is. If I don't specify -o argument, R CMD Rd2txt

[R] Help with ddply/summarize

2014-11-13 Thread John Posner
I have a straightforward application of ddply() and summarize(): ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar)) This works just fine: Treatment Week MeanValue 1MyDrug BASELINE 5.91 2MyDrugWEEK 1 4.68 3MyDrugWEEK 2 4.08 4

[R] Data Import to R

2014-11-13 Thread Ramesh Gautam
While importing .csv files into R, all data are converted to factor-by default. But, how can I preserve the original format of the data like numeric to numeric, integer to integer, character to character etc while importing from csv to R environment. I tried several ways, no thing helps. I used

Re: [R] Help with ddply/summarize

2014-11-13 Thread David Winsemius
On Nov 13, 2014, at 3:31 PM, John Posner wrote: I have a straightforward application of ddply() and summarize(): ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar)) This works just fine: Treatment Week MeanValue 1MyDrug BASELINE 5.91 2MyDrug

Re: [R] Data Import to R

2014-11-13 Thread David Winsemius
On Nov 13, 2014, at 4:28 PM, Ramesh Gautam wrote: While importing .csv files into R, all data are converted to factor-by default. But, how can I preserve the original format of the data like numeric to numeric, integer to integer, character to character etc while importing from csv to R

Re: [R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread Duncan Murdoch
On 13/11/2014, 2:51 PM, Zheng Da wrote: Hello, I'm trying to generate plain text from the .Rd files. I run R CMD Rd2txt xx.Rd -o xx.txt to get the plain text file. When I open the text file, I see _^H in front of each character in all section titles. I can't figure out where the problem is.

Re: [R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread Rolf Turner
On 14/11/14 13:59, Duncan Murdoch wrote: On 13/11/2014, 2:51 PM, Zheng Da wrote: Hello, I'm trying to generate plain text from the .Rd files. I run R CMD Rd2txt xx.Rd -o xx.txt to get the plain text file. When I open the text file, I see _^H in front of each character in all section titles. I

Re: [R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread David Winsemius
On Nov 13, 2014, at 11:51 AM, Zheng Da wrote: Hello, I'm trying to generate plain text from the .Rd files. I run R CMD Rd2txt xx.Rd -o xx.txt to get the plain text file. When I open the text file, I see _^H in front of each character in all section titles. I can't figure out where the

Re: [R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread Zheng Da
Thank you. Great help! Given your information, we can generate text files without _^H with the following command: echo tools::Rd2txt(\$input_file\, out=\$output_file\, options=list(underline_titles=FALSE)) | R --no-save It's kind tedious though. I'm just curious. Which text editor can actually

Re: [R] R CMD Rd2txt generate _^H for in all section titles

2014-11-13 Thread Jeff Newmiller
Which text editor can actually display _^H correct? Not aware of any. It is from very old line printer behavior, which most (all?) printers can still support even though few computers are set up to utilize it. --- Jeff

[R] HELP ON NON-LINEAR MIXED MODEL

2014-11-13 Thread Popoola Daniel
Good Morning Sir/Ma, I am POPOOLA DANIEL a Forest Biometrician in making from the University of Ibadan, Ibadan Nigeria. Please Sir/Ma I am having issues on performing Non-linear mixed model on R (using maximum likelihood approach). I am trying to input four different measured variables which

Re: [R] Data Import to R

2014-11-13 Thread PIKAL Petr
Hi Your original numeric data probably contain something which prevents read.* to accept them as numeric (decimal point, white space) what is result of str(imported.data) Petr Pikal -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On

Re: [R] hi

2014-11-13 Thread PIKAL Petr
Hi 1. Do not post in html 2. Post example of data, preferably by dput function 3. Based on posted data explain what do you want to achieve 4. As it seems to be biological issue did you look at Bioconductor? Cheers Petr -Original Message- From:

[R-es] (sin asunto)

2014-11-13 Thread Jorge Tornero - Listas
Estimados todos: Os escribo porque tengo un problema que nos está dejando un poco trastornadillos. Probablemente sea uno de esos que los ve un experto a un kilómetro y dice ¡oh! toca aquí. Pero nos trae de cabeza. El caso es que aquí usamos un script para calcular ciertos parámetros

[R-es] Comportamiento extraño de glm.nb

2014-11-13 Thread Jorge Tornero - Listas
(Perdón, no puse asunto en el post original) Ah, corremos R 3.0.2 y l alibrería MASS 7.3-29 Estimados todos: Os escribo porque tengo un problema que nos está dejando un poco trastornadillos. Probablemente sea uno de esos que los ve un experto a un kilómetro y dice ¡oh! toca aquí. Pero nos trae

Re: [R-es] (sin asunto)

2014-11-13 Thread Jorge Tornero - Listas
Perdón de nuevo. El enlace correctopara los datos es: https://gist.github.com/jtornero/734170b42c8307276451 Gracias y un saludo El 13/11/14 a las 14:03, Jorge Tornero - Listas escribió: Estimados todos: Os escribo porque tengo un problema que nos está dejando un poco trastornadillos.

Re: [R-es] Comportamiento extraño de glm.nb

2014-11-13 Thread Olivier Nuñez
Bueno, es posible que los altos valores de tu respuesta (la media de Fobs es alrededor de 1) y la escasez de datos validos (el 90% de los valores de Fobs son NA) hagan la vida dificil a glm.nb. Puedes probar ayudar glm.nb con valores de arranque razonables para este tipo de datos. Prueba

Re: [R-es] Instalando R en Linux Debian

2014-11-13 Thread Jose Luis Cañadas Reche
Hola. Mira en cran.r-project.org en la parte de como instalar R en linux, básicamente necesitas añadir una línea al sources.list debhttp://favorite-cran-mirror/bin/linux/debian http://%3Cfavorite-cran-mirror%3E/bin/linux/debian squeeze-cran3/ por ejemplo pon en el sources.list

Re: [R-es] Instalando R en Linux Debian

2014-11-13 Thread fer
Hola Jesús: Aqui tienes informacion de como hacerlo en debian: http://cran.r-project.org/bin/linux/debian/ Yo utilizo Mint y es basicamente lo mismo, cambiando el nombre de la distro y la version Ah, que no se te olvide la clave, esta en el mismo link pero bajando bastante para abajo.

Re: [R-es] Comportamiento extraño de glm.nb

2014-11-13 Thread Carlos J. Gil Bellosta
Hola, ¿qué tal? Quiero abundar en el mensaje de Olivier y añadir que no entiendo del todo el que uses link = identity. ¿Por qué no usar la canónica? En tal caso, el ajuste no da problemas. La función glm.nb sin una estimación previa de theta trata de ajustar primero un glm de Poisson para

Re: [R-es] Instalando R en Linux Debian

2014-11-13 Thread eric
Hola Jesus, yo tengo instalado Debian testing (jessie) y despues de hacer un apt-get update aparece la version 3.1.1-1 de R. Antes tuve una version Rolling de Mint, y trate de instalar la ultima version de R desde las fuentes, pero nunca me quedaba bien (puede haber sido por falta de habilidad

Re: [R-es] Instalando R en Linux Debian

2014-11-13 Thread Ruben Tobalina Ramirez
hola Jesus, creo que ya te han respondido pero por si acaso te cuento que yo uso Crunchbang (una distro de Debian Stable) y hace poco me lo instale. Por si te es más cómodo puedes seguir los pasos de http://enclaveder.wordpress.com/2014/10/20/r-cran/ y en siguiente post explica como instalar