[R] unable to get barchart of censored subjects from ggsurvplot() in survminer package, if there is no predcitor

2024-06-17 Thread Christopher W. Ryan via R-help
a n.censor.table for an unconditional (no predictor) survival curve. See code below. Any advice? Thanks. --Chris Ryan, MD, MS, MSPH library(survival) library(survminer) data(lung) fit <- survfit(Surv(time, status) ~ 1, data = lung) ggsurvplot( fit, data = lung, x

[R] [R-pkgs] New package - fastTS

2024-04-11 Thread Peterson, Ryan
temperature. If you encounter any issues or would like to make contributions, please do so via the package's GitHub page: https://github.com/petersonR/fastTS Best, Ryan Ryan Peterson Assistant Professor Department of Biostatistics and Informatics University of Colorado - Anschutz Medical Campus

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] Obtaining a value of pie in a zero inflated model (fm-zinb2)

2024-01-04 Thread Christopher W. Ryan via R-help
the point mass component. As to your second question, I'm not sure that's possible, for any *particular, individual* subject. Others will undoubtedly know better than I. --Chris Ryan Sorkin, John wrote: > I am running a zero inflated regression using the zeroinfl function similar > to

Re: [R] anyone having trouble accesing CRAN?

2023-11-15 Thread Christopher W. Ryan via R-help
Ah, thanks all. Guess I missed the message before they started the maintenance. --Chris Ivan Krylov wrote: > On Wed, 15 Nov 2023 14:13:00 -0500 > "Christopher W. Ryan via R-help" wrote: > >> Anyone seeing similar? > > Same for me. > > While it worked, C

[R] anyone having trouble accesing CRAN?

2023-11-15 Thread Christopher W. Ryan via R-help
the authenticity of the received data could not be verified. === Three different browsers, two different devices, two different networks. (The text of the error messages varies.) Anyone seeing similar? Thanks. --Chris Ryan __ R-help@r-project.org

Re: [R] make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe

2023-11-08 Thread Christopher W. Ryan via R-help
Very helpful, Deepayan, and educational. Thank you. What does NSE stand for? Thanks, Chris Deepayan Sarkar wrote: > > --Chris Ryan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/

[R] make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe

2023-11-07 Thread Christopher Ryan via R-help
Hello. My question is in the subject line. Using R 4.1.3 on Windows 10. Commented MWE below. Thanks. --Chris Ryan library(dplyr) library(lattice) ## fabricate a dataframe dd <- data.frame(agency = sample(LETTERS, size = 5), total = sample(100:200, size = 5), las = sample(20:40, size = 5))

Re: [R] Sum data according to date in sequence

