Re: [R] Is there a sexy way ...?

2024-09-27 Thread Mark Leeds
Rolf can tell us for sure but I thought the goal was to use v ? Maybe not ? Either way, I think Bert wins for shortest and Kimmo wins for longest. IMHO, elegance is in the eye of the beholder. On Fri, Sep 27, 2024 at 4:35 AM Stephen Berman via R-help < r-help@r-project.org> wrote: > Yet ano

Re: [R] Prediction from Arima model

2024-08-31 Thread Mark Leeds
Chris: As David mentioned, if you have "new" data, then the interval has to be a prediction interval because the difference between a CI and a PI is that the PI is constructed for data that hasn't been seen yet. The CI is constructed for data that's already there. I hope this helps. On Sat, Aug 3

Re: [R] duplicated() on zero-column data frames returns empty

2024-05-13 Thread Mark Webster via R-help
s crossed! Best Regards,Mark Webster [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proj

Re: [R] duplicated() on zero-column data frames returns empty

2024-04-07 Thread Mark Webster via R-help
trix for your example: str(duplicated(matrix(0, 5, 0), MARGIN = 0))# logi[1:5, 0 ] Best Regards, Mark Webster [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list

Re: [R] duplicated() on zero-column data frames returns empty vector

2024-04-05 Thread Mark Webster via R-help
duplicated() and anyDuplicated() are generic functions, and > you can subclass your data frames to change their behaviour: > > ... Indeed, I'm already doing something along these lines! Best Regards,Mark [[alternative HTML version deleted]] ___

[R] duplicated() on zero-column data frames returns empty vector

2024-04-04 Thread Mark Webster via R-help
ant, so key is empty!anyDuplicated(df3[, keycols, drop = FALSE]) # TRUE because equivalent to !any(logical(0)) by above, should be FALSE --- Best Regards,Mark [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] on lexical scoping....

2023-04-05 Thread Mark Leeds
Hi Duncan. I read it a long time ago so it's probably best if I read it again ALONG with your corrections. Every detail matters with these concepts so thanks a lot. Mark On Wed, Apr 5, 2023 at 5:12 AM Duncan Murdoch wrote: > It seems mostly correct. Here are a few quibbles: >

Re: [R] on lexical scoping....

2023-04-04 Thread Mark Leeds
obviously, everyone has different opinions on what's useful but I always found this document quite helpful. I think, in the past, someone said that there are some incorrect statements in but I'm not sure what they are. https://askming.github.io/study_notes/Stats_Comp/Note-How%20R%20searches%20and%

[R] Issue with Rmath standalone (dwilcox, pwilcox, qwilcox, rwilcox) with unif_rand()

2023-02-14 Thread Mark Clements via R-help
qwilcox and rwilcox. Can anyone explain this behaviour, please? Sincerely, Mark. När du skickar e-post till Karolinska Institutet (KI) innebär detta att KI kommer att behandla dina personuppgifter. Här finns information om hur KI behandlar personuppgifter<https://ki.se/medarbetare/integri

Re: [R] Sweave

2022-06-26 Thread R. Mark Sharp via R-help
<https://support.rstudio.com/hc/en-us/articles/200552336-Getting-Help-with-R> provided the following guidance with regard to get help with RStudio. The RStudio Community <http://community.rstudio.com/> is our discussion board for asking questions about R, Shiny, and package developme

Re: [R] Funky calculations

2022-02-01 Thread Mark Fowler
Sorry, last post I meant not > 1 Sent from Mail for Windows From: Nathan Boeger Sent: Tuesday, February 1, 2022 12:28 PM To: r-help@r-project.org Subject: [R] Funky calculations Hello, I found

Re: [R] Tephra horizons and confidence

2022-01-21 Thread Mark Hall
Without seeing your code and the various potential parameters you can set, it is really hard to say. BACON is a nifty age-depth modelling program, but the devil can be in the details. It would also help knowing the data also. Best, Mark E Hall On Thursday, January 20, 2022, 08:36:36 AM

[R] R For Windows - Apache Log4J Vulnerability Inquiry

2021-12-14 Thread Franklin, Mark via R-help
r Info MH01W-R for Windows v3.1.1 The R Project https://www.r-project.org/ If this is not the correct email contact, would you be able to provide the appropriate contact? Thanks, Mark Franklin | Business Support Analyst | RBC Global Asset Mana

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-17 Thread Mark Fowler
Hi, This issue bears some similarity to a problem I�ve been experiencing over the last few days. R 4.0.3, Windows 10, RGui. My ability to adjust window dimensions took a serious slide (cursor on edge or corner, click and tug). Usually only works now if I pause for awhile after the click before

[R] Which version of R install for mac

2021-11-05 Thread Mark Don Young
I am having trouble finding a version of R install compatible with my mac. I have an older Macbook pro 2016 with the latest version of Big Slur 11.6. Intel core i5 2.9 Ghz-Dual-Core. Is there a version of R compatible with my computer? Thanks Mark [[alternative HTML version deleted

Re: [R] Generate oauth token using HTTR package in R

2021-08-03 Thread Mark Fowler
Hi Lac, The status code means that you were not authorized to access the site, perhaps reflecting some problem with your syntax or your permissions. I note that attempting to simply go to the link to check on it gives status code 405, meaning the typical click on the hypertext is not an accepte

Re: [R] wanting to count instances of values in each cell of a series of simulated symmetric matrices of the same size

2021-06-01 Thread R. Mark Sharp via R-help
attention. I will provide more definitive feedback later. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com > On Jun 1, 2021, at 10:44 PM, Bert Gunter wrote: > > Come ag

[R] wanting to count instances of values in each cell of a series of simulated symmetric matrices of the same size

2021-06-01 Thread R. Mark Sharp via R-help
= numeric(0)) { kinshipValue <- match(kValue, kinshipValues, nomatch = -1L) if (kinshipValue == -1L) { kinshipValues <- c(kinshipValues, kValue) kinshipCounts[length(kinshipCounts) + 1] <- 1 } else { kinshipCounts[kinshipValue] <- kinshipCounts[kinshipValue] + 1 } list(kinshipVa

Re: [R] Testing optimization solvers with equality constraints

2021-05-21 Thread Mark Leeds
s to supply gradients so I'm not sure what those functions are doing that don't allow it as an argument. I guess some numerical approximation. Hopefully John or Ravi will chime in with their expertise when they see this posting. Mark P.S: You may want to try Rvminb. John wrote

Re: [R] Testing optimization solvers with equality constraints

2021-05-21 Thread Mark Leeds
Hi Hans: I think that you are missing minus signs in the 2nd and 3rd elements of your gradient. Also, I don't know how all of the optimixation functions work as far as their arguments but it's best to supply the gradient when possible. I hope it helps. On Fri, May 21, 2021 at 11:01 AM Hans W

Re: [R] Error using nls function

2021-03-27 Thread Mark Leeds
David: Note that your problem is linear so it looks like you can use the lm function to estimate a, b and c. ( or as a check against what john did ) Unless I'm missing something which could be the case ! Also, see Bloomfield's text for a closed form solution. I think it's called "Intro To Four

Re: [R] library(hms)

2021-03-17 Thread Mark Leeds
Hi: install.packages("hms") should work if you have R installed along with an internet connection. When you do above, if you get a message about other packages needing to be installed, then use install.packages("hms", dependencies = TRUE). On Wed, Mar 17, 2021 at 1:08 PM Gregory Coats via R-

[R] C++11 requirements for package dependencies

2020-11-30 Thread Mark Clements
ions of R? Moreover, as a principle, should a package need to change the Makevars and DESCRIPTION files to suit the most recent updates of their dependencies? I would have thought that such a need would break many packages. Sincerely, Mark. När du skickar e-post till Karolinska Institutet (KI) inneb

Re: [R] Inappropriate color name

2020-11-19 Thread Mark Hall
brouha of 2008 on the UC Berkeley campus when the Metis chancellor of UCB at the time told several groups the term Indian was derogatory and shouldn't be used--a variety of California Native Americans gave him a piece of their mind in no uncertain terms... Best, Mark E Hall On Tuesday, Nov

Re: [R] R for-loop to add layer to lattice plot

2020-10-27 Thread Mark Leeds
Hi: I think you're writing over the plots so only the last one exists. Maybe try P = P + whatever but I'm not sure if that's allowed with plots. On Tue, Oct 27, 2020 at 8:34 AM Luigi Marongiu wrote: > Hello, > I am using e1071 to run support vector machine. I would like to plot > the data with

[R] [R-pkgs] ascii package returns to CRAN

2020-09-21 Thread Mark Clements
The ascii package provides formatted tables and lists in a number of markup formats (Asciidoc, Org mode, Pandoc markdown, ReStructured text, Txt2tags and Textile). Documents in Rmarkdown and Org mode can include R code blocks that produce markup output. Sweave drivers are also available for all

Re: [R] Calling a procedure

2020-09-20 Thread Mark Leeds
Hi Steven: Rui's detailed explanation was great. The way I think of it is, if you don't want to send the variables in with the same order as the formal arguments, then you better name them as you send them in. On Sun, Sep 20, 2020 at 7:23 AM Steven Yen wrote: > Thanks. So, to be safe, al

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-28 Thread Mark Leeds
Hii: It's been a long time but John Fox's "Companion to Appied Regression" book has the expressions for the likelihood of the binomial glm. ( and probably the others also ). Just running logLik is not so useful because it could be leaving out multiplicative factors. If you can get your hands on any

Re: [R] confusion about write.csv

2020-06-04 Thread Mark Leeds
Hi Erin: The default for write.csv is col.names = TRUE . So, in the second one, if you put, col.names = FALSE, that should work. It's confused right now because you want to append but also write the column names again. Mark On Thu, Jun 4, 2020 at 9:34 PM Erin Hodgess wrote: >

Re: [R] [External Email] Re: [External] Re: access for free more than 500 essential Springer Nature textbooks

2020-05-22 Thread Mark Leeds
hat it is for libraries to > obtain access to the e-books for free? It does not seem to me that an > invididual can download one--am I missing that part? > > Thanks > > --Chris Ryan > > Mark Leeds wrote: > > Abby: here's an easier link for seeing what you might like.

Re: [R] [External] Re: access for free more than 500 essential Springer Nature textbooks

2020-05-22 Thread Mark Leeds
Abby: here's an easier link for seeing what you might like. https://link.springer.com/search?facet-content-type=%22Book%22&package=mat-covid19_textbooks&%23038;facet-language=%22En%22&%23038;sortOrder=newestFirst&%23038;showAll=true On Fri, May 22, 2020 at 9:18 PM Richard O'Keefe wrote: > the r

Re: [R] Help with map()

2020-05-14 Thread Mark Fowler
Any chance you forgot to load a library (e.g. maps) for the second round, or maybe changed a loading sequence and overwrote the intended map function? Looks like #2 might be trying to use a purrr-style map function. Sent from Mail for Windows 10 F

Re: [R] 'closure' (was "stats:: spline's method could not be monoH.FC")

2020-05-06 Thread Mark Leeds
mple is NOT an example of "messing around with environments." > > On Thu, 7 May 2020 at 15:36, Mark Leeds wrote: > > > > Hi Abby: I agree with you because below is a perfect example of where > not understanding environments causes a somewhat > > mysterious pr

Re: [R] 'closure' (was "stats:: spline's method could not be monoH.FC")

2020-05-06 Thread Mark Leeds
Richard: I may have implied that one should "mess with environments" by saying that I agree with Abby. If so, my apologies because that's not what I meant. I only meant understanding. On Thu, May 7, 2020 at 12:47 AM Mark Leeds wrote: > Hi Richard: I didn't say it was a

Re: [R] 'closure' (was "stats:: spline's method could not be monoH.FC")

2020-05-06 Thread Mark Leeds
Hi Abby: I agree with you because below is a perfect example of where not understanding environments causes a somewhat mysterious problem. Chuck Berry explains it in a follow up email. https://r.789695.n4.nabble.com/issues-with-environment-handling-in-model-frame-td4762855.html On Wed, May 6, 2

[R] Fwd: stats:: spline's method could not be monoH.FC

2020-05-03 Thread Mark Leeds
n the past. It's going to take me some time but I highly recommend checking it out if you haven't already. Maybe it's like a fine wine and just gets better with age !!! Good luck. Mark -- Forwarded message - From: Abby Spurdle Date: Sun, May 3, 2020 at 6

Re: [R] stats:: spline's method could not be monoH.FC

2020-05-03 Thread Mark Leeds
to ask is of course stackoverflow. On Sun, May 3, 2020 at 6:19 AM Abby Spurdle wrote: > Hi Mark, > > The article is good. > However, there's still some grey areas. > > The documentation for base::typeof equates a closure with a function. > However,

Re: [R] Problem with MASS::fitdistr().

2020-04-26 Thread Mark Leeds
it's been a long time but I vaguely remember Rvmminb computing gradients ( and possibly hessians ) subject to constraints. John can say more about this but, if one is going to go through the anguish of creating a fitdstr2, then you may want to have it call Rvmminb instead of whatever is cur

Re: [R] Changes to stats::glm function between R versions 3.4.0 and 3.5.1

2020-04-22 Thread Purver, Mark
same root cause. I hope to understand whether such differences indicate any change to the 'glm' function between version 3.4.0 of the 'stats' package and later versions. These differences are only apparent when the model does not converge. Thanks, Mark dat <- data.fram

[R] Changes to stats::glm function between R versions 3.4.0 and 3.5.1

2020-04-16 Thread Purver, Mark
ged? I have rather limited control over the version of R that I use, so I'm hoping I can produce results with 3.5.1 that are as similar as possible to those of 3.4.0. Many thanks, Mark Purver Statistician, UK Ministry of Justice This e-mail and any attach

Re: [R] Relatively Simple Maximization Using Optim Doesnt Optimize

2020-03-12 Thread Mark Leeds
r than a bug in the R code. Mark On Thu, Mar 12, 2020 at 5:55 PM Abby Spurdle wrote: > > (1) An exact solution can be derived quickly > > Please disregard note (1) above. > I'm not sure if it was right. > > And one more comment: > > The conjugate gradient method

Re: [R] Statistical Analysis of an Exchange Rate

2020-03-05 Thread Mark Leeds
or possibly even more appropriate is quant.stackexchange.com. On Thu, Mar 5, 2020 at 4:38 AM Eric Berger wrote: > Alternatively you might try posting to > r-sig-fina...@r-project.org > > > > On Wed, Mar 4, 2020 at 9:38 PM Bert Gunter wrote: > > > Your question is way off topic here -- this lis

Re: [R] File names for mac newby

2020-01-21 Thread R. Mark Sharp via R-help
. Though this absolute path will work, relative paths are often preferred. Mark R. Mark Sharp, Ph.D. rmsh...@me.com > On Jan 21, 2020, at 2:02 PM, Kevin Thorpe wrote: > > You would also need to drop the c: as that is a DOS/Windows thing. > > -- > Kevin E. Thorpe >

Re: [R] Extracting a particular column from list

2020-01-17 Thread Mark Leeds
I nominate the last sentence of Rolf's comment as a fortune. On Thu, Jan 16, 2020 at 3:48 PM Rolf Turner wrote: > > On 17/01/20 1:55 am, Rui Barradas wrote: > > > Hello, > > > > What column and what list? > > Please post a reproducible example, see the link at the bottom of this > > mail and [

[R] [R-pkgs] New package 'semEff'

2019-11-11 Thread Mark Murphy
seful things for linear and generalised linear (mixed) models, like standardised coefficients, R-squared, etc. Feedback/bug reports welcome. This is my first CRAN release. Cheers, Mark -- *Mark V. Murphy* *Community Ecologist* murph...@gmail.com * <https://orcid.org/-0001-9178-0871>* OR

Re: [R] stats::lm has inconsistent output when adding constant to dependent variable

2019-09-28 Thread Mark Leeds
Hi Berwin: Yes, that's it. Donsker is famous for a functional CLT so I was mixing up statistics and stochastic processes I better stick to statistics. It's safer. ! Thanks for correction. I'm ccing R-help since it may be useful to someone there. See below for Berwin's com

Re: [R] stats::lm has inconsistent output when adding constant to dependent variable

2019-09-27 Thread Mark Leeds
correction to my previous answer. I looked around and I don't think it's called the donsker effect. It seems to jbe referred to as just a case of "perfect separability.". if you google for" perfect separation in glms", you'll get a lot of information. O

Re: [R] stats::lm has inconsistent output when adding constant to dependent variable

2019-09-27 Thread Mark Leeds
Hi: In your example, you made the response zero in every case which is going to cause problems. In glm's, I think they call it the donsker effect. I'm not sure what it's called in OLS. probably a lack of identifiability. Note that you probably shouldn't be using zeros and 1's as the response in a

[R] install_github broken for dependencies on packages previously installed from private github repo.

2019-07-25 Thread Mark Mendel
alias for remotes::install_gitub Using R 3.6.0 -- Mark Mendel Director of Software Development MEI Research, Ltd 6016 Schaefer Rd Edina, MN 55436 mmen...@meinergy.com (651) 485-9 <%28952%29%20373-1636>369 http://meinergy.com/ [[alternative HTML version deleted]] _

[R] question about redfit from dplR

2019-07-07 Thread Mark Hall
9]  124  124  127  128  130 ... Any advice would be appreciated.  Also, anyone know of another redfit spectral analysis program other than what is in astrochron? best, Mark Hall [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Increasing number of observations worsen the regression model

2019-05-26 Thread R. Mark Sharp via R-help
8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_3.6.0 R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow G

[R] Vectorised uniroot function

2019-04-23 Thread Mark Clements
r,length=n))$root } rweibullMixturePH <- rfun(pweibullMixturePH) set.seed(12345) y <- rweibullMixturePH(n=1e4,p1=0.5,RR=2,shape1=1.5,shape2=0.5) Has anyone previously developed a similar vectorised uniroot function? Finally, would this be a useful addition to core R? -- Mark När du skickar

[R] Run time error with afex package

2019-04-14 Thread Ricard, Mark D
his architecture? I have tried version 3.3, 3.4 and 3.53 Mark D. Ricard Biomechanics Laboratory<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwweb.uta.edu%2Ffaculty%2Fricard%2FBiomechLab.html&data=02%7C01%7C%7Ceed3acbb15514be30bf108d6222b0941%7C5cdc5b43d7be4

Re: [R] R Data

2019-02-14 Thread Fowler, Mark
I am not sure I would use the word ‘accounted’, more like discounted (tossed out). From: Spencer Brackett Sent: February 14, 2019 9:21 AM To: Fowler, Mark Cc: R-help ; Sarah Goslee ; Caitlin Gibbons ; Jeff Newmiller Subject: Re: R Data Mr. Fowler, Thank you! This information is most

Re: [R] R Data

2019-02-14 Thread Fowler, Mark
Hi Spencer, The an1 syntax is adding regression coefficients (or NAs where a regression could not be done) to the downloaded and processed data, which ends up a matrix. The cbind function adds the regression coefficients to the last column of the matrix (i.e. bind the columns of the inputs in t

Re: [R] MGCV:: boundary conditions in gam

2018-11-13 Thread Mark R Payne
Perfect! This might be a good example to add to the documentation of mgcv somewhere Thanks. Mark On Thu, 8 Nov 2018 at 22:08, Simon Wood wrote: > This first derivative penalty spline will do it, but the price paid is > that the curves are often quite wiggly. > > > library(

[R] MGCV:: boundary conditions in gam

2018-11-08 Thread Mark R Payne
zero at boundaries, so that I simply get a constant value outside the domain? Best wishes, Mark [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

[R] Writing .nc files

2018-08-28 Thread R. Mark Sharp via R-help
Marco, Always post to the r-help list to have a better chance of finding someone that can help. There is a very nice tutorial that you should have found. See http://geog.uoregon.edu/bartlein/courses/geog490/week04-netCDF.html#create-and-write-a-netcdf-file Mark R. Mark Sharp, Ph.D. Data

Re: [R] help

2018-08-10 Thread R. Mark Sharp via R-help
Marco, The error message indicates that nlon*nlat is 420 and that 1378620/420 has a remainder. For the matrix to form, all rows have to be complete. I am guessing you have at least one value incorrect among nlon, nlat, t or the length of fulldatav. Mark R. Mark Sharp, Ph.D. Data Scientist

Re: [R] F-test where the coefficients in the H_0 is nonzero

2018-08-09 Thread Mark Leeds
Hi: the F-test is a joint hypothesis ( I never used that function from the car package but it sounds like it is ) and the t-statistics that come out of a regression are "conditional" in the sense that they test the significance of one coefficient given the other so you wouldn't expect the two ou

Re: [R] Making objects global in a package

2018-07-13 Thread R. Mark Sharp via R-help
I would usually use a function for this. It may not be more R like, but it is more readable to me. If you want, to keep the columns in a file, you could have the function initialize itself on the first call. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526

[R] Problem with adding a raster and a brick

2018-05-24 Thread Mark R Payne
er, or if they are both bricks. Any suggestions what could be going wrong? Installation details below Best wishes, Mark > R.version _ platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 3 minor

Re: [R] Hacked

2018-04-18 Thread Fowler, Mark
Seems it must be the R-list. A horde of ‘solicitation’ emails began arriving about 27 minutes after I posted about not seeing any! Had left work by that time, so did not encounter them until now. From: Mark Leeds [mailto:marklee...@gmail.com] Sent: April 18, 2018 12:33 AM To: Rui Barradas Cc

Re: [R] Hacked

2018-04-17 Thread Mark Leeds
PM, Ding, Yuan Chun wrote: > >> No, I do not use gmail, still got dirty spam email twice. >> >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler, >> Mark >> Sent: Tuesday, April 17, 2018 12:32 PM >> To

Re: [R] Hacked

2018-04-17 Thread Fowler, Mark
Just an observation. I have not seen the spam you are discussing. Possibly it is specific to gmail addresses? -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Puerto Sent: April 17, 2018 4:11 PM To: Peter Langfelder Cc: R-Help ML R-Project; Neotropic

Re: [R] Learning advanced R

2018-03-13 Thread Mark Leeds
See Hadley's advanced R along Thomas Mailund's books. I haven't gone through them carefully but they both seem (from what I've looked at ) to be the best ones for that. Mentions of others are appreciated. On Tue, Mar 13, 2018 at 5:26 PM, Nik Tuzov wrote: > > Hello: > > Could you please sugge

[R] Quantile regression with some parameters fixed across tau..

2018-02-23 Thread Mark R Payne
due to beta. If I just fit the model using the quantreg package like so: mdl <- rq( y ~ alpha +beta, data, tau=c(0.25,0.5,0.75)) ..the values of alpha that I get vary according to the tau. Is there anyway to force alpha to be the same across all taus? Best wishes, Mark [[alternat

Re: [R] how to search r-help?

2018-01-19 Thread Mark Dwyer via R-help
Thank you all for these suggestions. The nabble and markmail links are focus(able) on r-help and easy (for me) to use. - Mark On 19/01/18 14:04, John wrote: On Fri, 19 Jan 2018 10:47:56 -0800 Mark Dwyer via R-help wrote: I am new to this listand am unable to get the search tools listed on

Re: [R] how to search r-help?

2018-01-19 Thread Mark Dwyer via R-help
Also https://www.r-project.org/posting-guide.html indicates that RSiteSearch() within R searches R-help but in my install (3.4.3) RSiteSearch() only searches  "help pages, vignettes or taskviews" On 19/01/18 10:47, Mark Dwyer wrote: I am new to this listand am unable to get the se

[R] how to search r-help?

2018-01-19 Thread Mark Dwyer via R-help
hanks. - Mark Dwyer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.htm

Re: [R] require help

2017-12-27 Thread R. Mark Sharp
Yadav, We need some information that is missing in order to help you. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant

Re: [R] Timezone problem with 3.4.2

2017-11-30 Thread R. Mark Sharp
orrectly from the system setting when R is configured with --with-internal-tzcode (the default on macOS). R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com > On Nov 30,

Re: [R] Timezone problem with 3.4.2

2017-11-30 Thread R. Mark Sharp
Dennis, Brian Ripley pointed out shortly after 3.4.2 was released that the timezone was not being set correctly because of last minute changes to MacOS. You will have to install 3.4.3. I am waiting for the native installer, which will likely be out within a few days. Mark R. Mark Sharp, Ph.D

Re: [R] Interesting behavior of lm() with small, problematic data sets

2017-09-05 Thread mark . hogue
Tim, I think what you're seeing is https://en.wikipedia.org/wiki/Loss_of_significance. Cheers, Mark From: "Glover, Tim" To: "r-help@r-project.org" Date: 09/05/2017 11:37 AM Subject:[R] Interesting behavior of lm() with small, problematic data set

Re: [R] Comparing 2 dale columns

2017-08-23 Thread Mark Sharp
ctor to POSIXct so you do not necessarily ## need the as.Date. However, they are not the same and you may need the Date ## class. data$COL2 <- as.Date(strptime(data$COL2, format = "%m/%d/%y")) data$COL1 <- as.Date(strptime(data$COL1, format = "%m/%d/%y")) data data$Date

Re: [R] Package nleqslv ERROR

2017-08-09 Thread Mark Sharp
scriptive). Thus, when "x" inside your function gets the value of "startx" it becomes a numeric vector of length 2, which is then used to set the length of the numeric vector "f". As soon as the function tries to assign a value to f[3], R correctly throws an informativ

Re: [R] Error in setwd("dir") :

2017-08-05 Thread mark . hogue
Did you put the directory in quotes with forward slashes? Please show command used. Sent from my iPhone > On Aug 5, 2017, at 1:10 PM, ? ? wrote: > > Hello, I got some of the R source code and not being able to Run it in > RStudio. > I get the error: > > Error in setwd("dir") : > cannot change

Re: [R] by() subset by factor gives unexpected results

2017-08-05 Thread Mark Leeds
$x, i$y, col = i$B) points(j$x, j$y, col = j$B) On Sat, Aug 5, 2017 at 5:59 AM, Myles English wrote: > > The answer was (thanks to Mark Leeds) to do with the use of a factor > instead of a vector. > > on [2017-08-05] at 08:57 Myles English writes: > > > I am having trouble u

Re: [R] How to concatenate in R

2017-08-02 Thread Mark Sharp
://www.statmethods.net/management/merging.html Look at the readxl package. You may want to start with http://readxl.tidyverse.org. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Aug 2, 2017, at 6:06 AM, Swain, Subrat wrote: > > > Hi, > > I have 6 excel files, I want to c

Re: [R] Loading Rcmdr

2017-07-24 Thread Mark Sharp
stringi_1.1.5 grid_3.4.1 [45] tools_3.4.1 magrittr_1.5lazyeval_0.2.0 tibble_1.3.3 [49] Formula_1.2-2 cluster_2.0.6 MASS_7.3-47 Matrix_1.2-10 [53] data.table_1.10.4 minqa_1.2.4 rpart_4.1-11nnet_7.3-12 [57] nlme_3.1-131compiler_3.4.1 &g

[R] metRology package

2017-07-12 Thread mark . hogue
t right for harder problems. Thanks in advance for any suggestions. - Mark [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-05 Thread Mark Sharp
I am trying to figure out the algorithm you are using to calculate event_episodes, event_status, and start_minutes. Where does the 129600 come from? Why is the start(minutes) 0 for the last row instead of 40? Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 5, 2017, at 1:03

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Mark Sharp
to have with any guidance regarding how to use the other columns in you data set (e.g., the event(0/1)). Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 4, 2017, at 7:02 AM, Sunny Singha > wrote: > > Thanks Boris and Bret, > I was successful in simulating granular/tra

Re: [R] package to fit mixtures of student-t distributions

2017-06-29 Thread Mark Leeds
Hi: The R package below may be of use to you. https://journal.r-project.org/archive/2009-1/RJournal_2009-1_Ardia+et+al.pdf On Thu, Jun 29, 2017 at 12:15 PM, Ranjan Maitra wrote: > Would package "teigen" help? > > Ranjan > > On Thu, 29 Jun 2017 14:41:34 +0200 vare vare via R-help < > r-help@r-p

[R] Aggregate counts of observations with times surrounding a time?

2017-05-15 Thread Mark Noworolski
I have a data frame that has a set of observed dwell times at a set of locations. The metadata for the locations includes things that have varying degrees of specificity. I'm interested in tracking the number of people present at a given time in a given store, type of store, or zip code. Here's an

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Mark Sharp
Make some small dataframes of just a few rows that illustrate the problem structure. Make a third that has the result you want. You will get an answer very quickly. Without a self-contained reproducible problem, results vary. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Mar 27, 2

Re: [R] Reversing table()

2017-03-17 Thread Mark Sharp
return the vectors, those values that went into the function do not survive the trip. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Mar 17, 2017, at 7:23 AM, Kevin E. Thorpe wrote: > > I am wondering if there is a way to undo the results of table(). > > For example if you h

Re: [R] Correlations Table of Items when compute Cronbach's Alpha

2017-02-21 Thread Mark Sharp
Have you looked at the help page? ?alpha::alpha See the section labeled Value. Look at output <- alpha(data, keys = c(1, 1, 1, -1)) output$r output$r.cor output$r.drop R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Feb 21, 2017, at 9:43 AM, Steven Stoline wrote: > > Dear All

Re: [R] Failure to understand namespaces in XML::getNodeSet

2017-01-31 Thread Mark Sharp
harlesRiver) > ## I was surprised to find the incorrect namespace value did not matter > xml_find_all(no_ns, "//WorkSet//Description", ns = xml_ns(with_ns)) {xml_nodeset (1)} [1] MFIA 9-Plex (CharlesRiver) > ## This also seems to ignore the namespace argument value > xml_find_all(xml_ns_s

Re: [R] Failure to understand namespaces in XML::getNodeSet

2017-01-31 Thread Mark Sharp
UseMethod("xml_find_all") : no applicable method for 'xml_find_all' applied to an object of class "character" R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jan 31, 2017, at 4:27 PM, Hadley Wickham wrote: > > See the last example in ?xml2::xml_find_

[R] Failure to understand namespaces in XML::getNodeSet

2017-01-31 Thread Mark Sharp
the XML string without the namespace and fail when using the XML string with the namespace. Mark PS I am having the same problem with the xml2 package and am hoping understanding one with help with the other. ## library(XML) ## The first XML text (no_ns_xml) does not have a namespace defined

Re: [R] Save a generated .txt (or .csv) file on the desktop

2017-01-30 Thread Mark Sharp
You can define the "file" argument in your call to write.csv() ## This will write out a file named "test_file.csv" to your working directory write.csv(tableau,file = "test_file.csv", row.names=FALSE) R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jan 30, 201

Re: [R] Coverting HTML data into CSV

2017-01-20 Thread Mark Sharp
its argument being the object containing the HTML data. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jan 19, 2017, at 4:11 PM, El Polidan wrote: > > Good evening, > > > I need to convert and HTML data file into a CSV file. > > > I managed to read the html

Re: [R] Fitting Hastie's principal surfaces in R

2017-01-03 Thread Hall, Mark
Did you search for the princurve package? Sounds like it may be what you want. See https://cran.r-project.org/web/packages/princurve/index.html Best, MEH Mark E. Hall, PhD Assistant Field Manager Black Rock Field Office Winnemucca District Office 775-623-1529. On Sun, Jan 1, 2017 at 2:56 AM

Re: [R] Urgent help

2016-12-27 Thread Mark Sharp
Please note that your message should be plain text and any attachments must be text and have a .txt extension. Your attached code was apparently removed because it did not have an extension of .txt. It is best to include your code within the body of the message. Mark R. Mark Sharp, Ph.D

Re: [R] Merging two columns of unequal length

2016-12-12 Thread Mark Sharp
I did not look at the code, but note the following. By definition, 1. You cannot highlight code in plan text, which is the format accepted by r-help. 2. You cannot have columns of different lengths in a dataframe. R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Dec 12, 2016, at 5:41

[R] Some basic time series questions

2016-11-16 Thread Hall, Mark
ice would be appreciated. Thanks in advance, MEH Mark E. Hall, PhD Assistant Field Manager Black Rock Field Office Winnemucca District Office 775-623-1529. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- T

Re: [R] Alternative to "apply" in R 3.2.2

2016-11-11 Thread Mark Sharp
prod(c(7, 2, NA), na.rm = FALSE) [1] NA Mark R. Mark Sharp, Ph.D. Director of Data Science Core Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210)258-9476 e-mail: msh...@txbiomed.org > On Nov 11, 2016,

Re: [R] When customizing last line, the code stops working

2016-11-03 Thread Fowler, Mark
Hi Frank, Maybe just the quotes? paste0("dt_sp_", 1:length(sp)) [1] "dt_sp_1" "dt_sp_2" "dt_sp_3" "dt_sp_4" noquote(paste0("dt_sp_", 1:length(sp))) [1] dt_sp_1 dt_sp_2 dt_sp_3 dt_sp_4 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Frank S. Sent: Nove

Re: [R] lsa-cosine subscript out of bounds error

2016-10-28 Thread Mark Sharp
Anusha, You have written to r-help multiple times and are still using HTML and failing to provide a reproducible example of your problem. Please read and comply with the posting guide. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Oct 28, 2016, at 7:07 AM, Indhira, Anusha >

  1   2   3   4   5   6   7   8   9   10   >