[R] SOLVED: Re: Source into a specified environment

2017-01-09 Thread G . Maubach
Hi Jim, many thanks for your answer. That's exactly what I need. Many thanks again. Kind regards Georg Von:jim holtman An: g.maub...@weinwolf.de, Kopie: R mailing list Datum: 10.01.2017 03:59 Betreff:Re: [R] Source into a

[R] mstate with multiple initial states?

2017-01-09 Thread Lucy Leigh
Hi, I have a multi-state model that I would like to estimate using the 'mstate' package - but I am not sure how best to approach it and was wondering if anyone could provide some insight for me. Basically, I have a group of kids who have been randomized to one of 2 treatments, A or B. If they

Re: [R] R install/libraries

2017-01-09 Thread Jeff Newmiller
I have noticed a behavior where if I update a package with dependencies, sometimes it fails and the package that was outdated but installed is no longer installed. Once I run install.packages again, it usually seems to work just fine. I have not noticed that base packages are more susceptible

Re: [R] Source into a specified environment

2017-01-09 Thread jim holtman
?sys.source Here is an example of the way I use it: # read my functions into a environment .my.env.jph <- new.env() .sys.source('~/C_Drive/perf/bin/perfmon.r', envir=.my.env.jph) attach(.my.env.jph) Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what

Re: [ESS] ess-16.10 / Error 2

2017-01-09 Thread Eric Lindblad via ESS-help
Dear Martin Mächler, System: Slackware Linux (version 14.0) CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz GNU Emacs 24.2.1 > Your emacs version 24.2 (2012) is relatively old. > The oldest version I have had access relatively quickly, is 24.3 > and if I type >C-h f defvar-local > there, I get

Re: [R] gridExtra-arrangeGrob

2017-01-09 Thread Felipe Carrillo via R-help
I am not sure if something was wrong with my gridExtra installation or grid but after uninstall/re-install of the packages (and reboot) the code is working properly. Thank you all.  On Monday, January 9, 2017 9:51 AM, David Winsemius wrote: > On Jan 9,

Re: [R] how to proof the trend of two columns of data?

2017-01-09 Thread David L Carlson
The list does not assist with homework problems. If this is not a class assignment, you should be more specific about what you have tried and provide a reproducible example (a sample of the real data or some made-up data that has the same columns and data types). In the meantime you could also

Re: [R-es] Unir archivos netCDF

2017-01-09 Thread Joan Giménez Verdugo
Hola Isa, No creo que sea lo más elegante para unir ficheros netCDF pero yo lo que hago es crear un netCDF vacío y almacenar ahí primero un netCDF y luego el siguiente. Eso por ejemplo lo hago cuando tengo series temporales de dos satélites diferentes con diferente resolución, por lo tanto

Re: [R] gridExtra-arrangeGrob

2017-01-09 Thread David Winsemius
> On Jan 9, 2017, at 3:35 AM, John Kane via R-help wrote: > > I'm not sure what the problem is but, if nothing else, it looks like you need > to do > library(grid) > It may be that an early version of ggplot2 or gridExtra was automatically > loading grid and it no

Re: [R] how to proof the trend of two columns of data?

2017-01-09 Thread Rui Barradas
Hello, Inline. Em 09-01-2017 14:55, vod vos escreveu: Hello everyone, If there are two columns, one is age (numeric, cut to several groups), the other is hair color type(factor: yellow, black, white). If the age column is not normal distributed If you use ?lm, it's the residuals that

[R] how to proof the trend of two columns of data?

2017-01-09 Thread vod vos
Hello everyone, If there are two columns, one is age (numeric, cut to several groups), the other is hair color type(factor: yellow, black, white). If the age column is not normal distributed, which statistic method should use to prove the trend relationship between them, for example, the

Re: [R] Source into a specified environment

2017-01-09 Thread Ivan Calandra
Hi Georg, Not sure how it would work in your case, but the 'local' argument to source() is not only TRUE or FALSE; you can also specify an environment. HTH, Ivan -- Ivan Calandra, PhD MONREPOS Archaeological Research Centre and Museum for Human Behavioural Evolution Schloss Monrepos 56567