2023-11-02 Thread Christopher W. Ryan via R-help
: library(dplyr) sums <- dt1 %>% mutate(realDate = as.Date(date, format = "%m/%d/%Y") %>% group_by(realDate) %>% summarise(EnergykWh = sum(EnergykWh)) --Chris Ryan roslinazairimah zakaria wrote: > Dear all, > > I have this set of data. I would like to s

[R] how to get paste() to output \% so LaTeX will interpret it as a percent sign rather than a comment symbol

2023-09-08 Thread Christopher Ryan via R-help
t 12 Replacing, in the .Rnw code, the \\% with \% , yields an R error message: Error: '\%' is an unrecognized escape in character string starting ""\%" Grateful for any help. --Chris Ryan [[alternative HTML version deleted]] __ R

[R] free copy of Harrell's Regression Modeling Strategies, first edition

2023-06-26 Thread Christopher Ryan via R-help
I have both the 1st and the 2nd edition of Frank Harrell's book. I'll send you the 1st edition if you cover the postage. (4th class book rate would probably not be all that expensive.) Let me know off-list, if interested. --Chris Ryan [[alternative HTML version deleted

[R] how to draw a stripplot in vertical orientation, using lattice

2023-05-19 Thread Christopher Ryan via R-help
line gets pretty much what I'm looking for, but it feels a bit . . . unseemly. height ~ "" ? There must be a more proper way, that I'm just not thinking of. Thanks. --Chris Ryan [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] [External Email] Newbie: Controlling legends in graphs

2023-05-16 Thread Christopher Ryan via R-help
I"m more of a lattice guy than a ggplot guy, but perhaps this is part of the problem: . > geom_point(aes(y = m_K, color = "red")) + # >> you've > associated "K" with the color red > geom_smooth(aes(y = m_K, color = "red")) + > geom_point(aes(y = m_J, color = "blue")) +

Re: [R] [External Email] Requesting solution for R package

2023-04-24 Thread Christopher Ryan via R-help
Iwant) My apologies if you already knew that and are encountering some other difficulty. If so, providing further details will help. --Chris Ryan On Mon, Apr 24, 2023 at 12:58 PM Kasun Thalgaskotuwa < thalgaskotuwa1...@gmail.com> wrote: > Dear R team, > I am struggling with o

Re: [R] [External Email] DOUBT

2023-03-21 Thread Christopher Ryan via R-help
you forgot the + sign, or whether it is one variable, HHsize, where you added a space. --Chris Ryan On Tue, Mar 21, 2023 at 12:47 PM Nandini raj wrote: > Respected sir/madam > can you please suggest what is an unexpected symbol in the below code for > running a multinomial logistic r

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

Re: [R] [External Email] Re: R Certification

2023-01-04 Thread Christopher Ryan via R-help
Couldn't one just show prospective employers some impressive things one has done in R? Seems to me that would be more meaningful than any sort of certificate. --Chris Ryan On Wed, Jan 4, 2023 at 4:08 AM Mukesh Ghanshyamdas Lekhrajani via R-help wrote: > > Hey Rich, > > > > O

Re: [R] [External Email] Pipe operator

2023-01-03 Thread Christopher Ryan via R-help
qrt() %>% mean() %>% plot() As the chain of operations become longer, and as each "link" in the chain becomes more complex, the value of the pipe approach, compared to deep nesting in parentheses, increases, in my view. --Chris Ryan On Tue, Jan 3, 2023 at 11:48 AM Sorkin, John wro

Re: [R] Amazing AI

2022-12-19 Thread Christopher W. Ryan via R-help
o generate decent code to do what a client *says* they want to do, but is that *really* what they are looking for? So don't retire yet :) --Chris Ryan Boris Steipe wrote: > Technically not a help question. But crucial to be aware of, especially for > those of us in academia, or otherwise

Re: [R] [External Email] Re: increasing the width of dialog box generated by select.list()

2022-12-09 Thread Christopher Ryan via R-help
scenarios I'd like the box to open up wide enough be default to display the entire title; I could put in a couple line breaks if needed. Currently, in Rgui or Emacs/ESS, with graphics = TRUE or with my original code, I cannot resize the ensuing dialog box. Thanks. --Chris Ryan On Fri, Dec 9, 2022

[R] increasing the width of dialog box generated by select.list()

2022-12-09 Thread Christopher Ryan via R-help
You can see from the code below that the title of the dialog box is too long for the width of the selection box. How might I widen the box? Thanks. --Chris Ryan counties <- c("TIOGA", "BROOME", "ONTARIO", "ONONDAGA", "WESTCHESTER") ch

Re: [R] Circular Graph Recommendation Request

2022-05-29 Thread Christopher W. Ryan via R-help
figure in the original post has the northern midwestern region in the 7:00 to 8:00-ish position, what might be considered notionally the "southwest." A little counterintuitive. --Chris Ryan Bert Gunter wrote: > Very nice plot. Thanks for sharing. > Can't help directly, but as

[ESS] When the R window opens, sometimes it is side-by-side with my .Rnw file. I want them one above the other. It seems unpredictable

2022-05-27 Thread Christopher W. Ryan via ESS-help
. Sometimes it is. But other times the R buffer opens to the side. It's unpredictable, which is disconcerting; I have not been able to discern a pattern. How can I ensure that every time emacs/ESS opens an R buffer, the emacs window is split top-and-bottom, rather than side-by-side. Thanks. --Chris Ryan

Re: [R] [External Email] Re: how to rename variables by lopping off first 3 characters

2022-03-14 Thread Christopher W Ryan via R-help
Thanks! This has gotten me on the right track. One of my mistakes was that I was explicitly using the word select, as in rename_at(select(starts_with or rename_at(select(vars(starts_with --Chris Ryan On Mon, Mar 14, 2022 at 1:11 PM Bert Gunter wrote: > If you care to entert

[R] the opposite of pluck() in purrr

2021-11-18 Thread Christopher W. Ryan via R-help
ied element of a list? Thanks. --Chris Ryan __ 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 comm

Re: [R] [External Email] Re: how to make the far right section of a smoother line look different from the rest of that line?

2021-11-16 Thread Christopher W Ryan via R-help
Thanks Bert, that looks promising. panel.smoother() is from latticeExtra https://rdrr.io/cran/latticeExtra/man/panel.smoother.html --Chris Ryan On Tue, Nov 16, 2021 at 2:08 PM Bert Gunter wrote: > Where did you get panel.smoother()? There is no such panel function in > l

[R] how to make the far right section of a smoother line look different from the rest of that line?

2021-11-16 Thread Christopher W Ryan via R-help
For example, how might I make the far right-end stretch of the lines, representing the most recent week or two, dotted? Thanks. --Chris Ryan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] [External Email] Live Online Training for High School Teachers and Students

2021-11-04 Thread Christopher W Ryan via R-help
g --Chris Ryan On Thu, Nov 4, 2021 at 3:06 AM Tracy Lenz wrote: > Hi, > > I am looking for live training that can be conducted via Zoom or another > online platform to assist high school teachers and students who are working > with R. These teachers and students are usin

Re: [R] unexpected behavior in apply

2021-10-13 Thread Derickson, Ryan, VHA NCOD via R-help
er. But I appreciate the explanation and the solutions. -Original Message- From: PIKAL Petr Sent: Monday, October 11, 2021 5:15 AM To: Jiefei Wang ; Derickson, Ryan, VHA NCOD Cc: r-help@r-project.org Subject: [EXTERNAL] RE: [R] unexpected behavior in apply Hi it is not surprising

Re: [R] [EXTERNAL] Re: unexpected behavior in apply

2021-10-08 Thread Derickson, Ryan, VHA NCOD via R-help
> str(d) 'data.frame': 3 obs. of 3 variables: $ d1: chr "a" "b" "c" $ d2: chr "1" "2" "3" $ d3: chr NA NA "6" > > apply(d, 2, FUN=function(x)all(x[!is.na(x)] <= 3)) d1d2 d3 FALSE TRUE FALSE

[R] unexpected behavior in apply

2021-10-08 Thread Derickson, Ryan, VHA NCOD via R-help
Hello, I'm seeing unexpected behavior when using apply() compared to a for loop when a character vector is part of the data subjected to the apply statement. Below, I check whether all non-missing values are <= 3. If I include a character column, apply incorrectly returns TRUE for d3. If I

Re: [R] [External Email] Group by and add a constant value based on a condition dply

2021-05-26 Thread Christopher W Ryan via R-help
Is the grouping beforehand necessary? Could you simply, "for all the dates that are "4.01.2020" and have the "Value" greater than zero add 5 to the "Value" "? I may be missing something. --Chris Ryan On Wed, May 26, 2021 at 11:53 AM Elahe chalabi

Re: [R] Inappropriate color name

2020-11-17 Thread Ryan Novosielski
nd of it? All anyone that is being “blamed,” as you put it, is being asked to do is to try to do better next time. -- #BlackLivesMatter || \\UTGERS, |---*O*--- ||_// the State | Ryan Novosielski - novos...@rutgers.edu || \

[ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-09 Thread Christopher W. Ryan via ESS-help
like it to open the R buffer as a frame below my source code, rather than adjacent to it. How can I change the behavior from side-side frames to top-bottom frames? Thanks. --Chris Ryan __ ESS-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] R-help Digest, Vol 212, Issue 12

2020-10-14 Thread Dan Ryan
t: > > https://stat.ethz.ch/pipermail/r-help/2020-October/469020.html > > If you are so inclined, please reply to: > > r-help@r-project.org mailto:r-help@r-project.org > mailto:r-help@r-project.org > > > -- Forwarded message - > From:

Re: [R] Help using the exclude option in the neuralnet package

2020-10-09 Thread Dan Ryan
Good Morning, I am using the neuralnet package in R, and am able to produce some basic neural nets, and use the output. I would like to exclude some of the weights and biases from the iteration process and fix their values. However I do not seem to be able to correctly define the exclude and

Re: [R] [External Email] how to generate this kind of graph

2020-07-23 Thread Christopher W Ryan
You might like the beeswarm package. --Chris Ryan SUNY Upstate Medical University and Broome County Health Department On Thu, Jul 23, 2020 at 1:15 AM array chip via R-help wrote: > > Hello everyone, > > I saw this scatterplots from a paper and thought it looked very nice:

[R] challenging data merging/joining problem

2020-07-05 Thread Christopher W. Ryan
identifier, obtaining all columns from both tibbles, and then "collapse" conceptually-identical variables like onsetDate and date_of_onset using coalesce() Sorry for my long-windedness. Grateful for any advice. --Chris Ryan __ R-help@r-project.org

Re: [R] [External Email] R Software Risk Analysis

2020-06-18 Thread Christopher W. Ryan
and security of the overall computing environment is what matters most. --Chris Ryan Wait, Kristin wrote: > HI all, > > I am with a NYS major trauma center and all programs that our > employees/providers use must be vetted through the IT Department by way of a > Risk Analysis. >

Re: [R] R 4.0.1/R-devel 2020-06-16-r78702 built with Intel Composer 19.1.1, error in R CMD make check on CentOS 7.7

2020-06-17 Thread Ryan Novosielski
Same story with R-devel 2020-06-16-r78702, everything else the same. Should I be reporting this someplace else? -- || \\UTGERS, |---*O*--- ||_// the State | Ryan Novosielski - novos...@rutgers.edu || \\ University | Sr

[R] R 4.0.1 built with Intel Composer 19.1.1, error in R CMD make check on CentOS 7.7

2020-06-14 Thread Ryan Novosielski
2721: tryCatchList(expr, classes, parentenv, handlers) 2722: tryCatch(foo(), error = function(x) TRUE) An irrecoverable exception occurred. R is aborting now ... --- Thanks in advance. -- || \\UTGERS, |---*O*--- ||_// the State | Ryan Novosielski - novos...@rut

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

2020-05-22 Thread Christopher W. Ryan
Am I interpreting this offer correctly, that 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 l

[R] CRAN library down? - UPDATE

2020-05-02 Thread Christopher W. Ryan
to access the mirror from on-campus networks or from within the VPN. The rest of the R community: Sorry, but you'll have to please choose a different CRAN mirror. --Chris Ryan Roger Coppock wrote: > Recently a message appears when I try to view the index of the CRAN library. > > Warnin

Re: [R] [External Email] Re: arranging multiple lattice graphs on a page

2020-04-02 Thread Christopher W. Ryan
Thanks, I'll take a look. I also finally came across gridExtra, which allows me to do it as well. --Chris Ryan On April 2, 2020 6:45:58 PM EDT, Bert Gunter wrote: >See ?print.trellis, especially the "split" argument. > > >Bert Gunter > >"The trouble with having

[R] arranging multiple lattice graphs on a page

2020-04-02 Thread Christopher W. Ryan
. Appreciate any advice. Thanks. --Chris Ryan SUNY Upstate Medical University Binghamton, NY __ 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

Re: [R] [External Email] Re: incomplete reading of a large csv file

2020-02-21 Thread Christopher W. Ryan
an integer, would have neutralized any issues arising from problematic characters in other fields. Apparently not. So the entire file is processed in some manner, even when using the colClasses argument to restrict the result to the first column? Thanks. --Chris Ryan Uwe Ligges wrote: > >

[R] incomplete reading of a large csv file

2020-02-21 Thread Christopher W. Ryan
;|", header = TRUE, comment.char = "", skip = 5) > dim(skip5.dd) [1] 2217024 Any thoughts on what might be going wrong? Some funky characters from Excel or OpenOffice.org lurking in the .csv file? Perhaps I'd have more success with one of the packages that enab

Re: [R] [External Email] Help to do this exercise

2020-02-10 Thread Christopher W Ryan
Homework questions are generally frowned upon on R-help List. It is best to discuss those questions with your instructor. --Chris Ryan SUNY Upstate Medical University Clinical Campus at Binghamton On Mon, Feb 10, 2020 at 9:39 AM hương phạm wrote: > N1 Consider the database "L

[R] how to change format of dates in a tibble

2019-12-18 Thread Christopher W Ryan
not produce the desired output mutate(dateRanges, minMRD = as.Date(minMadeRequestDates, format = "%d %b %Y")) How does one change the format of a date variable inside a tibble when dplyr is loaded? Thanks Chris Ryan session info === > sessionInfo() R version 3.

Re: [R] help about codes from probability

2019-11-07 Thread Christopher W. Ryan
Is this homework for a class? If so, it would be better to ask your professor for guidance. R-help List frowns on homework questions. Chris Ryan On November 7, 2019 2:46:32 AM EST, Sadia Seddiqi wrote: >Could you help me how I can solve run this code in R-labUnions > >1-You ar

[R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Christopher W Ryan
.) { panel.xyplot(..., col = "red") panel.smoother(..., span = 0.9, se = FALSE) panel.rug(x = dd.2$calledForApptDate) }) but seems inadvisable. Shouldn't I be making use of ... for passing arguments through to the panel.rug() function? Specifying a variable in a dataframe by name isn't gener

[R] getting summary statistics easily with dplyr

2019-11-05 Thread Christopher W Ryan
ed summary statistic? dplyr summarise() wants a result of length 1, not 5 dplyr.output.2 <- mtcars %>% group_by(am) %>% summarise(fivenum(mpg) ) group_map or group_modify seem like they might do the job, but I could use some guidance on the syntax. T

[R] reading in csv files, some of which have column names and some of which don't

2019-08-13 Thread Christopher W Ryan
- read.csv(filename, colClasses = "character", header = FALSE, skip = 1) bb } This sacrifices about 80 out of about 1600 records. For my purposes in this instance, this may be acceptable, but of course I'd rather not. Thanks. --Chris Ryan [[alternative HTML version deleted

Re: [R] help

2019-07-16 Thread Christopher W Ryan
You will get the best help if you: 1. post email in plain text, not html 2. post the command/code you issued and the result/error that was returned 3. Information about your operating system sometimes helps. --Chris Ryan Binghamton, NY, US On Tue, Jul 16, 2019 at 3:36 PM Sujaya wrote

Re: [R] Help installing netReg

2019-04-15 Thread Christopher W. Ryan
Sorry, was typing on my phone. Not "compy." "Computer." I was asking whether you were working on your own, standalone, computer, or whether perhaps this was an institutional, networked, machine, on which you don't have write permissions that you need. --Chris Ryan Sp

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] 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] Rounding behavior

2018-10-09 Thread Ryan Derickson
I thought it might be a floating issue but didn't see the connection. Thanks everyone. On Tue, Oct 9, 2018, 2:00 PM Benoit Vaillant wrote: > Hello, > > On Tue, Oct 09, 2018 at 01:14:54PM -0400, Ryan Derickson wrote: > > Apologies if this is a simple misunderstanding. >

[R] Rounding behavior

2018-10-09 Thread Ryan Derickson
Hello, Apologies if this is a simple misunderstanding. round((.575*100),0) gives 57 round(57.5,0) gives 58 Why? Ryan Derickson University of Cincinnati On Tue, Oct 9, 2018, 10:08 AM PIKAL Petr wrote: > Hi > > You could use brute force approach. Just print out "file.names&q

[ESS] Stopping "Save workspace image?" prompt

2018-09-22 Thread Ryan Chitwood via ESS-help
Hi everyone, Does know of a way to stop the "Save workspace image?" prompt when quitting the iESS [R] process? I have already aliased the R command to 'R --no-save' in bash, but this setting doesn't carry over to ESS. Thanks, Ryan [[alternative HTML versi

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] R maintains old values

2018-07-03 Thread Christopher W Ryan
This TV series might have some advice on that. https://www.imdb.com/title/tt2543312/ --Chris Ryan On Tue, Jul 3, 2018 at 9:25 AM, J C Nash wrote: > . . . Now, to add to the controversy, how do you set a computer on fire? > > JN > > [[alternative HTML

Re: [R] printing an arbitrary-length character vector in columns on a page of a pdf report

2018-06-05 Thread Christopher W. Ryan
nks everyone. Several good suggestions. --Chris Ryan Richard M. Heiberger wrote: > n <- length(dd) > ddm <- matrix("", (n+2) %/% nc, nc) > ddm[1:n] <- dd __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

[R] printing an arbitrary-length character vector in columns on a page of a pdf report

2018-06-05 Thread Christopher W Ryan
;- nc - (length(dd) %% nc) dd2 <- c(dd, rep("", add)) ddm <- matrix(dd2, ncol = nc) library(Hmisc) latex(ddm, file = "") Any ideas for a more elegant way to do this? Thanks. --Chris Ryan Binghamton University and Broome County Health Department Binghamton, NY, US

Re: [R] How would I color points conditional on their value in a plot of a time series

2018-05-01 Thread Christopher W Ryan
Excellent! Worked like a charm. Thanks. --Chris Ryan On Tue, May 1, 2018 at 4:33 PM, William Dunlap <wdun...@tibco.com> wrote: > The ts method for plot() is quirky. You can use the default method: > > plot(as.vector(time(ttt)), as.vector(ttt), type = "p", col=ifel

[R] How would I color points conditional on their value in a plot of a time series

2018-05-01 Thread Christopher W Ryan
in sss <- data.frame(x = rpois(12, lambda = 8), y = rnorm(12, mean = 100, sd = 25)) with(sss, plot(y ~ x, col = ifelse(y > 100, "black", "red"))) ## but I am missing something about time series. Thanks. --Chris Ryan Broome C

Re: [R] Reasons to Use R in a Public Administrations and Ideas for a Short Training

2018-04-19 Thread Christopher W Ryan
ysis steps with colleagues in another country, for application to the colleagues' data. --Chris Ryan Broome County Health Department Binghamton, NY US On Wed, Apr 18, 2018 at 9:47 AM, Lorenzo Isella <lorenzo.ise...@gmail.com> wrote: > Dear All, > Ages ago I posted to this mailing list a

Re: [R] Best Optimization Routines

2018-02-15 Thread JamesRyan(Ryan James)/E North America Business Division
Thanks Paul. Appreciate the help. I'll give this a shot. Ryan James D: 713.395.1794 M: 214.843.7301 -Original Message- From: Paul Smith [mailto:phh...@gmail.com] Sent: Thursday, February 15, 2018 7:12 AM To: Ryan James/E North America Business Division/SKI Cc: r-help@r-project.org

[R] Best Optimization Routines

2018-02-13 Thread JamesRyan(Ryan James)/E North America Business Division
.  What is the best optimization routine (I am using nlminb) to use in R to determine the best set of inputs and how to I handle the integer and string inputs when optimizing?   I have attached a plot of what I am trying to accomplish as well as my sample code. Thanks, Ryan Rplot.pdf

[R] [R-pkgs] New package - bestNormalize

2017-11-30 Thread Peterson, Ryan A
the package's GitHub page: https://github.com/petersonR/bestNormalize Ryan Peterson [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages

Re: [R] Data cleaning & Data preparation, what do R users want?

2017-11-29 Thread Christopher W. Ryan
in R. Would make the generation of recurring reports easier. --Chris Ryan Robert Wilkins wrote: > R has a very wide audience, clinical research, astronomy, psychology, and > so on and so on. > I would consider data analysis work to be three stages: data preparation, > statisti

Re: [R] Help

2017-06-20 Thread Christopher W Ryan
esulted. As to your particular question, at this point I can only guess, but for starters it would probably help to show the output of str(ind.davis) --Chris Ryan On Tue, Jun 20, 2017 at 1:06 AM, Leonardo Malaguti < leonardomalagut...@gmail.com> wrote: > Dear expert friends, > I'm pr

Re: [R] How to Transform a Factor Variable into a Date

2017-06-19 Thread Christopher W Ryan
A couple thoughts: 1. converting factors into dates often requires that they be converted to character first. 2. you don't really have dates; you have just months and years 3. therefore perhaps the as.yearmon() function in the zoo package could help library(zoo) my.factor <- factor("Feb 2017")

Re: [R] about fitting a regression line

2017-06-15 Thread Christopher W Ryan
)) abline(model, col = "red") ## obviously I am not claiming that this is a meaningful or sensible model ## It's just for illustrative purposes --Chris Ryan On Thu, Jun 15, 2017 at 3:48 PM, lily li <chocol...@gmail.com> wrote: > Thanks for your replies. I tried the regress

[R] Inconsistent error opening connection on URL

2017-02-09 Thread Ryan Utz
4,2015.txt ',sep='') X=read.delim(URL.2) Thanks, Ryan -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To U

Re: [R] Qvalue package: I am getting back 1, 000 q values when I only want 1 q value.

2017-01-14 Thread Thomas Ryan
that your usage is valid > for the function.. > > Jim > > > On Fri, Jan 13, 2017 at 4:12 AM, Thomas Ryan <tombernardr...@gmail.com> > wrote: > > Hi all, I'm wondering if someone could put me on the right path to using > > the "qvalue" package correctly.

[R] Qvalue package: I am getting back 1, 000 q values when I only want 1 q value.

2017-01-12 Thread Thomas Ryan
Hi all, I'm wondering if someone could put me on the right path to using the "qvalue" package correctly. I have an original p value from an analysis, and I've done 1,000 randomisations of the data set. So I now have an original P value and 1,000 random p values. I want to work out the false

[R] trouble with starting date in sts and disProg objects in the surveillance package

2016-12-27 Thread Christopher W Ryan
I create a data frame, then, using package surveillance version 1.3, I convert it to a surveillance time series (sts) object and then to a disProg object. But in the plot of the disProg object, the dates seem to be mislabelled? Grateful for any advice. --Chris Ryan Broome County Health

