Re: [R] searching for a specific row name in R

2018-08-15 Thread MacQueen, Don via R-help
It depends on what you want to check. There are a lot of things you can check without looping. For example, if you want to check whether all of the first letters of the identifier names are "A", you could do table( substr(idnames,1,1)) to show you all of the first letters, and how many there

Re: [R] Ordering of facet_wrap() panels

2018-08-15 Thread John
On Wed, 15 Aug 2018 07:21:55 -0700 Stats Student wrote: > Hi, I am generating multiple charts with facet_wrap() and what what I > see, R/ggplot sorts the panels by the facet variable. So adding an > index to the facet variable (1 - bucket, 2 - bucket, etc) does solve > the sorting issue but it's

Re: [R] exponential day

2018-08-15 Thread J C Nash
Since I'm associated with a lot of nonlinear modeling software, including nlsr and (now deprecated) nlmrt, I'll perhaps seem an odd person to say that I calculate an R^2 quite regularly for all sorts of models. I find it useful to know if my nonlinear models do poorly compared to the model that

Re: [R] Problem with loaded R packages

2018-08-15 Thread Spencer Brackett
Many thanks! I will look into apply the advice given. -Spencer Brackett On Wed, Aug 15, 2018 at 3:03 PM Jeff Newmiller wrote: > a) Raw URL text is not legal in R code. URLs MUST ALWAYS be enclosed in > single (') or double (") quotes in R. > > b) The source function expects to go where you

Re: [R] Problem with loaded R packages

2018-08-15 Thread Jeff Newmiller
a) Raw URL text is not legal in R code. URLs MUST ALWAYS be enclosed in single (') or double (") quotes in R. b) The source function expects to go where you tell it to go and retrieve text composed of R statements. A PDF is a binary file... even if it happened to contain some R code that you

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
Hi Spencer, Please be sure to use reply-all to keep the thread on the list and in the list archives for the future benefit of others. It also allows others to participate with additional information, if needed. You have already loaded the packages by using the two library() function calls as

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
Hi, The ?source function is intended to read a plain text R source code file into the R console, not a PDF file. Even if source() could read in a PDF file, you have a typo in the URL, which is CRAN, not BioConductor, and which should be:

[R] Problem with loaded R packages

2018-08-15 Thread Spencer Brackett
Good afternoon, I am trying to load the two R packages CGSDR and GAIA which I have successfully installed onto my R program. Following installation of the two packages, I proceeded upon recommendation to load both packages via the library function. Therefore I inputed following...

Re: [R] exponential day

2018-08-15 Thread Bert Gunter
Please note that R^2 for nonlinear models is nonsense. Search on "R^2 in nonlinear models" for details, e.g. http://statisticsbyjim.com/regression/r-squared-invalid-nonlinear-regression/ Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

Re: [R] exponential day

2018-08-15 Thread Francis Boateng
Thanks Ellison, I will try it. Francis -Original Message- From: S Ellison Sent: Thursday, August 9, 2018 8:12 AM To: Francis Boateng ; r-help@r-project.org Subject: RE: exponential day > Please, how can I determine parameters from exponential equation > Example > one: y =

Re: [R] Ordering of facet_wrap() panels

2018-08-15 Thread Bert Gunter
1. Unless there is good reason to keep a reply private, always cc the list. This allows more brains, possible corrections, etc. 2. Have you read ?factor and ?unique ? Always study the docs carefully. They are generally terse but complete, especially the base docs, and you can often find your

Re: [R] Ordering of facet_wrap() panels

2018-08-15 Thread Bert Gunter
See ?factor. You can either use ?ordered to create an ordered factor to sort the levels as you desire or sort them with factor(). e.g. > f <- factor(letters[3:1]) > f [1] c b a Levels: a b c ## default ordering > f <- factor(f, levels = letters[3:1]) > f [1] c b a Levels: c b a ## explicit

[R] Ordering of facet_wrap() panels

2018-08-15 Thread Stats Student
Hi, I am generating multiple charts with facet_wrap() and what what I see, R/ggplot sorts the panels by the facet variable. So adding an index to the facet variable (1 - bucket, 2 - bucket, etc) does solve the sorting issue but it's ugly. I also read this post which, if I understand

Re: [R] Mysterious seg fault --- SOLVED

2018-08-15 Thread Chris Evans
Ah, if I'd had a fortune for every time I invoked the wrath of the IT gods and the malicious work of their gremlins, I'd be an obscenely wealthy person by now. More seriously, I can't tell you how much I appreciate the joyous flickers of humour here, amidst all the pain and suffering (yes, I