Re: [R] Difference between R for the Mac and for Windows

2017-03-30 Thread David Winsemius
> On Mar 30, 2017, at 8:40 PM, Boris Steipe wrote: > > I can't remember having seen my students write code that runs correctly on > one platform but not the other. Obviously under the hood there are > significant differences, but as far as code goes, R seems quite

Re: [R] Using R and Python together

2017-03-30 Thread Wensui Liu
How about pyper? On Thu, Mar 30, 2017 at 10:42 PM Kankana Shukla wrote: > Hello, > > I am running a deep neural network in Python. The input to the NN is the > output from my R code. I am currently running the python script and calling > the R code using a subprocess

Re: [R] Difference between R for the Mac and for Windows

2017-03-30 Thread Boris Steipe
I can't remember having seen my students write code that runs correctly on one platform but not the other. Obviously under the hood there are significant differences, but as far as code goes, R seems quite foolproof. There are GUI differences in base R - but AFAIK no such differences in the

[R] Using R and Python together

2017-03-30 Thread Kankana Shukla
Hello, I am running a deep neural network in Python. The input to the NN is the output from my R code. I am currently running the python script and calling the R code using a subprocess call, but this does not allow me to recursively change (increment) parameters used in the R code that would be

[R] Difference between R for the Mac and for Windows

2017-03-30 Thread Neil Salkind
Can someone please direct me to an answer to the question as to how R differs for these two operating systems, if at all? Thanks - Neil __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] customize labels useOuterStrips lattice

2017-03-30 Thread Duncan Mackay
Hi Luigi You were nearly there! Using Rich's factors useOuterStrips(strip = strip.custom(factor.levels = c("much","more","interesting","names","here"), par.strip.text = list(cex = 0.75)), strip.left = strip.custom(factor.levels =

Re: [R] Date operation Question in R

2017-03-30 Thread Thomas Petzoldt
On 30.03.2017 23:34, Paul Bernal wrote: Hello everyone, Is there a way to use the function seq to generate a date sequence in this kind of format: jan-2007? format(seq(ISOdate(2017,1,1), ISOdate(2017,12,31), "months"), "%b-%Y") Also, is there a way to change the Sys.Date() format to the

Re: [R] Getting unexpected extra rows (continued)

2017-03-30 Thread Nordlund, Dan (DSHS/RDA)
This is pretty basic stuff which suggests you need to (re)read the intro to R that comes with your R installation. One approach would be : xFrame <- data.frame(x=x, Transits=NA) hope this is helpful, Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support

[R] Date operation Question in R