[R] Source into a specified environment

2017-01-09 Thread G . Maubach
Hi All, I wish everyone a happy new year. I have the following code: -- cut -- modules <- c("t_calculate_RFM_model.R", "t_count_na.R", "t_export_table_2_xls.R", "t_find_duplicates_in_variable.R", "t_find_originals_and_duplicates.R", "t_frequencies.R",

Re: [R-es] Leer csv separado por comas y por espacios

2017-01-09 Thread eric
Y si lees el archivo por lineas con readLines() y luego usas "buscar y reemplazar" y cambias "comas" por \tab, grabas, cierras, y vuelves a leer todo con fread o read.csv? Slds, eric. On 01/09/2017 05:42 AM, Jesús Para Fernández wrote: Buenas compa�eros! Tengo una duda y no se muy bine

Re: [R-es] Unir archivos netCDF

2017-01-09 Thread Carlos Ortega
Hola, Por si te puede ayudar: http://stackoverflow.com/questions/29101807/how-to-merge-netcdf-file-into-one http://stackoverflow.com/questions/18866266/combine-netcdf-files-to-average-the-values-for-variables-in-r Saludos, Carlos Ortega www.qualityexcellence.es 2017-01-09 10:34 GMT+01:00 Isa

[R] Error in ReadInputs(dat1, constant1, stopmissing = c(40, 40, 10), timestep = "daily", : Missing data of Tmax.daily.

2017-01-09 Thread Frederic Ntirenganya
Dear All, Could you please give me a hint on how to overcome this error? Here is the code: data("constants") constant1<-constants constant1$lat<-dat1$Latitude[1] constant1$lat_rad<-0.10123 dat1<-omit(dat1) # ReadInputs climate data data <- ReadInputs(dat1, constant1,

Re: [R-es] Unir archivos netCDF

2017-01-09 Thread javier.ruben.marcuzzi
Estimada Isa García Barón No se sobe netCDF, en su ejemplo usa Windows, yo supe agregar un archivo a otro, o en otras palabras, crear un archivo donde se copia el contenido de otros, pero son archivos de texto, para eso hay una herramienta para concatenar en el sistema operativo, y otra más

Re: [R-es] Leer csv separado por comas y por espacios

2017-01-09 Thread javier.ruben.marcuzzi
Estimado Jesús Para Fernández Por regla al guardar la información hay que informar donde se separa, en su caso hay dos casos, comas y espacios, no se como llego a eso, pero yo intentaría de escribir nuevamente el fichero con los datos, ¿Cuántos datos son? Porque si entran en la capacidad de

Re: [R] gridExtra-arrangeGrob

2017-01-09 Thread John Kane via R-help
I'm not sure what the problem is but, if nothing else, it looks like you need to do library(grid) It may be that an early version of ggplot2 or gridExtra was automatically loading grid and it no longer does.  On Monday, January 9, 2017 1:08 AM, Felipe Carrillo via R-help

Re: [ESS] ess-16.10 / Error 2

2017-01-09 Thread Martin Maechler
> ESS project, > One of the developers asked that I forward this. > > I send the output of running 'make' on ess-16.10. > > Sincerely, > Eric Lindblad > http://www.nurmi-labs.blogspot.com > > > System: Slackware Linux (version 14.0) > CPUs: Intel(R)

Re: [R] R install/libraries

2017-01-09 Thread Jeff Newmiller
You seem to have shafted yourself by thinking you need to run R as administrator... ever. Use Run as Administrator to run the command line and delete your My Documents/R folder and then exit that command line and stay out of it and don't run R as administrator again, because by doing so you

Re: [R] testing whether clusters in a PCA plot are significantly different from one another

2017-01-09 Thread Marchesi, Julian
Dear Micheal So I would be much better off just reporting the PCA as is and conclude what i can from plot cheers Julian Julian R. Marchesi Deputy Director and Professor of Clinical Microbiome Research at the Centre for Digestive and Gut Health, Imperial College London, London W2 1NY Tel: