[R] Very odd issue getting "Input/output error" running shiny app from index.html locally but same shiny on my server working fine

2025-05-19 Thread Chris Evans via R-help
ight do to debug it more. It's currently getting in the way of some mildly urgent work I need to do on the server (of course it is, IT knows when you are vulnerable!) TIA, Chris -- Chris Evans (he/him) Visiting Professor, UDLA, Quito, Ecuador CORE site: http://www.coresystemtrust.org.uk

Re: [R] Very odd issue getting "Input/output error" running shiny app from index.html locally but same shiny on my server working fine

2025-05-19 Thread Chris Evans via R-help
and then in a browser I enter the URL http://localhost:8787/ HTH, Eric On Mon, May 19, 2025 at 6:01 PM Chris Evans via R-help wrote: I realise that shiny and Rstudio is often seen as OT here but I have a strong suspicion that the issue is R or R/OS related so

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

2024-09-27 Thread Chris Evans via R-help
  It seems to me, though, that there should be sexier (single command) way of achieving the desired result.  However I cannot devise one. Don't you find a for loop's naked display of intention to be sexy? Duncan Murdoch -- Chris Evans (he/him) Visiting Professor, UDLA, Quito, Ec

Re: [R] boxplot notch

2024-08-16 Thread Chris Evans via R-help
uot;))+ >theme(axis.text=element_text(size=18))+ >theme(axis.title=element_text(size=20))+ >ylab("Anteil BFF an LN [%]") +xlab("Jahr")+ >scale_color_manual(values=c("red","darkgreen"), labels=c("ÖLN", "BIO"

Re: [R] How to Reformat a dataframe

2023-10-28 Thread Chris Evans via R-help
st -- 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) Visiting Professor, UDLA, Quito, Ecuador & H

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
esn't the 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 aski

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
    aes(x = x, y = y, label = "▼", color = c), size = 6) + guides(color = FALSE) [much snipped] -- Chris Evans (he/him) Visiting Professor, UDLA, Quito, Ecuador & Honorary Professor, University of Roehampton, London, UK. Work web site: https://www.

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
ed to get 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 m

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 l

[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
_1.0.3   fontawesome_0.5.2 pkgconfig_2.0.3 [37] pillar_1.9.0  bslib_0.5.1   gtable_0.3.4 glue_1.6.2 [41] xfun_0.40 tidyselect_1.2.0  highr_0.10 rstudioapi_0.15.0 [45] knitr_1.43    farver_2.1.1  htmltools_0.5.6 rmarkdown_2.24 [49] labeling_0.4.2    compiler_4.3.1    downli

[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
lue, colour=Conc)) +   scale_colour_manual(values = c("darkslategray3", "darkslategray4", "deepskyblue4")) +   ggtitle("Working example") +   xlab(expression(bold("Time (h)"))) +   ylab(expression(bold("Concentration (mM)"))) Very  be

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
9 AM Bert Gunter wrote: Does this do it for you (or get you closer):  gsub("\\[.*\\]|[] |/ ","",tmp$Text) [1] "Я досяг того, чого хотів" [2] "Мені вдалося\nзробити бажане" [3] "Я досяг (досягла) того, чого хотів (хотіла)&quo

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
ologies if this is trivial but I'd hate to have to clean these hundreds of lines by hand though it's starting to look as if I'd achieve that faster by hand than I will by banging my ignorance of R regexp syntax on the problem. TIA, Chris -Original Message- From: R