2017-03-30 Thread Paul Bernal
Hello everyone, Is there a way to use the function seq to generate a date sequence in this kind of format: jan-2007? Also, is there a way to change the Sys.Date() format to the one mentioned above (jan-2007)? Thanks in advance for your valuable help, Best regards, Paul [[alternative

[R] Getting unexpected extra rows (continued)

2017-03-30 Thread Paul Bernal
Hello everyone, So I have created a date sequence with the following code: >x<-seq(as.Date("1985-10-01"), as.Date(Sys.Date()), "months") >x["Transits"]<-NA >xFrame<-data.frame(x) > str(xFrame) 'data.frame': 379 obs. of 1 variable: $ x: Date, format: "1985-10-01" "1985-11-01"

[R] Generating Covering Arrays

2017-03-30 Thread Shannon Shelburne
Hello, I am trying to determine if R has a package for generating covering arrays. I have done a general Google search as well as searched several R forums and help sites but have not been able to find anything definitive one way or the other. I know there are packages that have the ability to

Re: [R] sem-Package BIC calculation wrong!?

2017-03-30 Thread Peter Dalgaard
> On 30 Mar 2017, at 16:09 , Ludwig Kreuzpointner > wrote: > > To whom it may concern, > when I was calculating BIC with sem > e.g. as follows: > > cfa.mod <- cfa(reference.indicators=FALSE, covs=NULL) > F1: Sentences, Vocabulary,

Re: [R] customize labels useOuterStrips lattice

2017-03-30 Thread Richard M. Heiberger
## I find it easiest to change the "trellis" object. ## assign the result of your useOuterStrips() call to an object name, for example myplot <- useOuterStrips( ... ) ## then names(myplot) myplot$condlevels myplot$condlevels$target <- c("much","more","interesting","names","here")

Re: [R] A question on modeling brain growth using GAM

2017-03-30 Thread David Winsemius
> On Mar 30, 2017, at 6:56 AM, Leon Lee wrote: > > David > > Thank you for your reply. I apologize if I posted in the wrong forum, as I > really couldn't decide which forum is the best place for my question and I > saw similar questions asked before in this forum. > >

Re: [R] fisher.test function error

2017-03-30 Thread David Winsemius
> On Mar 30, 2017, at 2:51 AM, Eshi Vaz wrote: > > Dear All, > > When trying to computer a fisher’s exact test using the fisher.test function > from the gmodels() package, R-Studio gave me an error: Seems unlikely that Rstudio would generate an error message about

[R] rtmvt function in tmvtnorm package

2017-03-30 Thread Maity, Arnab K
Dear R users. I am trying to generate random numbers from truncated multivariate t distribution. I use the following: as.vector(rtmvt(n = 1, sigma = Qc.inv, df = 3, lower = logtime[censored.id], + algorithm = "gibbs")) Error in while (!acceptedW) { : missing value where

[R] sem-Package BIC calculation wrong!?

2017-03-30 Thread Ludwig Kreuzpointner
To whom it may concern, when I was calculating BIC with sem e.g. as follows: cfa.mod <- cfa(reference.indicators=FALSE, covs=NULL) F1: Sentences, Vocabulary, Sent.Completion, First.Letters, Four.Letter.Words cfa.sem <- sem(cfa.mod, S=Thurstone, N=355) summary(cfa.sem) the BIC value is

Re: [R] A question on modeling brain growth using GAM

2017-03-30 Thread Leon Lee
David Thank you for your reply. I apologize if I posted in the wrong forum, as I really couldn't decide which forum is the best place for my question and I saw similar questions asked before in this forum. I agree that a sample of ~30 subjects (70 scans in total), the model can be too

Re: [R] Archive format

2017-03-30 Thread Joe Gain
On 29.03.2017 17:36, Jeff Newmiller wrote: The relevance to R (and therefore R-help) of this question is marginal at best. R might not be the language of choice when you go retrieve the data. Also, this question seems dangerously close to a troll, because the obvious answer is that the data

[R] fisher.test function error

2017-03-30 Thread Eshi Vaz
Dear All, When trying to computer a fisher’s exact test using the fisher.test function from the gmodels() package, R-Studio gave me an error: Bug in FEXACT: gave negative key. I used a workspace of 2e+07. I would really appreciate your help as I do not know how to resolve the issue,

Re: [R] customize labels useOuterStrips lattice

2017-03-30 Thread Duncan Mackay
Hi Luigi see ?strip.custom too late to do any more Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of

Re: [R] Getting an unexpected extra row when merging two dataframes

2017-03-30 Thread jim holtman
you need to show what 'str' shows for the data structure Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Thu, Mar 30, 2017 at 12:08 AM, paulberna...@gmail.com wrote: > Dear Jim, >

Re: [R] passing API key in leaflet

2017-03-30 Thread Thierry Onkelinx
Hi David, The key was stored correctly in the environment. I solved the problem by using addTiles() instead of addProviderTiles() leaflet() %>% addTiles( paste0( "https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=;, Sys.getenv("OCM_API") ) ) Best regards,

[R] customize labels useOuterStrips lattice

2017-03-30 Thread Luigi Marongiu
Dear all, I am plotting some data using lattice and the function useOuterStrips to make use of more labels. It is possible to customize the labels of useOuterStrips so I can decide what to write in it? instead of having, let's say, A and B I could put something more descriptive. best regards luigi

[R] Calculating between and within subject coefficient of variation

2017-03-30 Thread Alicia Ellis
Let's say I have repeated measures of some outcome on some subjects. I want to be able to calculate the within and between subject coefficient of variation for this measure. An example data frame is: df<-data.frame(ID = c(1,1,1,2,2,2,3,3,3), DAY = c(0,3,6, 0,3,6, 0,3,6),

[R] Parallel programming.

2017-03-30 Thread Art U
Hello everyone, I have general question about parallel programming. I'm doing simulations that involves bootstrap. For now I'm using parLapply only for bootstrap part and then function "replicate" for simulations. It is very long function, so here is a short version: