Re: [R] How to create a list of trellis objects for grid.arrange()

2016-10-29 Thread Duncan Mackay
Hi I did not have a look at this when it was sent as I thought it dealt with ggplot objects If you have trellis objects (check by str())or ?class) try printing them print(p2, position = (c(0,0,1,0.5), more =T) print(p1, position = (c(0,0.5,1,1), more = F) The only other way that I can think

Re: [R] difference

2016-10-29 Thread P Tennant
Hi, As Jeff said, more than one grouping variable can be supplied, and there is an example at the bottom of the help page for ave(). The same goes for by(), but the order that you supply the grouping variables becomes important. Whichever grouping variable is supplied first to by() will

Re: [R] Can not update

2016-10-29 Thread Sebastian
Finally I use RStudio to do it. I don't know what it was the problem. Thanks, Sebastian . -Mensaje original- De: "Jeff Newmiller" Enviado el: ‎29/‎10/‎2016 19:07 Para: "residuo.so...@gmail.com" ; "R-help"

Re: [R] Can not update

2016-10-29 Thread Jeff Newmiller
I suspect your difficulty arises because you have installed your library in the Public directory... but I don't use Windows 10 so I could be wrong. Have you tried uninstalling and installing with default configuration, not using Run As Administrator but letting Windows prompt you for your

[R] convert matrix

2016-10-29 Thread Elham - via R-help
Dear Madam / Sir,I saw this function for "Convert to matrix as it is that you wanted" > test2<-as.matrix(test1) > colnames(test2)<-NULL > genelist<-c("Fkh2","Swi5","Sic1") > rownames(test2)<-genelist > test2 > #  [,1]  [,2]  [,3] > #Fkh2 0.141 0.242 0.342 > #Swi5 0.224 0.342 0.334 > #Sic1

[R] (no subject)

2016-10-29 Thread Elham - via R-help
Dear Madam / Sir,I saw this function for "Convert to matrix as it is that you wanted" > test2<-as.matrix(test1) > colnames(test2)<-NULL > genelist<-c("Fkh2","Swi5","Sic1") > rownames(test2)<-genelist > test2 > #  [,1]  [,2]  [,3] > #Fkh2 0.141 0.242 0.342 > #Swi5 0.224 0.342 0.334 > #Sic1

Re: [R] Convert matrix

2016-10-29 Thread Elham Dallalbashi
> Dear Madam / Sir, > I saw this function for "*Convert to matrix as it is that you wanted" * > > >* test2<-as.matrix(test1) > *>* colnames(test2)<-NULL > *>* genelist<-c("Fkh2","Swi5","Sic1") > *>* rownames(test2)<-genelist > *>* test2 > *>* # [,1] [,2] [,3] > *>* #Fkh2 0.141 0.242 0.342 >

[R] hello r

2016-10-29 Thread terry minton
Good afternoon r http://wsitest01.com/minerals.php?france=y18m1xba0w8z My best to you terry minton __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Predict ARMA GARCH model with new data

2016-10-29 Thread Be Water
How to add newdata to be predicted in an ARMA GARCH model with the fGARCH package? ## R version 3.3.1 (2016-06-21) ## Platform: x86_64-w64-mingw32/x64 (64-bit) ## Running under: Windows >= 8 x64 (build 9200) library(fGarch) ## Data simulation set.seed(345) ar.sim <-

[R] Hmisc::latex and the use of \phantom

2016-10-29 Thread Justin Bem
Dear all, Is it possible to avoid the use of \phantom with latex function ? when I run latex(latex=FALSE,…) I get an error message. When I use Format(big.mark= ‘’ ‘’) the result appear correct in R console but not in Latex code. Is it a way to combine numprint with latex ? col.just=

[R] Problem with creation of netcdf file

2016-10-29 Thread Claudio Stefanini
Hello everyone! I have a weird problem with the netcdf format: I want to save part of the lon-lat matrix "radar_ok_final" as .nc file, so I select the first 271 columns (corrensponding to the first 271 values in the longitude vector "Longvector") and I get this plot from the netcdf file that I

[R] Can not update

2016-10-29 Thread residuo.solow
Dear R-Users: I have an R installed in a Windows 10 machine. Update doesn’t work: > update.packages(ask='graphics',checkBuilt=TRUE) --- Please select a CRAN mirror for use in this session --- Warning: package 'cluster' in library 'C:/Users/Public/Documents/R-3.3.1/library' will not be updated

Re: [R-es] pasar argumentos de consola a un script de R que contiene source

2016-10-29 Thread Carlos Ortega
Hola José Luis, Mira esto: http://stackoverflow.com/questions/22412620/define-global-variable-using-function-argument-in-r http://stackoverflow.com/questions/1236620/global-variables-in-r Gracias, Carlos Ortega www.qualityexcellence.es El 29 de octubre de 2016, 19:09, Jose Luis Cañadas Reche

[R-es] pasar argumentos de consola a un script de R que contiene source

2016-10-29 Thread Jose Luis Cañadas Reche
Hola. Tengo un script con la siguiente estructura. #!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) source("carga-datos.R") source("modelo.R") y quiero llamar a mi script desde consola con Rscript --vanilla miscript.R datos1.csv De forma que se guarde como argumento el nombre

[R-es] Modelo mixto en R

2016-10-29 Thread Manuel Spínola
Hola quisiera saber como parameterizar el siguiente diseño con lme4. Tengo 4 tratamientos, con 4 parcelas cada uno, divididas a su vez en 4 subparcelas, y se han tomado 5 medidas repetidas (5 ocasiones) y se quiere ver el cambio en la variable respuesta producido por los tratamientos a través de