[R] Help reproducing this boxplot

2016-10-13 Thread Ryan Treacy
I am trying to reproduce the style of boxplot pictured in the attached image. The code below is close but I cannot get the control values the correct color. library(ggplot2) box.print <- function(C1M,C1, D2, QCDC2, QCSDT4, num){ NAME <- names(D2[num]) adjsdt4 <- C1M[,num] sdt4 <- C1[,num]

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-10-12 Thread Ryan Utz
Eureka! I wish I could send a box of digital donuts. Thanks so much On Tue, Oct 11, 2016 at 9:21 AM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > On 11/10/2016 7:59 AM, Ryan Utz wrote: > >> Bob/Duncan, >> >> Thanks for writing. I think some of the t

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-10-11 Thread Ryan Utz
On Thu, Sep 29, 2016 at 4:59 PM, Duncan Murdoch <murdoch.dun...@gmail.com> > wrote: > >> On 29/09/2016 3:29 PM, Ryan Utz wrote: >> >>> Hi all, >>> >>> I've got a situation that involves activating a URL so that a link to >>> some >>&

[R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Ryan Utz
the line #2 above without having to open a browser? We have hundreds of species that you can see after the '=' bit of the URL, so I'm trying to keep the browsing situation sane. Thanks! R -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769

Re: [R] dplyr or plyr or both?

2016-09-15 Thread Christopher W. Ryan
I have the impression that it is also possible to library dplyr after plyr, but it is better to remove plyr! This is a serious problem that has been reported before, but not solved (in dplyr 0.5.0 and plyr 1.8.4) Frams 2016-09-15 16:09 GMT+02:00 Christopher W Ryan <cr...@binghamton.edu <mailto:cr...@

[R] dplyr or plyr or both?

2016-09-15 Thread Christopher W Ryan
learn both)? Thanks. --Chris Ryan __ 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

[R] Treating a vector of characters as object names to create list

2016-09-04 Thread Ryan Utz
and I'd like to just cleanly turn the elements in 'merging' into a list. This does not work: ### merged.parameters=list(get(merging)) ### because it's only grabbing the first element of 'merging', for some reason. Any advice? This feels like it really should be easy... -- Ryan Utz, Ph.D

Re: [R] what happened to inside-r? [possibly OT]

2016-08-01 Thread Christopher W Ryan
nowhere to be found. Alas! But thanks anyway. --Chris On Fri, Jul 29, 2016 at 3:54 PM, David Winsemius <dwinsem...@comcast.net> wrote: > Been off the grid for the last year? MS bought Revolution R. > > > Sent from my iPhone > >> On Jul 29, 2016, at 11:30

[R] I'm getting confused with notation and terminology in output from weibull parametric survival model from survreg()

2016-07-29 Thread Christopher W. Ryan
aybe.my.frailties)) ## end code Or, would I be better off changing tactics and using frailtypack? Thanks for any help. Session info is below, in case it is relevant. --Chris Ryan > sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under:

