Re: [R] GlobalEnv error

2018-03-22 Thread William Dunlap via R-help
Find the .RData file and rename it to anything else. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Mar 22, 2018 at 7:09 PM, Haida wrote: > Previously, the R software was perfectly run without error and I am not > sure why this happens. I have not installed any new

[R] Calculate weighted proportions for several factors at once

2018-03-22 Thread Striessnig, Erich
Hi, I have a grouped data set and would like to calculate weighted proportions for a large number of factor variables within each group member. Rather than using dplyr::count() on each of these factors individually, the idea would be to do it for all factors at once. Does anyone know how this

[R] MCMCglmm multinomial model results

2018-03-22 Thread Michelle Kline
Hi, Thanks in advance for any help on this question. I'm running multinomial models using the MCMCglmm package. The models have 5 outcome variables (each with count data), and an additional two random effects built into the models. The issue is that when I use the following code, the summary only

Re: [R] GlobalEnv error

2018-03-22 Thread Haida
Previously, the R software was perfectly run without error and I am not sure why this happens. I have not installed any new R. If the *RData file is the problem, what should I do? Thank you On Fri, Mar 23, 2018 at 7:58 AM, William Dunlap wrote: > You haven't given much

Re: [R] GlobalEnv error

2018-03-22 Thread William Dunlap via R-help
You haven't given much context, but these error message can come from load() when loading a *.RData file that contains objects reference packages not installed in the current installation of R. When R starts it will load a ".RData" file if one exists, this file is typically created when R shuts

Re: [R] GlobalEnv error

2018-03-22 Thread Jeff Newmiller
Error messages are useful, but without knowing what you did during your session it is hard to look more closely. It would also be helpful to see the output of the sessioInfo function, and the contents of your .Rprofile file in your home directory. Read the Posting Guide, which cautions you that

[R] GlobalEnv error

2018-03-22 Thread Haida
Dear all May I know how to solve this problem? I have encountered this problem after I have logged out from Rstudio. Thank you Warning: namespace ‘caret’ is not available and has been replaced by .GlobalEnv when processing object ‘fit.ann’ Warning: namespace ‘ggplot2’ is not available and has

Re: [ESS] Indenting with magrittr and %>%

