Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread Chris Ryan via R-help
Homework? -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 7, 2024 8:27:18 AM EDT, javad bayat wrote: >Dear all; >I have a question about the water level of a reservoir, when the volume >changed or doubled. >There is a DEM file with the highest elevation 1267 m.

Re: [R] How to Reformat a dataframe

2023-10-28 Thread Chris Evans via R-help
...)` to see more rows ### end Very best all, Chris On 28/10/2023 07:41, Paul Bernal wrote: Hi Iris, Thank you so much for your valuable feedback. I wonder why your code gives you 1512 rows, given that the original structure has 12 columns and 126 rows, so I would expect (125*12)+ 9=1,509 total

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-07 Thread Chris Evans via R-help
outcome of this suggestion still depend on which fonts and output device you are using? ... and that is to some degree still system dependent... On October 6, 2023 7:50:00 AM PDT, Rui Barradas wrote: Às 10:09 de 06/10/2023, Chris Evans via R-help escreveu: The reason I am asking is that I wo

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
these issues though I do hit problems exchanging things with my Spanish speaking colleagues).  Jan or anyone: any simple reassurance or pointers to resources I should best use for homework about these issues? TIA (again!) Chris On 06/10/2023 12:55, Jan van der Laan wrote: You are right, sorry

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
   "Improved")) +   scale_fill_manual(name = "Change",    values = c("A" = "red",   "B" = "grey",       "C" = "green"),   

[R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
t(data = tmpTib,    aes(x = x, y = y)) +   geom_polygon(data = tmpTibAreas,    aes(x = x, y = y, fill = a)) +   geom_point(data = tmpTibPoints, aes(x = x, y = y, fill = c), pch = 24, size = 6) Does anyone know a way to create a solid downward pointing sy

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
back to my main work (and work I'm more competent to do!) Many thanks again, Chris On 25/08/2023 15:48, Ivan Krylov wrote: В Fri, 25 Aug 2023 11:49:03 +0200 Chris Evans via R-help пишет: Hm.  I tried that butI really don't know what to make of what it's telling me.  It seemed to me that

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
On 24/08/2023 21:05, Duncan Murdoch wrote: On 24/08/2023 1:58 p.m., Chris Evans via R-help wrote: I have an Rmarkdown file which is part of my distill "Rblog" (https://www.psyctc.org/Rblog/).  It was knitting fine until last week, now knitting terminates with this: Rscript -e

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
Thanks Duncan.  I've pushed the whole collection to: https://github.com/cpsyctc/Rblog On 24/08/2023 20:54, Duncan Murdoch wrote: Could you post a link to the source for that Rmd file? Duncan Murdoch [rest snipped] __ R-help@r-project.org mailing

[R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-24 Thread Chris Evans via R-help
ver.Rmd output file: creating-a-shiny-server.knit.md /usr/bin/pandoc +RTS -K512m -RTS creating-a-shiny-server.knit.md --to html5 --from markdown+autolink_bare_uris+tex_math_single_backslash --output creating-a-shiny-server.html --lua-filter /home/chris/R/x86_64-pc-linux-gnu-library/4.3/rma

[R] Puzzled by results from base::rank()

2023-08-11 Thread Chris Evans via R-help
  "7.000"  "1.500"  "9.000"  "12.000" "3.000"  "11.000"  [9] "9.000"  "5.000"  "9.000"  "5.000" The doublet is still given the mean of the values but the triplet is rounded up.  What am I missing h

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Chris Evans via R-help
colour=Conc)) +   scale_colour_manual(values = c("darkslategray3", "darkslategray4", "deepskyblue4")) +   ggtitle("Working example") +   xlab(expression(bold("Time (h)"))) +   ylab(expression(bold("Concentration (mM)"))) Very  best,

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
"Я досяг\\досягла того, чого прагнув\\прагнула" "Я досяг того, чого прагнув" 7 "Я досягнув(ла) того, чого хотів(ла)"   "Я досягнув того, чого хотів" perfect and I will spend some time tomorrow unpacking that regex and trying to drive the learning poin

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
Thanks Avi (I am a keen follower or your, and other stalwart helpers here). On 27/06/2023 18:27, avi.e.gr...@gmail.com wrote: Chris, Consider breaking up your task into multiple passes. Sorry, I could have explained more of what I had tried.  I never know how long to make things here. I

[R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
in `stri_replace_first_regex()`:!Trying to access the index that is out of bounds. (U_INDEX_OUTOFBOUNDS_ERROR) Run `rlang::last_trace()` to see where the error occurred. I have tried gurgling around the internet but am striking out so throwing myself on the list. Apologies if this is trivial but I'd ha

Re: [R] Asking about R "Security" ..

2023-05-17 Thread Chris Evans via R-help
can help!) Chris On 17/05/2023 11:11, Martin Maechler wrote: >>>>>> Ivan Krylov >>>>>> on Wed, 17 May 2023 11:52:27 +0300 writes: > > В Tue, 16 May 2023 13:47:19 + > > "MAJID, Ayesha \(NHS ENGLAND - X26\) via R-help"

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Chris Evans via R-help
at you're looking for and I think we're starting to get into issues about interpretation of data not issues about using R so off list.  I think you need statistical or econometric support from somewhere. Good luck! Chris On 02/05/2023 17:50, Upananda Pani wrote: > Hi Chrish, > > I

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Chris Evans via R-help
_ > 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.html > and provide commented, minimal, self-contained, reproducible code. --

Re: [R] Extracting data using subset function

2023-02-05 Thread Chris Ryan via R-help
Is this a homework problem? --Chris Ryan -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On February 5, 2023 9:07:03 AM EST, Upananda Pani wrote: >Dear All, > >I want to create a vector p and extract first 20 observations using subset >function base

[R] fitting gam with constraints on parameters in mgcv

2022-10-22 Thread Chris Wilcox
evels(dt$Vessel)[2]] <- 0 #now fit gam again with separation M <- gam(Catch ~ s(Lat,Lon) + s(Year) + Vessel, family = tw, data = dt) Thanks, Chris Chris Wilcox Minderoo Foundation * Flourishing Oceans [cid:Minderoo-80w_fc252a32-0168-44a0-8b65-5f9c7e67697f.png] M +61 439 071 21

Re: [R] prcomp - arbitrary direction of the returned principal components

2022-10-13 Thread Chris Evans
Apologies for the coding: I'm a better therapist than coder and it's a while since I've done much in base R like this.  Quite fun to get back to it!  R artistes can probably do that in four lines! But I'm not convinced doing this to "fix" the signs is really worth it however many lines one

Re: [R] Is there a package that can do Fuzzy name matching to standardize names in a single column

2022-06-15 Thread Chris Evans
years I have seen my name as: Chris Evans Evans, Chris Christopher Evans Evans, Christopher C.D.H.Evans Evans, C.D.H. and a great one that a bank once gave me: DR CHRISTOPHE D EVANS (honestly ... why?) Then there are all the misspellings as you say. Back in the days of snail mail reprint requests

Re: [R] stdev error

2022-03-11 Thread Chris Evans
> > > [[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/po

Re: [R] How to create density ellipses with R

2022-01-15 Thread Chris Evans
years on this list. Thanks to all for all the work to maintain the list and contribute to it. Chris - Original Message - > From: "John Fox" > To: "Paul Bernal" > Cc: "R" > Sent: Friday, 14 January, 2022 18:53:55 > Subject: Re: [R] How t

Re: [R] Creating NA equivalent

2021-12-21 Thread Chris Evans
handling LDL _and_ UDL or to any other existing methods. TIA, Chris - Original Message - > From: "Wolfgang Viechtbauer" > To: "Chris Evans" > Cc: r-help@r-project.org > Sent: Tuesday, 21 December, 2021 11:31:55 > Subject: RE: Creating NA equivalent &g

Re: [R] Creating NA equivalent

2021-12-21 Thread Chris Evans
of pulls this towardbase R, though that sounds to me as if it would be a huge undertaking. I'm very interested to hear any thoughts on either aspect. Seasonal (mutivalued) greetings to all! Chris - Original Message - > From: "Duncan Murdoch" > To: "Marc Girondot&qu

Re: [R] Changing time intervals in data set

2021-12-15 Thread Chris Evans
orts publications. Others here are professional statisticians _and_ professional R coders. Very best and seasonal greetings to all, Chris - Original Message - > From: "Rich Shepard" > To: "r-help mailing list" > Sent: Wednesday, 15 December, 2021 23:42:42

Re: [R] Syntax help for 'Pivot_longer'

2021-11-28 Thread Chris Evans
the question in raw text Email and submit a bit of your data using dput() (see ?dput and search out "R reproducible examples") and then I'll look at it. Very best (all), Chris - Original Message - > From: "Philip Monk" > To: "R-help Mailing List" >

Re: [R] ggplot2: 'not finding <-<- error'

2021-11-12 Thread Chris Evans
lp@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.html > and provide commented, minimal, self-contained, reproducible code. -- Chris Evans (he/him) V

Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-10-03 Thread Chris Evans via ESS-help
do for ESS (and FLOSS generally) and an apology for not doing more! Very best, Chris - Original Message - > From: "Tyler Smith" > To: "Chris Evans" > Cc: "ess-help" > Sent: Friday, 1 October, 2021 16:40:50 > Subject: Re: [ESS] Advice on setting

Re: [R] Cacheing of functions from libraries other than the base in Rmarkdown

2021-09-19 Thread Chris Evans
that: can't believe I didn't check that. Thanks, another hole in a foot: (re)-read the pertinent manual before assuming something is broken Christopher! Very best all, C - Original Message - > From: "Berry, Charles" > To: "Chris Evans" > Cc: "R-he

Re: [R] Cacheing of functions from libraries other than the base in Rmarkdown

2021-09-19 Thread Chris Evans
Message - > From: "Jeff Newmiller" > To: r-help@r-project.org, "Charles Berry" , "Chris > Evans" > Cc: "R-help" > Sent: Sunday, 19 September, 2021 19:45:03 > Subject: Re: [R] Cacheing of functions from libraries other than the b

Re: [R] Cacheing of functions from libraries other than the base in Rmarkdown

2021-09-19 Thread Chris Evans
polymode and Rmd to the ESS help list as equipping my Emacs/ESS to knit whole Rmd files may give me an alternative and a bit more information. Thanks Bert (and all for > 16 years of knowledge and occasional high drama here!) Chris - Original Message - > From: "Bert Gunter&quo

[ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-09-19 Thread Chris Evans via ESS-help
even tempt me back to Emacs/ESS for much more of what I'm doing!) TIA, Chris -- Chris Evans (he/him) Visiting Professor, University of Sheffield and UDLA, Quito, Ecuador I do some consultation work for the University of Roehampton and other places but remains my main Email address. I

[R] Cacheing of functions from libraries other than the base in Rmarkdown

2021-09-18 Thread Chris Evans
'm not sure what is causing it!)? Thanks in advance, Chris > sessionInfo() R version 4.1.1 (2021-08-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 LAPACK: /usr/lib/x86_64

[R] [R-pkgs] Announcing R package 'fedmatch'

2021-08-31 Thread Chris Webster
matches. Website <https://seunglee98.github.io/fedmatch/> CRAN <https://cran.r-project.org/package=fedmatch> Thanks, Chris Webster [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://

Re: [R] conditional output of string to file n times...

2021-07-07 Thread Chris Evans
ell, uncount it! uncount(x, count) -> y y # or using tidyverse piping to do the same x %>% uncount(., count) -> y ### and one of many ways to write to a simple file ### make sure you do this in a safe place! cat(y, file = "safefile.txt", sep = "\n") Cheers a

Re: [R] Weighted violin chart

2021-04-13 Thread Chris Evans
nto your Email using dput. The output from dput doesn't look terribly human friendly but unless it is mangled by HTML Emailing, it is wonderfully human friendly to use! Very best (all), Chris -- Chris Evans (he/him) Visiting Professor, University of Sheffield I do some consultation work f

Re: [R] .Rprofile with devtools::install_github() loops

2021-02-11 Thread Chris Evans
Works perfectly. Brilliant. I have added this, with appreciation to you Bill, to my "post" about creating my first (and probably only!) R package at: https://www.psyctc.org/Rblog/posts/2021-02-10-making-my-first-usable-package/ Thanks Bill, very best all, Chris - Origin

[R] .Rprofile with devtools::install_github() loops

2021-02-10 Thread Chris Evans
, I think if it were the case it would be documented and I'd find far more about that. OK. So my .Rprofile is: print("This is a message from /home/chris/.Renviron: hello Chris!") .First <- function(){ devtools::install_github("/") } print("OK, off you go!&q

Re: [R] How to avoid ggplot clipping the x axis [damn, replaces previous Email]

2021-01-11 Thread Chris Evans
Perfect. Can't believe I failed to find that! Thanks, as ever, Rui - Original Message - > From: "Rui Barradas" > To: "Chris Evans" , R-help@r-project.org > Sent: Sunday, 10 January, 2021 18:10:16 > Subject: Re: [R] How to avoid ggplot clipping the x

[R] How to avoid ggplot clipping the x axis [damn, replaces previous Email]

2021-01-10 Thread Chris Evans
has 0, 2, 4 and 6 Can anyone see the simple answer that is eluding me?! TIA, Chris -- Small contribution in our coronavirus rigours: https://www.coresystemtrust.org.uk/home/free-options-to-replace-paper-core-forms-during-the-coronavirus-pandemic/ Chris Evans Visiting Professor, Unive

[R] How to avoid ggplot clipping the x axis

2021-01-10 Thread Chris Evans
oronavirus-pandemic/ Chris Evans Visiting Professor, University of Sheffield I do some consultation work for the University of Roehampton and other places but remains my main Email address. I have a work web site at: https://www.psyctc.org/psyctc/ and a site I manage for CORE and CORE syste

[R] Search list of igraph objects to return some with certain values

2021-01-04 Thread Chris Buddenhagen
Hi all I stochastically simulated thousands of directed igraph objects in list format. I want to find and plot an example graph that meets a certain criteria (a link to a certain node). Does anyone have pointers on how to subset a list of igraph objects? Sincerely, Chris Buddenhagen cbuddenha

Re: [ESS] [OT] Best Practices Emacs / ESS Mini-Webinars

2020-12-29 Thread Chris Wallace via ESS-help
I haven't edited the colledit because no one would recognise my initials! But I use doom Emacs, and run R via ESS over tramp. Happy to help with either topic. ⁣http://chr1swallace.github.io​ On 28 Dec 2020, 22:38, at 22:38, Dirk Eddelbuettel via ESS-help wrote: > >Hi Stephen, > >On 28

Re: [ESS] Running R over tramp

2020-12-19 Thread Chris Wallace via ESS-help
g standing issue for me that has persisted across multiple versions of emacs, ess, R and (local) Ubuntu. It does not occur when I have run R via tramp on other remote systems. I believe it is a problem particular to this remote system, and am seeking a workaround. Chris On Fri, 2020-12-18 at 2

[ESS] Running R over tramp

2020-12-18 Thread Chris Wallace via ESS-help
d sent to the remote process, and can I source this code manually myself to "fix" these cases when it has failed itself? Thanks for a wonderful package, Chris R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 The R Foundation for Statistical Computing P

Re: [R] Inappropriate color name

2020-11-17 Thread Chris Evans
seem to remember that's the correct way to make a formal nomination. Very best all, Chris - Original Message - > From: "Ryan Novosielski" > To: "r-help mailing list" > Cc: "Lainey Gallenberg" > Sent: Tuesday, 17 November, 2020 16:39:38 &

[R] Can anyone advise me on running R and Rstudio on an AWS virtual machine

2020-10-14 Thread Chris Evans
). TIA, Chris -- Small contribution in our coronavirus rigours: https://www.coresystemtrust.org.uk/home/free-options-to-replace-paper-core-forms-during-the-coronavirus-pandemic/ Chris Evans Visiting Professor, University of Sheffield I do some consultation work for the University

Re: [R] Is there a simple way to analyse all the data using dplyr?

2020-09-21 Thread Chris Evans
really keen to find tidyverse/dplyr answers/options. Any offers?! TIA (all), Chris - Original Message - > From: "Eric Berger" > To: "Chris Evans" > Cc: "r-help" > Sent: Monday, 21 September, 2020 15:03:44 > Subject: Re: [R] Is there a s

[R] Is there a simple way to analyse all the data using dplyr?

2020-09-21 Thread Chris Evans
seems an obvious and common use case, but I can't find that either. Sorry, I'm over 99% sure I'm being stupid and missing the obvious here ... but that's the recurrent problem I have with my wetware and searchware doesn't seem to being fixing this! TIA, Chris -- Small contribution in ou

Re: [R] combine filter() and select()

2020-08-19 Thread Chris Evans
ere are many on this list, that sort of coding is also easy to read. I know that Chinese is easy to read if you grew up on it but to a bear of little brain like me, the much more verbose style of tidyverse repays typing time with readability when I come back to my code and, though I have lit

Re: [R] Fortune nomination .... Re: Looping through a dataframe

2020-07-24 Thread Chris Evans
or open port for nominations despite a bit of searching. TIA and very best to all, Chris - Original Message - > From: "John Kane" > To: "David Winsemius" > Cc: "R. Help Mailing List" > Sent: Saturday, 25 July, 2020 02:55:34 > Subject: Re: [R

Re: [R] levels

2020-07-19 Thread Chris Gordon-Smith
There is an interesting item on stringsAsFactors in this useR! 2020 session: https://www.youtube.com/watch?v=X_eDHNVceCU=youtu.be It's about 27 minutes in. Chris Gordon-Smith On 15/07/2020 17:16, Marc Schwartz via R-help wrote: >> On Jul 15, 2020, at 4:31 AM, andy elprama wrote: >&g

[R] useR! Live Events Underway!

2020-07-08 Thread Chris Prener
s to posters and videos, and will include tutorial information as soon as it is available. We look forward to seeing you all at our events this week! Best, Chris Prener, Heidi Seibold, and Jenine Harris user! 2020 Co-Leads [[alternative HTML ver

Re: [R] Can I pass the grouped portions of a dataframe/tibble to a function in dplyr

2020-07-05 Thread Chris Evans
from, or supercedes aspects of do() which I think must have been the function I had forgotten. Even more interestingly I see that it seems to lead me into interesting options and experimental developments in tidyverse that I didn't know. Excellent. Perfect help ... many thanks! Chris

[R] Can I pass the grouped portions of a dataframe/tibble to a function in dplyr

2020-07-05 Thread Chris Evans
n't professional coders or statisticians and that go a bit beyond the obvious basics of tidyverse into issues like this. TIA, Chris -- Small contribution in our coronavirus rigours: https://www.coresystemtrust.org.uk/home/free-options-to-replace-paper-core-forms-during-the-coronavirus-p

Re: [R] Seeking implementation of my algorithm 'spdspds' - a novel algorithm for solving Linear Programming Problems with O(L^1.5) computational complexity

2020-06-11 Thread Chris Evans
while some rather pedestrian > ideas have proved reliable and effective, even if they don't fulfill nice > theoretical properties. There are, however, a few nice cases where theory > and practice are both great. Fortune nomination! Glorious. Thanks for making me smile. Chris [rest s

Re: [R] Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found

2020-05-19 Thread Chris Evans
s a group for the aesthetic as you've turned off inheritance of the x and y mapping in the earlier aes(). That would seem to fit with the error message. No time to try it all out but thought I'd throw this in. Good luck (all!) Chris > > str(p) > List of 9 > $ data :'data.frame': 7

Re: [R] FW: problem with markov random field smooths in mgcv

2020-04-30 Thread Wilcox, Chris (O, Hobart)
Thanks very much Simon, that is super helpful. Best, Chris On 25/3/20, 9:47 am, "Simon Wood" wrote: Hi Chris, It's kind of a documentation glitch, a node is not supposed to be listed as its own neighbour (it causes the diagonal entries in the penalty matrix

[R] useR! 2020 St. Louis Update

2020-04-19 Thread Chris Prener
the world to us. Best, Chris Prener, Ph.D. and Jenine Harris, Ph.D. useR! 2020 St. Louis Co-lead Organizers [[alternative HTML version deleted]] ___ r-annou...@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-announce

Re: [R] Grouping Question

2020-03-22 Thread Chris Evans
8 passpass 5 2 10 passpass 6 3 19 failfail 7 3 13 passfail Would be easier for us if used dput() to share your data but thanks for the minimal example! Chris - Original Message - &

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread Wilcox, Chris (O, Hobart)
e function that constructs the mrf. Thanks for spending the time to look at the problem. I did not use the columb structure, but if you read down in the help for the smooth constructor function you can see that Simon has an example using nb that is like the one I submitted. Cheers, Chris On 19/3/2

[R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread Wilcox, Chris (O, Hobart)
appreciated. There is reproducible code below. Thanks Chris library(mgcv) #create data Country <- as.factor(c("Australia","Australia","Australia","Australia","Australia","Australia

[R] useR! 2020 - Registration Open!

2020-02-27 Thread Chris Prener
ch out to me (chris.pre...@slu.edu) or my colleague and co-lead organizer Jenine Harris (harr...@wustl.edu). Best, Chris Christopher Prener, PhD useR! 2020 Co-Lead Assistant Professor of Sociology Department of Sociology and Anthropology Saint Louis University St. Louis, MO https://chris-pren

Re: [R] read_xlsx(readxl) apparently mangling some data input

2020-02-04 Thread Chris Evans
so TIA if anyone has suggestions for that tangential question (to me off list and I'll summarise if there's much and people asking for it). Chris - Original Message - > From: cpolw...@chemo.org.uk > To: "Chris Evans" > Cc: "R-help Mailing List" > Sent:

Re: [R] read_xlsx(readxl) apparently mangling some data input

2020-02-04 Thread Chris Evans
l power of %% that I think I _will_ remember and no doubt find myself using again in the future. Thanks both, huge help to me and, as I suspected, a wasteful github issue report prevented! Chris - Original Message - > From: "PIKAL Petr" > To: "Chris Evans" , "R-hel

[R] read_xlsx(readxl) apparently mangling some data input

2020-02-04 Thread Chris Evans
sure can also report this as a suspected bug to the maintainer through the github issues system but I wanted to check here whether anyone could see something I'm missing as I'm really a (clinically retired) therapist and doctor, now full time researcher and I'm not a professional statistici

Re: [R] How to read a file containing two types of rows - (for the Netflix challenge data format)

2020-01-31 Thread Chris Evans
: my formal programming training is one week of "Introduction to FORTRAN" on teletypes in 1975, but I confess it's both lack of formal training _and_ lack of native ability that means my coding is so bad. If any gurus have a moment, show us really elegant and tidyverse ways to do t

Re: [R] Mixed format

2020-01-21 Thread Chris Evans
his a little nervously! Many thanks to all who teach me so much here, lovely, if I am correct, to contribute for a change! Chris - Original Message - > From: "Rui Barradas" > To: "Val" , "r-help@R-project.org (r-help@r-project.org)" > > Sent:

Re: [R] table and unique seems to behave differently

2019-12-10 Thread Chris Evans
with initial or trailing spaces or a character set issue. I can't see that those apply here but it's all I could imagine without racking my poor old brains much more. Good luck finding the answer! Chris - Original Message - > From: "Alain Guillet" > To: r-help@r-project.org

[R] How can I compare two apriori rules created from the same dataset

2019-09-14 Thread Chris Chinedozie
oney=2) => B(sex=1,age=1,money=0) returns FALSE -- Chris G. Chinedozie Universidade Federal do Rio de Janeiro [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.c

Re: [R] Efficient way to update a survival model

2019-09-03 Thread Andrews, Chris
k]] <- update(if (k==1) Cox0 else Cox[[k-1]], form) } From: Frank S. Sent: Friday, August 30, 2019 6:36:39 PM To: Andrews, Chris Cc: r-help@r-project.org Subject: RE: [R] Efficient way to update a survival model External Email - Use Caution Chris, thank y

Re: [R] Efficient way to update a survival model

2019-08-30 Thread Andrews, Chris
The updated formula needs to have a different term rather than cos(k * v) every time. Here is one way to explicitly change the formula. library("survival") set.seed(1) v <- runif(nrow(pbc), min = 0, max = 2) Cox0 <- coxph(Surv(pbc$time,pbc$status == 2) ~ v, data = pbc) Cox <- vector("list",

Re: [R] results of a survival analysis change when converting the data to counting process format

2019-08-23 Thread Andrews, Chris
Message- From: Andrews, Chris Sent: Friday, August 23, 2019 9:18 AM To: 'Göran Broström'; r-help@r-project.org; tamas.fere...@medstat.hu Subject: RE: [R] results of a survival analysis change when converting the data to counting process format # For what it is worth, even the second fit (cuts

Re: [R] results of a survival analysis change when converting the data to counting process format

2019-08-23 Thread Andrews, Chris
# For what it is worth, even the second fit (cuts at observation times) does not give identical coefficient estimates as using the original data structure. answer <- coef( coxph(Surv(time, status) ~ trt + prior + karno, data = veteran) ) veteran2 <- survSplit( Surv(time, status) ~ trt + prior

[R] Creating a web site checker using R

2019-08-08 Thread Chris Evans
, I'm a pretty poor programmer. If I go that way, I'm sure people may be able to point me to things I may be (legitimately) able to recycle in parts to help construct this. Thanks in advance, Chris -- Chris Evans Skype: chris-psyctc Visiting Professor, University of Sheffiel

Re: [R] CoxPH multivariate frailty model with coxph (survival)

2019-07-29 Thread Andrews, Chris
e short simulation I tried (except when the effect was very strong and I got convergence warnings). Chris library("flexsurv") set.seed(20190729) # Multiple non-competing outcomes, connected only by frailty (unmeasured covariate) nn <- 1000 kk <- 2 # frailty, 1 per individ

Re: [ESS] running R remotely via tramp

2019-05-04 Thread Chris Wallace via ESS-help
On 04/05/2019 15:17, Alex Branham wrote: On Sat 04 May 2019 at 05:16, Chris Wallace wrote: > I misread an offline suggestion by Stephen Eglen, and created a copy > of run-ess-r in my .emacs with these lines commented: > > ;; (unless (executable-find inferior-e

Re: [ESS] running R remotely via tramp

2019-05-04 Thread Chris Wallace via ESS-help
sue with (executable-find ...) not checking remote systems might have consequences for others. Chris On 04/05/2019 08:21, Chris Wallace wrote: Dear Alex, thanks for the suggestion, but this doesn't fix it.  The error remains the same. Chris On 03/05/2019 20:54, Alex Branham wrote: Hi Chris -

Re: [ESS] running R remotely via tramp

2019-05-04 Thread Chris Wallace via ESS-help
Dear Alex, thanks for the suggestion, but this doesn't fix it. The error remains the same. Chris On 03/05/2019 20:54, Alex Branham wrote: Hi Chris - I'm on my phone now so I haven't tried this, but I think changing ess-directory to default-directory should solve this issue. Alex On May

[ESS] running R remotely via tramp

2019-05-03 Thread Chris Wallace via ESS-help
inferior-ess-r-program) know to look on the remote server? Thanks for any advice, Chris -- http://chr1swallace.github.io __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] Help installing netReg

2019-04-14 Thread Chris Ryan
Spencer-- What is your compy set-up? Standalone, networked? Where is R installed? Do you have write privileges to that location? Chris Ryan -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 14, 2019 6:18:37 PM EDT, Spencer Brackett wrote: >Good evening, &g

Re: [R] R web-scraping a multiple-level page

2019-04-10 Thread Chris Evans
imum number of cycles. More often than > not > assumptions about the world turn out to be overly rational. Brilliant!! Fortune nomination? And the advice was useful to me too though I'm not the OQ. Thanks, Chris -- Chris Evans Skype: chris-psyctc Visiting Professor, Universi

Re: [R] Help interpreting data

2019-04-04 Thread Chris Ryan
Your dissertation advisor would probably be the best place to start. Chris Ryan -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 3, 2019 7:31:59 PM EDT, Matty A wrote: >Message rejected by filter rule match > > > > >-- Forwarded messag

Re: [R] bar plot add space to group data

2018-08-17 Thread Chris Ryan
Using the lattice package would provide an easy way to distinguish years, by putting them in different panels. Lattice would also help avoid some other features of this graph that, in my opinion, are suboptimal. See Tufte or Cleveland. Chris Ryan -- Sent from my Android device with K-9 Mail

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

2018-08-15 Thread Chris Evans
, all! Chris - Original Message - > From: "Rolf Turner" > To: "Richard M. Heiberger" > Cc: r-help@r-project.org, "Achim Zeileis" , "peter > dalgaard" , "Henrik > Bengtsson" > Sent: Wednesday, 15 August, 2018 04:58:32

[R] Typo in print.aov

2018-08-13 Thread Andrews, Chris
While looking at the code of print.aov for a different reason, I noticed that 'coefficient' was spelled with 3 'f's in one location. Perhaps this is on purpose but in another location it has just 2 'f's. This has not caused me any problem (that I know of) but I found it curious. Chris R

[R] specifying random effects covariance structure in nlme

2018-06-16 Thread Chris Stride
and rate. Now using  random = pdDiag(init + asymp + rate ~ 1) has none of the random effects correlated And using  random = pdSymm(init + asymp + rate ~ 1) has all three of the random effects correlated How do I specify just the correlation I want? cheers Chris

[R] verInd= and HorInd= arguments to pairs() function

2018-06-06 Thread Andrews, Chris
wrong scatterplot pairs are in the wrong places" for the last two pairs() calls. Thanks, Chris # fake data xmat <- matrix(1:28, ncol=4) lim <- range(xmat) # what I expected pairs(xmat, xlim=lim, ylim=lim) # 4x4 matrix of sc

[R] SamplingStrata R package

2017-11-02 Thread Chris S
Hi all I am hoping to use the SamplingStrata R package for a dataset describing a population of businesses wherein I have information on the type of business, as well as, for designated employment number bands, number of employees and business turnover information. So ideally the stratification

Re: [R] SamplingStrata R package

2017-10-31 Thread Chris S
t;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 Tue, Oct 31, 2017 at 4:43 AM, Chris S <cjsilw...@gmail.com> wrote: > >> Hi all >&

[R] SamplingStrata R package

2017-10-31 Thread Chris S
Hi all I am hoping to use the SamplingStrata R package for a dataset describing a population of businesses wherein I have information on the type of business, as well as, for designated employment number bands, number of employees and business turnover information. So in this context the

Re: [R] Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"

2017-09-26 Thread Chris Evans
board without the first coffee of the day. Thanks! Chris > From: "Eric Berger" <ericjber...@gmail.com> > To: "Chris Evans" <chrish...@psyctc.org> > Cc: "R. Help" <r-help@r-project.org> > Sent: Tuesday, 26 September, 2017 08:41:33 >

[R] Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"

2017-09-26 Thread Chris Evans
"0" "." "0" "0" "0" "0" "0" "." ... - attr(*, "names")= chr [1:3009] "1" "2" "3" "4" ... Named chr [1:3009] "0" "0" "0" "0" "0&q

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Chris Buddenhagen
t has been coded (just not sure if it was in R). BTW I did write to authors of the article I cited, but no reply. Chris Buddenhagen cbuddenha...@gmail.com On Wed, Jun 28, 2017 at 5:44 AM, Boris Steipe <boris.ste...@utoronto.ca> wrote: > I responded to the unhelpful suggestion "

[R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-27 Thread Chris Buddenhagen
rium in Social Networks, *4*, 6224. Best, Chris Buddenhagen cbuddenha...@gmail.com [[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

Re: [R] Creating interactive graphs and exporting to Intranet site

2017-04-23 Thread Chris Battiston
will be able to do more of what I need. Have a great day Chris Sent from my iPhone > On Apr 23, 2017, at 16:11, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > >> On 22/04/2017 10:29 PM, Chris Battiston wrote: >> Good evening, >> >> I’m relatively new to

Re: [R] Creating interactive graphs and exporting to Intranet site

2017-04-23 Thread Chris Battiston
didn't like how it printed out. I may just do what I need in an Access database - was hoping to provide a little more functionality but what can you do. Thanks for your reply Chris Sent from my iPhone > On Apr 23, 2017, at 15:21, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: >

Re: [R] Creating interactive graphs and exporting to Intranet site

2017-04-23 Thread Chris Battiston
intranet (per company policy). Any thoughts would be appreciated, and apologies again for my previously vague message. Chris > On Apr 23, 2017, at 2:42 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > "I cannot seem to get them to work as i need them to" does

  1   2   3   4   5   6   >