[R] what happened to inside-r? [possibly OT]

2016-07-29 Thread Christopher W. Ryan
something related to Revolution R. What happened? Thanks. --Chris Ryan __ 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-

Re: [R] R code, heat wave statistics

2016-07-18 Thread Christopher W Ryan
I think much depends on how you define heat wave. --Chris Ryan Broome County Health Department Binghamton, NY USA On Mon, Jul 18, 2016 at 6:16 AM, Damjan / <damjanfaks2...@gmail.com> wrote: > Dar all, > > I have a txt file with 4 column data about daily maximum temperature f

Re: [R] Documenting data

2016-06-30 Thread Christopher W Ryan
the changes on the objects in R. Have you looked into various "reproducible research" systems for R, like Sweave or knitr?  They allow you to include analysis code and text of a manuscript or report all together in one file. Christopher W. Ryan sent from my phone with BlueMail On Ju

[R] rjags crashes RStudio every time it tries to load

2016-05-20 Thread Ryan Utz
successfully in regular R, but I would prefer not to be constrained to that platform if possible. -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769 [[alternative HTML version deleted]] __ R-help@r

Re: [R] anonymizing subject identifiers for survival analysis

2016-05-17 Thread Christopher W. Ryan
Excellent, thanks. Much simpler. --Chris Christopher W. Ryan, MD, MS cryanatbinghamtondotedu https://www.linkedin.com/in/ryancw Early success is a terrible teacher. You’re essentially being rewarded for a lack of preparation, so when you find yourself in a situation where you must prepare, you

