Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Milan, Anwer to your queries: -- But how do you read back the contents of the file? You need to specify the encoding when reading it too. Answer: I read back as stated in 'Case 2' -- Are you sure the notepad saved the text as UTF-8? Answer: Yes. Regards, Sunny On Mon, Mar 28, 2016 at 9:58 PM, Mi

Re: [R] [FORGED] help in maximum likelihood estimation

2016-03-28 Thread William Dunlap via R-help
Using the print.level=2 argument to nlm can help track this down. Also, set options(warn=1) before calling nlm so warnings get printed as soon as they are generated. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Mar 28, 2016 at 3:32 PM, Rolf Turner wrote: > On 29/03/16 09:19, heba eldeeb

Re: [R] [FORGED] help in maximum likelihood estimation

2016-03-28 Thread Rolf Turner
On 29/03/16 09:19, heba eldeeb via R-help wrote: Dear All I'm trying to find the maximum likelihood estimator of a certain distribution using nlm command but I receive an error as: non-finite value supplied by 'nlm' can't figure out what is wrong in my function Any help? Thank you in advance.

Re: [R] How to form groups for this specific problem?

2016-03-28 Thread Satish Vadlamani
Jean: Wow. Thank you so much for this. I will read up igraph and then see if this is going to work for me for the larger dataset. Thanks for the wonderful snippet code you wrote. Basically, the requirement is this: TLA1 (Top Level Assembly) and its components should belong to the same group. If a

[R] help in maximum likelihood estimation

2016-03-28 Thread heba eldeeb via R-help
Dear AllI'm trying to find the maximum likelihood estimator  of a certain distribution using nlm command but I receive an error as:  non-finite value supplied by 'nlm' can't figure out what is wrong in my function Any help? Thank you in advance [[alternative HTML version deleted]] __

Re: [R] Why missing values are not allowed in 'poly'?

2016-03-28 Thread Liviu Andronic
On Mon, Mar 28, 2016 at 8:32 PM, William Dunlap wrote: > If poly were to be changed to allow NA's, how should it act in the > multivariate case when raw=FALSE? > Thank you Bill for looking into this. I was playing myself with your proposed code to come up with a clean patch, and ran into the same

Re: [R] Why missing values are not allowed in 'poly'?

2016-03-28 Thread William Dunlap via R-help
If poly were to be changed to allow NA's, how should it act in the multivariate case when raw=FALSE? Suppose x1 had an NA in position 1 only and x2 had NA in position 2 only. Should the output matrix have NAs in all columns of rows 1 and 2 with its coefs attribute reflectiing only the data in na.o

Re: [R] Could not find function even though I have all necessary packages

2016-03-28 Thread Michael Artz
Thank you everyone I got it! I needed to install munsell was all. I was giving a typo when I tried to install munsell On Mon, Mar 28, 2016 at 12:01 PM, Michael Artz wrote: > Thanks. SessionInfo() did not show it. > > This is the error when I try library(caret) > > > > library(caret) > Loading

Re: [R] Could not find function even though I have all necessary packages

2016-03-28 Thread Michael Artz
Thanks. SessionInfo() did not show it. This is the error when I try library(caret) > library(caret) Loading required package: ggplot2 Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘munsell’ Error: package ‘ggplot2’ could not

Re: [R] Could not find function even though I have all necessary packages

2016-03-28 Thread Jeff Newmiller
Post plain text only please. Are you sure it loaded? Verify with sessionInfo()... -- Sent from my phone. Please excuse my brevity. On March 28, 2016 9:21:56 AM PDT, Michael Artz wrote: >Hi, > I am getting the error, > >Error: could not find function "createDataPartition" > >when I do the cod

Re: [R] Open source project that needs performance optimizations

2016-03-28 Thread Giorgio Garziano
Yes, I think it is worth evaluating what available at: https://cran.r-project.org/web/views/HighPerformanceComputing.html and as a thesis to tackle a "real-life" use case where R language and some of those High Performance Computing packages are used to solve problems about. Or you may implement

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
Le lundi 28 mars 2016 à 20:12 +0530, Sunny Singha a écrit : > Milan, > Ok, Let me take a case of facebook. I used Rfacebook package >  to get posts (getPost()) which returns list() of data frames(post, > comments, Likes) > > let me demonstrate 2 cases of read and write just as you suggested, > Cas

[R] Could not find function even though I have all necessary packages

2016-03-28 Thread Michael Artz
Hi, I am getting the error, Error: could not find function "createDataPartition" when I do the code dataFrame_data <- createDataPartition(data$colA, p=.7, list=FALSE) even though I have run already install.packages("caret", dependencies = c("Depends", "Imports", "Suggests")) and install.packa

Re: [R] How to form groups for this specific problem?

2016-03-28 Thread Adams, Jean
Satish, If you rearrange your data into a network of nodes and edges, you can use the igraph package to identify disconnected (mutually exclusive) groups. # example data df <- data.frame( Component = c("C1", "C2", "C1", "C3", "C4", "C5"), TLA = c("TLA1", "TLA1", "TLA2", "TLA2", "TLA3", "TLA3"

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Milan, Ok, Let me take a case of facebook. I used Rfacebook package to get posts (getPost()) which returns list() of data frames(post, comments, Likes) let me demonstrate 2 cases of read and write just as you suggested, Case 1: Lets say one of the facebook comment has below string value,

Re: [R] How to form groups for this specific problem?

2016-03-28 Thread Sarah Goslee
It isn't at all clear to me how you are creating the groups. They aren't the unique combinations of Component and TLA. They might be based only on TLA value: in your example TLA1 and TLA2 form one group, and TLA3 the other. Without understanding your logic, I can't replicate it with R code. Sarah

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
Le lundi 28 mars 2016 à 19:16 +0530, Sunny Singha a écrit : > Hi, > I think I'm experiencing an issue regarding system Locale. I have > exported '.csv' formatted data frames gathered from various social > media platforms like facebook/twitter/G+, etc. > > I observe many variable/columns consists o

[R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Hi, I think I'm experiencing an issue regarding system Locale. I have exported '.csv' formatted data frames gathered from various social media platforms like facebook/twitter/G+, etc. I observe many variable/columns consists of strings formatted similar to below: " " As expected and I confirmed,

Re: [R] Robust ANCOVA

2016-03-28 Thread Martin Maechler
> David Winsemius > on Sun, 27 Mar 2016 19:30:31 -0700 writes: >> On Mar 27, 2016, at 9:52 AM, HAMID REZA ASHRAFI via >> R-help wrote: >> >> HiI have a set of data with two independent variables, a >> pretest (covariate) and posttest (dependent variable).Can