[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 specified environment ?sys.source Here is 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 to

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 you

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, 2017, at 3:35 AM, John Kane

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 t

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 longer does. > > > > >

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 s

[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 o

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 Neu

[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", "t_inspect_data

[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, stopmis

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 wrote:  

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 pre

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: +4