Re: [R] What is the easiest way to turn a dataframe into a barplot?

2016-05-13 Thread Christopher W. Ryan
Here is one way: dd <- data.frame(var1=c("string1", "string2", "string3"), var2=c(3,7,4)) dd with(dd, barplot(var2, names.arg=var1)) --Chris Ryan Binghamton, NY yoursurrogate...@gmail.com wrote: > Hello, I can't post my code since it's on a work computer. &g

[R] anonymizing subject identifiers for survival analysis

2016-05-13 Thread Christopher W Ryan
<- vapply(x, function(object) digest(object, algo=algo), FUN.VALUE="", USE.NAMES=TRUE) unname(unq_hashes[x]) } dd.2$codex <- anonymize(dd.2$code) dd.2 table(duplicated(dd.2$codex)) Thanks. --Chris Ryan Broome County Health Department __ R

Re: [R] ts or xts with high-frequency data within a year

2016-03-30 Thread Ryan Utz
ssuming time unit is day > > measurement <- sqrt(time) + 1/(1.2+sin(time*2*pi)) + > rnorm(length(time),0,.3) > > plot(decompose(ts(measurement, frequency=96))) > > How is your code different from the above? > > > > Bill Dunlap > TIBCO Software > wdun

[R] ts or xts with high-frequency data within a year

