Re: [R-es] DUDA_R code_Modelos

2015-04-09 Thread Jorge I Velez
Lorena, Solo por curiosidad, cual es la frecuencia y el porcentaje de ceros en tus datos? Saludos, Jorge.- 2015-04-10 0:04 GMT+10:00 Lorena Tudela Marco lorenatudelama...@gmail.com: Muchas gracias por las r�pidas respuestas. Sin duda, es un gustazo contar con un foro de debate y apoyo como

[R-es] A vueltas con los UTF-8 en RStudio

2015-04-09 Thread Pedro Concejero Cerezo
Hola, otra vez a vueltas con los UTF8, seguro que es un tema sempiterno de esta lista y que ya se ha contestado, regannadme por ello (y por escribir sin acentos). Genero un .rda en unix con el system default UTF8 y me lo traigo a un windows. Tengo el Rstudio en windows configurado con Global

Re: [R-es] Dimensiones arreglo.-

2015-04-09 Thread Carlos J. Gil Bellosta
Hola, ¿qué tal? dim(arreglo[1:5, ,, drop = F]) # dim: 5x2 [1] 5 1 2 Está todo explicado en ?[ Salud, Carlos J. Gil Bellosta http://www.datanalytics.com El día 9 de abril de 2015, 16:28, Freddy Omar López Quintero freddy.vat...@gmail.com escribió: Hola muchachos, Espero que estén muy

Re: [R-es] DUDA_R code_Modelos

2015-04-09 Thread Marcelino de la Cruz
puedes comprobar esto: range(as.numeric(Nijt)) El valor mínimo debería ser 0. El 09/04/2015 a las 13:09, Lorena Tudela Marco escribió: Hola a todxs, Hace un tiempo con una base de datos count data y guarde el código R utilizado. Ahora intento sacar de nuevo las estimaciones de los

Re: [R-es] Dimensiones arreglo.-