2018-03-22 Thread Marie-Helene Burle
Hi William, I use the package aggressive-indent (https://github.com/Malabarba/aggressive-indent-mode) and it works very well in ESS (as in most other modes). I hope this helps. Best, Marie -- Marie-Helene Burle PhD candidate Centre for Wildlife Ecology Simon Fraser University Tel: (+1) 778

Re: [ESS] Indenting with magrittr and %>%

2018-03-22 Thread Ista Zahn
Hi Bill, It will be helpful to give some R code and show how you want it indented ... Best, Ista On Thu, Mar 22, 2018 at 2:44 PM, William Denton wrote: > I'm a big fan of %>% from magrittr and the tidyverse, but I can't get > indenting working with it. I have a long chain of

Re: [R] adjusted values

2018-03-22 Thread Bert Gunter
Tis list is about R programming issues; statistical questons are generally OT. The r-sig-mixed-models list would be a much better place to post your queries. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus

Re: [R] how to add a child to a child in XML

2018-03-22 Thread David L Carlson
It is not listed in the table of contents, but as Ben mentioned, it is documented with newXMLDoc (pages 52-58) along with newXMLDoc, newHTMLDoc, newXMLTextNode, newXMLCDataNode, newXMLCommentNoe, newXMLPINode, and newXMLDTDNode on page 53: newXMLNode(name, ..., attrs = NULL, namespace =

Re: [R] Sum of columns of a data frame equal to NA when all the elements are NA

2018-03-22 Thread Jeff Newmiller
I can see that one might regard having sum( sum( 1 ), sum( NULL ) ) == sum( 1 ) be TRUE as a necessary consistency, but going down that road one might expect Bert's v+NULL == v for all numeric vectors also. I have always avoided that construction as poor computing practice, but if NULL is

[R] adjusted values

2018-03-22 Thread Cristiano Alessandro
Hi all, I am fitting a linear mixed model with lme4 in R. The model has a single factor (des_days) with 4 levels (-1,1,14,48), and I am using random intercept and slopes. Fixed effects: data ~ des_days Value Std.Error DF t-value p-value (Intercept) 0.8274313 0.007937938

Re: [R] How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters

2018-03-22 Thread Sorkin, John
Michael, I apprecate your response. The inner and outer parameters to do not affect the results produced by lme. I am still left with the same questions I had before; (1) How does one include factors in groupData (2) What is the meaning and use of the outer and inner parameters in groupData?

[R] Pin package/s

2018-03-22 Thread Luis Puerto
Hi! I don’t know if you know package manager for macOS Homebrew. With Homebrew there is a way to stop update certain packages: brew pin Does anyone know a way to do a similar thing with R packages? In the same way, it would be great to be able to receive a notification –an email– when a

Re: [R] How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters

2018-03-22 Thread Bert Gunter
r-sig-mixed-models is likely to be a better list for such queries. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Mar 22, 2018 at 5:59 AM,

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Bond, Stephen
Just to clarify and hopefully catch the attention of the maintainer: The newXMLNode function is not mentioned in: https://cran.r-project.org/web/packages/XML/XML.pdf which supposedly describes all functions in the package. Stephen From: Ben Tupper [mailto:btup...@bigelow.org] Sent: Thursday,

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Ben Tupper
Hi, It's a reasonable question. The answer is that it actually is included, but there are many instances across packages where multiple functions are documented on a single help page. The following brings up such a page... (for XML_3.98-1.9) > library(XML) > ?newXMLNode You can see the same

Re: [R] How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters

2018-03-22 Thread Michael Dewey
Dear John You are only allowed to have the primary covariate on the left hand side of the vertical bar. Other covariates go in inner or outer. Michael On 22/03/2018 12:59, Sorkin, John wrote: Windows 10 64-bit, R-Studio, R version 3.4.3 Several questions relating to groupedData: (1) I am

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Bond, Stephen
Big thanks. newXMLNode works great. Wonder why it is not included in the documentation. There is newXMLDoc and newXMLNamespace, but no mention of newXMLNode. Stephen From: Ben Tupper [mailto:btup...@bigelow.org] Sent: Wednesday, March 21, 2018 6:18 PM To: Bond, Stephen Cc: r-help Subject: Re:

[R] How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters

2018-03-22 Thread Sorkin, John
Windows 10 64-bit, R-Studio, R version 3.4.3 Several questions relating to groupedData: (1) I am trying to create a groupedData object that can be used to run an analysis that I have been able to urn using lmer. When I include the interaction terms in the groupedData opbject I get an error

Re: [R] exporting data to stata

2018-03-22 Thread Anthony Damico
hi, you can export the dataset from an R survey design to stata with install.packages('survey') library(survey) library(foreign) write.dta( data1$variables , "c:/path/to/file.dta" ) then type "data1" into the R console to look at the weight, id/cluster, strata, and fpc variables to use for the

Re: [R] exporting data to stata

2018-03-22 Thread Ista Zahn
On Thu, Mar 22, 2018 at 4:52 AM, Raja, Dr. Edwin Amalraj wrote: > Hi , > > library(foreign) > write.dta(data1, "data1.dta") > > should work. I don't think so: > library(foreign) > example(svydesign) > write.dta(dstrat, "~/Downloads/foo.dta") Error in write.dta(dstrat,

Re: [R] exporting data to stata

2018-03-22 Thread Michael Dewey
Dear Rosario Your object called data1 is, as you showed us, of the wrong class. You therefore need to convert it in some way although i suspect you will then use the survey information. Michael. On 22/03/2018 07:46, rosario scandurra wrote: Hi, I am new to R and I want to export data into

Re: [R] R 3.4.4, internet access fails on Windows XP

2018-03-22 Thread Holger Taschenberger
Dear Duncan, thank you for your reply. On Wed, 21 Mar 2018 11:58:15 -0400 Duncan Murdoch wrote: > The Windows FAQ 2.2 says, "Windows XP is no longer supported", so I think > you're out of luck. XP went past "end-of-life" in 2014. > on

Re: [R] Sum of columns of a data frame equal to NA when all the elements are NA

2018-03-22 Thread Stefano Sofia
Thank you. Perfect solution. Stefano (oo) --oOO--( )--OOo Stefano Sofia PhD Area Meteorologica e Area nivologica - Centro Funzionale Servizio Protezione Civile - Regione Marche Via del Colle Ameno 5 60126 Torrette di Ancona, Ancona Uff: 071 806 7743 E-mail:

Re: [R] R 3.4.4, internet access fails on Windows XP

2018-03-22 Thread Duncan Murdoch
On 22/03/2018 5:28 AM, Holger Taschenberger wrote: Dear Duncan, thank you for your reply. On Wed, 21 Mar 2018 11:58:15 -0400 Duncan Murdoch wrote: The Windows FAQ 2.2 says, "Windows XP is no longer supported", so I think you're out of luck. XP went

Re: [R] exporting data to stata

2018-03-22 Thread Raja, Dr. Edwin Amalraj
Hi , library(foreign) write.dta(data1, "data1.dta") should work. The file will be saved in the working directory. Use getwd() to know the working directory. Best wishes Amalraj Raja -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of rosario scandurra