Re: [R] Linear optimization with quadratic constraints

2017-01-07 Thread Jeff Newmiller
I did't really feel like digging through your HTML-contaminated email [1] that has nothing concrete in it, most notably R code and input data, nor an expected result that the code should yield. (Before you protest that you are LOOKING for R code, please go read about reproducible R examples

Re: [R] recoding responses in a numeric variable

2017-01-07 Thread Jeff Newmiller
Please read the Posting Guide mentioned at the bottom of this and every message. In particular, send your email in plain text format so we get to see what you saw (the mailing list strips out HTML formatting in most cases). Also please work to make your examples reproducible... e.g. give all

Re: [R] About populating a dataframe in a loop

2017-01-07 Thread Rui Barradas
Hello, I believe you should follow Jeremiah's sugestion to first read all csv files into a list and then rbind them. Something like the following. file_list <- list.files(pattern = "*.csv") df_list <- lapply(file_list, read.csv) result <- do.call(rbind, df_list) Hope this helps, Rui

[R] recoding responses in a numeric variable

2017-01-07 Thread Licia Biotti
Hello, I am working with a dataset in R studio, and I have created a numeric variable which I have called fear by using a factor variable (called vn35). Here is the piece of code: fear<-gles_reduced$vn35 levels(fear) table(fear, as.numeric(fear), exclude=NULL) Then I have coded the levels "don't

Re: [R] Linear optimization with quadratic constraints

2017-01-07 Thread Preetam Pal
Hi Guys, Any help with this,please? Regards, Preetam On Thu, Jan 5, 2017 at 4:09 AM, Preetam Pal wrote: > Hello guys, > > The context is ordinary multivariate regression with k (>1) regressors, > i.e. *Y = XB + Error*, where > Y = n X 1 vector of predicted variable, > X =

Re: [R] which parallel routine

2017-01-07 Thread Jeff Newmiller
There is always overhead in starting and stopping parallel processes, but the "per subject terms ... slow and complex" suggests to me that this is already a small price. Mcapply tends to be good when you need to share a lot of the same data with all processes and have many processors with

[R] which parallel routine

2017-01-07 Thread Therneau, Terry M., Ph.D.
I'm looking for advice on which of the parallel systems to use. Context: maximize a likelihood, each evaluation is a sum over a large number of subjects (>5000) and each of those per subject terms is slow and complex. If I were using optim the context would be fit <- optim(initial.values,

Re: [R] Error in doc_parse_file

2017-01-07 Thread Ulrik Stervbo
Hi Maicel, Please keep the list in CC. I can't help with read_xml but perhaps someone on the list can. Best, Ulrik On Fri, 6 Jan 2017, 19:03 Maicel Monzon, wrote: > Hi Ulrik, > > > > I meant 'read_xmlmap' was a bug. I did what you told me with all the set > and the

Re: [R] What is c1 file and how to open it (.c1) in R program?

2017-01-07 Thread David Winsemius
> On Jan 7, 2017, at 7:22 AM, Jeff Newmiller wrote: > > There is no guarantee that a filename having a particular extension has any > particular format inside it. You can make guesses and hope they are right, > but the only dependable way to know what format is

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

2017-01-07 Thread Michael Friendly
Significance tests for group differences in a MANOVA of lm(cbind(pc1, pc2) ~ group) will get you what you want, but you are advised DON'T DO THIS, at least without a huge grain of salt and a slew of mea culpas. Otherwise, you are committing p-value abuse and contributing to the notion that

Re: [R] What is c1 file and how to open it (.c1) in R program?

2017-01-07 Thread Jeff Newmiller
There is no guarantee that a filename having a particular extension has any particular format inside it. You can make guesses and hope they are right, but the only dependable way to know what format is inside is to receive communication from the author about it or open it in a text or binary

Re: [R] What is c1 file and how to open it (.c1) in R program?

2017-01-07 Thread Rui Barradas
Hello, I believe you should google "c1 file extension". Apparently it has nothing to do with genetic data. Hope this helps, Rui Barradas Em 06-01-2017 21:31, Jung, Su Yon escreveu: Hello, I have a set of genetic data in .c1 file. I plan to analyze using R. However, I am not sure how to

Re: [R] if i paste this into my windows 3.3.2 R console, it crashes

2017-01-07 Thread Anthony Damico
thanks! https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17206 On Sat, Jan 7, 2017 at 7:34 AM, Duncan Murdoch wrote: > On 07/01/2017 5:51 AM, Jim Lemon wrote: > >> Hi Anthony, >> I think you have included most of the forbidden characters in Windows >> folder names

Re: [R] if i paste this into my windows 3.3.2 R console, it crashes

2017-01-07 Thread Duncan Murdoch
On 07/01/2017 5:51 AM, Jim Lemon wrote: Hi Anthony, I think you have included most of the forbidden characters in Windows folder names and while I am too lazy to count the characters, you may have exceeded the 259 character limit as well. Are there really embedded EOLs as well? This is truly a

Re: [R] if i paste this into my windows 3.3.2 R console, it crashes

2017-01-07 Thread Anthony Damico
haha no doubt. just want to confirm this counts as a reportable bug ( https://www.r-project.org/bugs.html) before bothering r-core On Sat, Jan 7, 2017 at 5:51 AM, Jim Lemon wrote: > Hi Anthony, > I think you have included most of the forbidden characters in Windows >

Re: [R] if i paste this into my windows 3.3.2 R console, it crashes

2017-01-07 Thread Jim Lemon
Hi Anthony, I think you have included most of the forbidden characters in Windows folder names and while I am too lazy to count the characters, you may have exceeded the 259 character limit as well. Are there really embedded EOLs as well? This is truly a masterpiece of computer disobedience. Jim

[R] if i paste this into my windows 3.3.2 R console, it crashes

2017-01-07 Thread Anthony Damico
hi, should i file this on https://bugs.r-project.org/ ? thanks # crash R with this command dir.create( "C:/My Directory/PEW/Hispanic Trends/2015/2013 Recontact Survey of Asian Ame ricans Field dates: 10/16/13 - 10/31/13 Respondents: Nationally-rep resentative sample of 802 Asian

[R] What is c1 file and how to open it (.c1) in R program?

2017-01-07 Thread Jung, Su Yon
Hello, I have a set of genetic data in .c1 file. I plan to analyze using R. However, I am not sure how to open the c1 file in R program (what is the command?) in order to look at the data? Please, help. Thank you. Su Yon Jung, PhD, MPH Assistant Professor for Translational Sciences Section