2015-04-09 Thread Jorge I Velez
Freddy, El comportamiento es de esperar y corresponde a un tema de dise�o. La explicacion, creo, esta en ?[ Saludos, Jorge.- 2015-04-10 0:28 GMT+10:00 Freddy Omar L�pez Quintero freddy.vat...@gmail.com: Hola muchachos, Espero que est�n muy bien. Estoy trabajando con unos arreglos y

Re: [R-es] A vueltas con los UTF-8 en RStudio

2015-04-09 Thread Javier Marcuzzi
Estimado Pedro Concejero Cerezo ¿Que tal una prueba? Pienso en que genere una archivo .rda con Rstudio en windows, con los acentos, luego los mueva de carpeta y ver si están los acentos al usarlo desde su nueva ubicación. Pienso en un problema de windows, porque a mi me paso con archivos Rnw,

[R-es] DUDA_R code_Modelos

2015-04-09 Thread Lorena Tudela Marco
Hola a todxs, Hace un tiempo con una base de datos count data y guarde el código R utilizado. Ahora intento sacar de nuevo las estimaciones de los modelos, y me aparece el siguiente error: *Error in zeroinfl(as.numeric(Nijt) ~ X8 + X20 + SPAIN + United.Kingdom + : * * invalid dependent

[R-es] Dimensiones arreglo.-

2015-04-09 Thread Freddy Omar López Quintero
Hola muchachos, Espero que estén muy bien. Estoy trabajando con unos arreglos y encontré un comportamiento que no conocía. Me pregunto si es algo de esperar. Es lo siguiente. Supongamos el siguiente arreglo: arreglo - array(runif(10*2*2), dim=c(10, 2, 2)) # dim: 10x2x2 y que sobre él

Re: [R-es] Dimensiones arreglo.-

2015-04-09 Thread Freddy Omar López Quintero
¡Gracias ilustres!¡A remover el condicional! 2015-04-09 12:01 GMT-03:00 Jorge I Velez jorgeivanve...@gmail.com: Freddy, El comportamiento es de esperar y corresponde a un tema de diseño. La explicacion, creo, esta en ?[ Saludos, Jorge.- 2015-04-10 0:28 GMT+10:00 Freddy Omar López

Re: [R-es] Temas para word markdown

2015-04-09 Thread Fernando Macedo
Muchas gracias Daniel! La verdad que resulta bastante sencillo... Había encontrado otros editores de que tenían mejores plantillas pero no sabía como hacer para incluirlas así que ahora resulta muy fácil. Un abrazo! DMTV Fernando Macedo Ayudante del área Mejoramiento Genético Facultad de

Re: [R] how to Subset based on partial matching of columns?

2015-04-09 Thread samarvir singh
Thank you. Sarah Goslee. I am rather new in learning R. So people like you are great support. Really appreciate you, taking the time to correct my mistakes. Thanks On Thu 9 Apr, 2015 6:54 pm Sarah Goslee sarah.gos...@gmail.com wrote: Hi, Please don't put quotes around your code. It makes it

[R] Using randtest in rlq works for one dataset, but not for the other....

2015-04-09 Thread Jacqueline
Dear knowledgeable people, I am running rlq analyses for two different datasets. Even though these datasets are quite similar, for one of them I receive the error: Error in randtest.rlq(xtest, modeltype = 2, nrepet = nrepet, ...) : Not yet available when applying randtest(pres.rlq) My first

[R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Elliot Joel Bernstein
I am trying to install R for Windows, but when I use the installer provided on CRAN, a number of third-party packages are installed by default (i.e. lattice, Matrix, codetools, etc.). If R is installed with administrator privileges, so it's available for all users, non-administrators can't update

[R] Convert numerical value into function which returns numerical value

2015-04-09 Thread Rainer M Krug
Hi I want convert, in a function, an argument from a numerical value to a function which returns this value.: My Code: --8---cut here---start-8--- dep - 13 dep - function() {dep} dep --8---cut here---end---8--- This is

[R] Statistics course: Darwin, Australia

2015-04-09 Thread Highland Statistics Ltd
Apologies for cross-posting There are 8 remaining seats on the following course: Course: Data exploration, regression, GLM GAM with introduction to R When: 3-7 August 2015 Where: Darwin, Australia Course flyer: http://www.highstat.com/Courses/Flyers/Flyer2015_08Darwin_regression_GLM_GAM.pdf

[R] Journal of Pure Algebra Statistical Analysis (Call for Paper Publication)

2015-04-09 Thread jpasa
** Journal of Pure Algebra Statistical Analysis /jpasa ** Accepting submissions; please use the online submission system to submit your manuscript . Call for Paper DOI prefix: 10.15520 CrossRef Membership **All the papers are Check by ithenticate / writecheck for Plagiarism** Submission

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Uwe Ligges
On 09.04.2015 23:16, John C Frain wrote: My understanding is that the packages installed with the windows installer were only updated by installing a new version of R or the patched install file for the current version. If this is the case you you do not need to be concerned about updates to

Re: [R] how to Subset based on partial matching of columns?

2015-04-09 Thread Sarah Goslee
Hi, Please don't put quotes around your code. It makes it hard to copy and paste. Alternatively, don't post in HTML, because it screws up your code. On Wed, Apr 8, 2015 at 8:57 PM, samarvir singh samarvir1...@gmail.com wrote: So I have a list that contains certain characters as shown below

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Jeff Newmiller
John's answer is correct but you might like one of the following summaries better. The short (baby bear) answer is no. A longer (papa bear) answer is that anything is possible if you dig deep enough. But the just-right (mama bear) answer is that you don't need to worry about it since users

Re: [R] sorting means for plot in descending order

2015-04-09 Thread peter dalgaard
On 09 Apr 2015, at 08:11 , Luis Fernando García luysgar...@gmail.com wrote: Dear R experts, I am newbie on the R use, now I want to sort my data by mean in a descending and not acending order (like I have done so far). If any of you could help me with this, it would be really

[R] Journal of Pure Algebra Statistical Analysis (Call for Paper Publication)

2015-04-09 Thread jpasa
** Journal of Pure Algebra Statistical Analysis /jpasa ** Accepting submissions; please use the online submission system to submit your manuscript .. Call for Paper DOI prefix: 10.15520 CrossRef Membership **All the papers are Check by ithenticate / writecheck for Plagiarism** Submission

Re: [R] how to Subset based on partial matching of columns?

2015-04-09 Thread David L Carlson
From Sarah's data frame you can get what you want directly with the table() function which will create a table object, mydf.tbl. If you want a data frame you need to convert the table using as.data.frame.matrix() to make mydf.df. Finally combine the two data frames if your x column consists of

[R] recommended references/tutorials for Rmpi (particularly on Windows), please?

2015-04-09 Thread Erin Hodgess
Hello! Has anyone worked with Rmpi on Windows, please? I have downloaded it and also got the Microsoft MPI. The tests work fine. I have worked with MPI on a cluster, using C and have done some work with Rmpi on Linux/Ubuntu. However, I was wondering if someone had a favorite site or text

Re: [R] extracting slot coords from a Polygons class object

2015-04-09 Thread Monica Pisica
Hi Sarah, Thank you so much. This is exactly what i need it. I was wondering if my parsing was totally wrong. I read the SpatialPolygons-class help, but obviously i didn't understand it. Again, thanks so much, Monica Date: Wed, 8 Apr 2015

[R] recursively rename dir and files

2015-04-09 Thread maxbre
this is my reproducible example setwd(.) dir.create(./my dir with space) dir.create(./my dir with space/my sub dir with space) file.create(./my dir with space/my dir file with space.txt) file.create(./my dir with space/my sub dir with space/my sub dir file with space.txt) now I need to rename

[R] sorting means for plot in descending order

2015-04-09 Thread Luis Fernando García
Dear R experts, I am newbie on the R use, now I want to sort my data by mean in a descending and not acending order (like I have done so far). If any of you could help me with this, it would be really appreciated! Thanks! Please find the script attached with the summary of the dat object

Re: [R] Convert numerical value into function which returns numerical value

2015-04-09 Thread William Dunlap
You can make such functions by using the fact that a function (really, a 'closure') always has access to the environment in which the function was created. E.g. makeConstantFunction - function(constant) { force(constant) # evaluate the argument now function(PAI) { constant

Re: [R] extracting slot coords from a Polygons class object

2015-04-09 Thread Michael Sumner
Note that you can get everything (without recording its structure) with coordinates(as(as(x, SpatialLines), SpatialPoints)) - also ggplot2 uses fortify methods to turn these objects into tables. Cheers, Mike. On Thu, 9 Apr 2015 at 22:57 Monica Pisica pisican...@hotmail.com wrote: Hi Sarah,

[R] KDE on a large dataset (15 million points)

2015-04-09 Thread Maurizio GIBIN
Hello everyone, I am having some troubles in calculating a kde surface from a datatable. The code is efficient in my opionion, but I have a problem on the output. After some modelling that is not relevant for the purpose of my question I obtain a data.table of around 15 million records (for half

Re: [R] sorting means for plot in descending order (Luis Fernando Garc?a)

2015-04-09 Thread Manel Amado Martí
Re: Try with sort() function sort(x, decreasing = FALSE, ...) As you can see, u can set the argument decreasing=TRUE, then, it'll sort by decreasing order. For more details, call: help(sort) under R console Message: 23 Date: Thu, 9 Apr 2015 03:11:37 -0300 From: Luis Fernando Garc?a

[R] how to Subset based on partial matching of columns?

2015-04-09 Thread samarvir singh
So I have a list that contains certain characters as shown below `list - c(MY,GM+ ,TY,RS,LG)` And I have a variable named CODE in the data frame as follows `code - c(MY GM+, ,LGTY, RS,TY)` 'x - c(1:5) `df - data.frame(x,code)` df x code 1 MY GM+ 2 3 LGTY 4 RS 5 TY

[R] fUtilities error

2015-04-09 Thread 정진선
Hi, there. I'd like to run OCAP program to analyse iTRAQ data, but i failed to run due to error of fUtilities. It only could run under the R 2.0.0 version. However i couldn't install R program under the R.2.0.0 version. While i'm trying to figure out the problem, I found that fUtilities were

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread John McKown
On Thu, Apr 9, 2015 at 8:42 AM, Elliot Joel Bernstein e...@cornell.edu wrote: I am trying to install R for Windows, but when I use the installer provided on CRAN, a number of third-party packages are installed by default (i.e. lattice, Matrix, codetools, etc.). If R is installed with

Re: [R] Coxme penalized log-likelihood mismatch

2015-04-09 Thread Therneau, Terry M., Ph.D.
The perils of backwards compatability During computation the important quantity is loglik + penalty. That is what is contained in the third element of the loglik vector. Originally that is also what was printed, but I later realized that for statistical inference one wants the loglik

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread John C Frain
My understanding is that the packages installed with the windows installer were only updated by installing a new version of R or the patched install file for the current version. If this is the case you you do not need to be concerned about updates to these packages. Perhaps some one wiser that I