2016-03-30 Thread Ryan Utz
ple(100,size=6000,replace=T) Y=xts(X[,3],order.by=X[,2]) decompose(Y) Z=ts(X[,2],start=c(2015,11),frequency=24*365) plot(decompose(Z)) ### Am I missing something obvious here? I hope so... -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7

[R] ts or xts with high-frequency data within a year

2016-03-30 Thread Ryan Utz
are a time series. I have tried every manner of specifying frequency= with no luck (96 does not work). All manner of searching for help has turned up fruitless. Can I only do this after I wait another year or two? Thanks, Ryan -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham

Re: [R] subsetting

2016-02-24 Thread Ryan Derickson
A combination of subsetting and ?substr should get you close to a solution. If the middle sequence you referenced isn't always the same distance from the first character, you may have to involve regular expressions to find "the middle". On Wednesday, February 24, 2016, Bert Gunter

[R] "predict" values from object of type "list"

2016-02-17 Thread Steve Ryan
Hi Guys, I could need some help here. I have a set of 3d points (x,y,v). These points are not randomly scattered but lie on a surface. This surface can be taken as a calibration plane for x and y -values. My goal is to quantify this surface and than predict the v-values for given pairs of x- and

[R] carolina function help

2016-01-26 Thread Huffman, Ryan
I am looking for advice from those who have used the carolina function, notably carolina model=2 for a North Carolina Design II analysis. I have having difficulty getting the function to perform correctly and would like an example of a code that someone has gotten to work. Thanks -- Ryan

  1   2   3   4   >