[R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
`.Caused by error 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 t

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

2023-05-17 Thread Chris Evans via R-help
ry grateful. > > Martin > > __ > 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 guidehttp://www.R-project.org/posting-guide.html > and provi

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Chris Evans via R-help
uot;, "data.frame" > )) > > As there are some countries which are having higher volatilities than > countries with lower, is there any suggestion to improve the graph? > > Looking forward to your suggestion in this regard. > > With sincere regards, > Upananda Pani

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

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

2022-10-12 Thread Chris Evans
gt; > > That's what I want. I don't want the the returned principal > > component to be HIGH(LOW) on my computer and LOW(HIGH) on someone > > else's computer. > > That would confuse the people the code is shared with. > > > > Is this possible

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
Over the 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

Re: [R] stdev error

2022-03-11 Thread Chris Evans
t; > > > > [[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] How to create density ellipses with R

2022-01-15 Thread Chris Evans
/mailman/listinfo/r-help >> <https://stat.ethz.ch/mailman/listinfo/r-help> >> > PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> <http://www.R-project.org/posting-guide.html> >> > and provide comme

[R] Using R to convert RDF/XML to

2021-12-31 Thread Evans, Richard K. (GRC-H000) via R-help
what I need to learn, but any advice to help make quick work of this would be much appreciated. Thank you in advance. /Rich [1] https://www.semantic-mediawiki.org/wiki/Help:Maintenance_script_dumpRDF.php [2] https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki [3] h

Re: [R] Creating NA equivalent

2021-12-21 Thread Chris Evans
nted to either Tobit 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: Creati

Re: [R] Creating NA equivalent

2021-12-21 Thread Chris Evans
a later version of > the code here: > > https://stackoverflow.com/a/69179441/2554330 > > Duncan Murdoch > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/lis

Re: [R] Changing time intervals in data set

2021-12-15 Thread Chris Evans
gt; > Because these data are so different from what I've seen in the past I want > to explore whether (or how) they affect discharge variability calculations. > > Regards, > > Rich -- Chris Evans (he/him) Visiting Professor, UDLA, Quito, Ecuador & Honorary Professor

Re: [R] Syntax help for 'Pivot_longer'

2021-11-28 Thread Chris Evans
01.03.21 7 5 15 > 4 01.04.21 9 67 > 5 01.05.21 7 510 > > __ >

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

2021-11-12 Thread Chris Evans
> the source of this error. > > TIA, > > Rich > > ______ > 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-p

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

2021-09-19 Thread Chris Evans
ght I'd learned not to do 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:

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

2021-09-19 Thread Chris Evans
ginal 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

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

2021-09-19 Thread Chris Evans
Gunter" > To: "Chris Evans" > Cc: "R-help" > Sent: Saturday, 18 September, 2021 22:01:25 > Subject: Re: [R] Cacheing of functions from libraries other than the base in > Rmarkdown > I think you should post on the RStudio help forums. They have specific

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

2021-09-18 Thread Chris Evans
_1.1 cellranger_1.1.0gtable_0.3.0assertthat_0.2.1 [78] xfun_0.26 broom_0.7.9 rsconnect_0.8.24 viridisLite_0.4.0 survival_3.2-13 rJava_1.0-4 cluster_2.1.2 ellipsis_0.3.2 -- Chris Evans (he/him) Visiting Professor, University of

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

2021-07-07 Thread Chris Evans
BE 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] Weighted violin chart

2021-04-12 Thread Chris Evans
s to reply if you put small bits of data like your myData into 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 P

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

2021-02-11 Thread Chris Evans
al Message - > From: "Bill Dunlap" > To: "Chris Evans" > Cc: "R-help" > Sent: Wednesday, 10 February, 2021 16:48:18 > Subject: Re: [R] .Rprofile with devtools::install_github() loops > Installing a package involves running several R subprocesses, each

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

2021-02-10 Thread Chris Evans
Linux machine and a Windows machine. OK. Anyone save me from more dents in the wall and frontal lobe damage?! 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 Evan

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 t

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

2021-01-10 Thread Chris Evans
# x axis 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 Profes

[R] How to avoid ggplot clipping the x axis

2021-01-10 Thread Chris Evans
ring-the-coronavirus-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

Re: [R] Inappropriate color name

2020-11-17 Thread Chris Evans
ps://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. -- Small contribution in our coronavirus rigours: https://www.coresystemtrust.org.uk/home/free-option

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

2020-10-14 Thread Chris Evans
needs may grow). 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 th

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

2020-09-21 Thread Chris Evans
applying, I am 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 simple way to analyse all the data using dplyr?

2020-09-21 Thread Chris Evans
being fixing 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-pandemic/ Chris Evans Visiting Professor, University of Sheffield I do some consultation work for the Univ

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

2020-08-19 Thread Chris Evans
___ > 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. -- Small contributi

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

2020-07-24 Thread Chris Evans
e posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Small contribution in our coronavirus rigours: https://www.coresystemtrust.org.uk/home/free-options-to-replace-paper-core-forms-during-the-coronavirus-pandemic/

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

2020-07-05 Thread Chris Evans
Chris - Original Message - > From: "Rui Barradas" > To: "Chris Evans" , "R-help" > Sent: Sunday, 5 July, 2020 13:16:19 > Subject: Re: [R] Can I pass the grouped portions of a dataframe/tibble to a > function in dplyr > Hello, > > I fo

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

2020-07-05 Thread Chris Evans
tten for people who aren'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-for

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-10 Thread Chris Evans
ile. Chris [rest snipped] -- 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 of Roe

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

2020-05-19 Thread Chris Evans
NEW BRAUNFELS", "NEW BRITAIN", "NEW BRUNSWICK", > "NEW CASTLE", "NEW CUMBERLAND", "NEW HAVEN", "NEW KENSINGTON", > "NEW LONDON", "NEW ORLEANS", "NEW PRESTON", "NEW PROVIDENCE", > "

Re: [R] Grouping Question

2020-03-21 Thread Chris Evans
__ > 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. -- Chris Evans

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

2020-02-04 Thread Chris Evans
out there? Thanks cpolwart and also 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:

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

2020-02-04 Thread Chris Evans
on about the potential 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

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

2020-02-04 Thread Chris Evans
tch these weird rounding errors and correct them, I am 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

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

2020-01-31 Thread Chris Evans
e. > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, > UCT), Dipl. Phys. (Germany) > > Orcid ID: -0002-7490-0066 > > Department of Evolutionary Biology and Environmental Studies > University of Zürich > Office Y34-J-74 >

Re: [R] Mixed format

2020-01-21 Thread Chris Evans
__ >> 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-containe

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

2019-12-10 Thread Chris Evans
.2 10.3 10.4 > 8 12 13 10 17888 158 21 12 208 16 17 > 17 16 15 19 > 10.5 10.6 10.7 10.8 10.9 11 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 > 12 > 12.1 12.2 12.3 12.4 > 17 21 30 14 24 25 23 34 51 48 51 54 53

[R] Creating a web site checker using R

2019-08-08 Thread Chris Evans
tise and as, to be brutally honest, 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 Visit

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, University

[R] how to ref data directly from bls.gov using their api

2019-01-29 Thread Evans, Richard K. (GRC-H000) via R-help
Hello, I'd like to generate my own plots of various labor statistics using live data available at https://www.bls.gov/bls/api_features.htm This is 10% an R question and 90 % a bls.gov api query question. Please forgive me for making this request here but I would be truly grateful for anyone

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

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

Re: [R] help with json data from the web into data frame in R

2018-05-09 Thread Evans, Richard K. (GRC-H000)
s raw text, but it is not clear to me how to convert the curl response variable into an object that is handled natively by the JSON parsing functions. -Rich -Original Message- From: MacQueen, Don [mailto:macque...@llnl.gov] Sent: Wednesday, May 09, 2018 11:08 AM To: Evans, Richard K.

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
ity]]|?Capital%20of|?Has%20area", "format" = "json" .opts = list(ssl.verifypeer = FALSE) ) Thank you! -Rich -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Evans, Richard K. (GRC-H000) Sent: Tuesday, May 08, 2018 12:51 PM To: Davi

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
simple example of using RCurl to get a response ignoring cert errors? ty -Rich -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 08, 2018 12:25 PM To: Evans, Richard K. (GRC-H000) Cc: r-help@r-project.org Subject: Re: [R] help with json data from the

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
I can do it with cURL from the linux bash shell.. not in R -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 08, 2018 12:25 PM To: Evans, Richard K. (GRC-H000) Cc: r-help@r-project.org Subject: Re: [R] help with json data from the web into data

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
E, check.names = TRUE, : arguments imply differing number of rows: 0, 1 > print(json_data_frame) Error in print(json_data_frame) : object 'json_data_frame' not found > -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Evans, Ric

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
n equivalent in the R world? -Rich -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 08, 2018 11:48 AM To: Evans, Richard K. (GRC-H000) Cc: Eric Berger; r-help@r-project.org Subject: Re: [R] help with json data from the web into data frame in

Re: [R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
From: Eric Berger [mailto:ericjber...@gmail.com] Sent: Tuesday, May 08, 2018 11:31 AM To: Evans, Richard K. (GRC-H000) Cc: r-help@r-project.org Subject: Re: [R] help with json data from the web into data frame in R Hi Rich, Take a look at the function fromJSON found in the rjson package. Note that

[R] help with json data from the web into data frame in R

2018-05-08 Thread Evans, Richard K. (GRC-H000)
Hello I am able to construct a url that points to some data online in the JSON format. See an example at [0]. I would like to work with this data as a dataframe in R. I know that there is a package for handling json data [1] but it assumes the data is in a local file but It is not clear to me

Re: [R] bowed linear approximations

2017-09-26 Thread Evans, Richard K. (GRC-H000)
[solved] -- As always, the solution is simple and I always feel foolish for not having seen it right away. Thank you, John, for showing that the frequency data can be "converted" to log before the linear approximations are made.. once the linear approximations are done with log data, the appro

Re: [R] bowed linear approximations

2017-09-26 Thread Evans, Richard K. (GRC-H000)
My apologies for the typos in the code. Here is a corrected version you can copy/paste in R to see the issue. freq <- c(2, 3, 5, 10, 50, 100, 200, 300, 500, 750, 1000, 1300, 1800, 2450, 2900, 3000, 4000, 5000, 6000, 7000, 8200, 9300, 1, 11000, 18000, 26500, 33000, 4); mag <- c(1.989303

Re: [R] bowed linear approximations

2017-09-26 Thread Evans, Richard K. (GRC-H000)
Eric, John, thank you both very much for responding. Ok.. I suppose I need to show more of the actual data. I have this data: freq <- c(2, 3, 5, 10, 50, 100, 200, 300, 500, 750, 1000, 1300, 1800, 2450, 2900, 3000, 4000, 5000, 6000, 7000, 8200, 9300, 1, 11000, 18000, 26500, 33000, 4) ma

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" > To: "Chris Evans" > Cc: "R. Help" > Sent: Tuesday, 26 September, 2017 08:41:33 > Subject: Re: [R] Surprising message "Error in FUN(newX[, i], ...) : all > ar

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

2017-09-25 Thread Chris Evans
I am hitting an odd message "Error in FUN(newX[, i], ...) : all arguments must have the same length". I can't supply the data as it's a huge data frame but I think this has enough diagnostic information to show the issue. I am sure I am missing something obvious. I've put some extra comments

[R] bowed linear approximations

2017-09-25 Thread Evans, Richard K. (GRC-H000)
Hello, Please run the following code snippet and note the resulting plot: x <- c(10, 50) y <- c(0.983, 0.7680123) plot(x,y,type="b",log="x") for(i in 1:50){ xx <- exp(runif(1,log(min(x)),log(max(x)) )) yy <- approx(x,y,xout=xx, method = "linear") points(xx,yy$y) } notice the "log=x" plot pa

Re: [R] Has anyone created diagrammatic representations of Access/ODBC databases using R?

2017-03-08 Thread Chris Evans
d to all r-helpers! Chris - Original Message - > From: "Paul Murrell" > To: "Chris Evans" > Sent: Wednesday, 8 March, 2017 19:34:25 > Subject: Re: [R] Has anyone created diagrammatic representations of > Access/ODBC databases using R? > Hi >

[R] Has anyone created diagrammatic representations of Access/ODBC databases using R?

2017-03-08 Thread Chris Evans
I have been on a fair old learning curve handling a fairly complex Access database with my beloved, if sometimes tantaslising, R. I've been using RODBC to do this and, despite the database not being all that well designed, the power of R and RODBC has been fantastic (of course). Huge thanks to R

Re: [R] Odd behaviour of mean() with a numeric column in a tibble

2016-12-10 Thread Chris Evans
soul and my deeper and wider understanding of R to go right back to the basics. Thanks again to you both. I am posting here to convey thanks and in case this is useful to anyone like myself who benefits from a bit more narrative than is usually offered by R definitions and help entries. Chris

Re: [R] Odd behaviour of mean() with a numeric column in a tibble

2016-12-06 Thread Chris Evans
incompletely, than the tibble documentation does, why all this is good. Thanks anyway Ista, you certainly hit the issue! Very best all, Chris > From: "Ista Zahn" > To: "Chris Evans" > Cc: "r-helpr-project.org" > Sent: Tuesday, 6 December, 2016 21:40

[R] Odd behaviour of mean() with a numeric column in a tibble

2016-12-06 Thread Chris Evans
I hope I am obeying the list rules here. I am using a raw R IDE for this and running 3.3.2 (2016-10-31) on x86_64-w64-mingw32/x64 (64-bit) Here is a reproducible example. Code only first require(tibble) tmpTibble <- tibble(ID=letters,num=1:26) min(tmpTibble[,2]) # fine max(tmpTibble[,2]) # fine

Re: [R] In praise of "options(warnPartialMatchDollar = TRUE)"

2016-11-27 Thread Chris Evans
then add the others using dataframe[['newVariable']] <- nextVector ? Very best wishes and thanks again: this is an amazing list, Chris - Original Message - > From: "David Winsemius" > To: "Chris Evans" > Cc: r-help@r-project.org > Sent: Sunda

[R] In praise of "options(warnPartialMatchDollar = TRUE)"

2016-11-27 Thread Chris Evans
I am just posting this to the list because someone else may one day waste an hour or so because s/he has unknowingly hit a partial match failure using "$". It's my folly that I did but I am surprised that options(warnPartialMatchDollar = TRUE) isn't the default setting. Here's a bit of reprodu

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Chris Evans
tion. As ever, deeply indebted to the R and R-help communities, Chris > From: "Ismail SEZEN" > To: "Chris Evans" > Cc: "r-help" > Sent: Monday, 12 September, 2016 10:36:51 > Subject: Re: [R] Help with strftime error "character string i

[R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-11 Thread Chris Evans
I am trying to read activity data created by Garmin. It outputs dates like this: "Thu, 25 Aug 2016 6:34 PM" The problem that has stumped me is this: > strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") Error in as.POSIXlt.character(x, tz = tz) : character string is not in a s

[R] Non-conformable arrays - Error in var(betas)

2015-11-19 Thread Naomi Evans
Hello, If there is anyone who can offer me some guidance on how to resolve the error below, I would be very grateful. I am attempting to conduct a 'Resource Utilization Function' analysis using the 'ruf' package. My code is below: library(ruf) d78423 <- read.csv("RUF/78423_RelUse.csv") #

Re: [R] No speed up using the parallel package and ncpus > 1 with boot() on linux machines

2015-10-18 Thread Chris Evans
As with Milan's answer: perfect explanation and hugely appreciated. A few follow up questions/comments below. - Original Message - > From: "Jeff Newmiller" > To: "Chris Evans" > Cc: r-help@r-project.org > Sent: Saturday, 17 October, 2015 18:28:12

Re: [R] No speed up using the parallel package and ncpus > 1 with boot() on linux machines

2015-10-18 Thread Chris Evans
- Original Message - > From: "Milan Bouchet-Valat" > To: "Chris Evans" , r-help@r-project.org > Sent: Saturday, 17 October, 2015 18:13:40 > Subject: Re: [R] No speed up using the parallel package and ncpus > 1 with > boot() on linux machines >

[R] No speed up using the parallel package and ncpus > 1 with boot() on linux machines

2015-10-17 Thread Chris Evans
I think I am failing to understand how boot() uses the parallel package on linux machines, using R 3.2.2 on three different machines with 2, 4 and 8 cores all results in a slow down if I use "multicore" and "ncpus". Here's the code that creates a very simple reproducible example: bootReps <- 5

[R] Recursive looping of a list in R

2015-08-08 Thread Evans
I am trying to creat a list from a loop such that once you loop the value obtained is appended onto the list, then you loop through that value to give the next elemet of the list and the system continues recusively. To be clear I am creating a list to contain elements of the following tree probabil

[R] Help: The Difference Between Workspace, Script, and History

2014-12-17 Thread Ian Evans
I apologize that I am very new to R and programming in general. I do not understand the difference between the script, the workspace, and the history, and what saving each one means. I seem to be doing fine writing commands and going through lessons and examples (I'm using Learn R in a Day) but wh

[R] package ‘build-essential’ is not available (for R version 3.0.2)

2013-11-11 Thread Charles Evans
Hello, I have searched on the R-Project site, R-Help archives, and the Internet at large, and I cannot find a solution to my problem. I am running R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" on Ubuntu 13.04. When I try to install several packages, including quantmod, with dependencies=T se

Re: [R] Lattice plots and missing x-axis labels on second page

2011-11-02 Thread Evans, David G (DFG)
ain. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Evans, David G (DFG) Sent: Wednesday, November 02, 2011 3:24 PM To: r-help@r-project.org Subject: [R] Lattice plots and missing x-axis labels on second page Hello, I'm trying to

[R] Lattice plots and missing x-axis labels on second page

2011-11-02 Thread Evans, David G (DFG)
nd page. Everything looks fine for the first page, but the x-axis labels (e.g. 1993, 1994...) are all missing on the second page. The x-axis variable name ("Year") is there at the bottom, however. Any help is appreciated. Thanks. David G. Evans Biometrician Division of Sport Fish Alask

Re: [R] Linear programming problem, RGPLK - "no feasible solution".

2011-10-10 Thread Liu Evans, Gareth
In my post at https://stat.ethz.ch/pipermail/r-help/2011-October/292019.html I included an undefined term "ej". The problem code should be as follows. It seems like a simple linear programming problem, but for some reason my code is not finding the solution. obj <- c(rep(0,3),1) col1 <-c(1,0

[R] Linear programming problem, RGPLK - "no feasible solution"

2011-10-07 Thread Liu Evans, Gareth
Dear All, RGLPK says that there is no feasible solution but I think there should be. In a more general setup with more variables, where we know the feasible solution analytically, it also says there is no feasible solution. I have tried different values. except the 0s and 1s must stay as they

[R] minimisation problem, two setups (nonlinear with equality constraints/linear programming with mixed constraints)

2011-10-03 Thread Liu Evans, Gareth
Dear All, Thank you for the replies to my first thread here: http://r.789695.n4.nabble.com/global-optimisation-with-inequality-constraints-td3799258.html. So far the best result is achieved via a penalised objective function. This was suggested by someone on this list privately. I am still l

[R] global optimisation with inequality constraints

2011-09-08 Thread Liu Evans, Gareth
Dear All, I would like to minimise a nonlinear function subject to linear inequality constraints as part of an R program. I have been using the constrOptim function. I have tried all of the methods that come with Optim, but nothing finds the correct solution. If I use the correct solution as

[R] Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?

2011-05-29 Thread Chris Evans
4 FALSE" [1] "i = 5 FALSE" [1] "i = 6 FALSE" [1] "i = 7 FALSE" [1] "i = 8 FALSE" [1] "i = 9 FALSE" [1] "i = 10 FALSE" [1] "i = 11 FALSE" [1] "i = 12 FALSE" [1] "i = 13 FALSE" [1] "i = 14 FALSE&quo

  1   2   >