[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

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

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

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

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 >

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

[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] 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] 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] 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

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

[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] 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] Oddity with internet access and R 11.0 with Sophos firewall and Windoze XP - solved

2010-04-23 Thread Chris Evans
Thanks to the R team, yet again, for an amazing product! Chris -- Chris Evans Skype: chris-psyctc Consultant Psychiatrist in Psychotherapy, Notts. PDD network; Trust Research Governance Lead and Clinical Director, Psychological Therapies Directorate in Local Services, Nottinghamshire NHS Trust;

Re: [R] What is the best way to have "R" output tables in an MS Word format?

2010-05-01 Thread Chris Evans
lt.edu/twiki/bin/view/Main/StatReport >> >> Frank also has some pointers for converting between various formats: >> >>http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/SweaveConvert >> >> HTH, >> >> Marc Schwartz >> >> ___

Re: [R] Odp: What is the best way to have "R" output tables in an MS Word format?

2010-05-03 Thread Chris Evans
_ >> R-help@r-project.org mailing list >> 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. >> > > [[alternative

Re: [R] What is the best way to have "R" output tables in an MS Word format?

2010-05-03 Thread Chris Evans
ven provided tabs for matrices and tables? I'll pick up more in response to Max Kuhn's message. Very best, Chris -- Chris Evans Skype: chris-psyctc Consultant Psychiatrist in Psychotherapy, Notts. PDD network; Trust Research Governance Lead and Clinical Director, Psychological Th

[R] extending strsplit to handle missing text that doesn't have the target on which to split

2009-05-07 Thread Chris Evans
I am sure there is an obvious answer to this that I'm missing but I can't find it. I'm parsing headers of Emails and most have a date like this: "Wed, 16 Nov 2005 05:28:00 -0800" and I can parse that using: tmp.dat.data <- matrix(unlist(strsplit(headers$Date.line,",")), ncol = 2, byrow = T

[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] 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] 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] 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] 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

[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

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] .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] .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

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] 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. >> >>

[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] Cacheing of functions from libraries other than the base in Rmarkdown

2021-09-19 Thread Chris Evans
areas > to > ask for help on their stuff, at least for some of it. You may wish to wait a > bit before doing so, though, just to see if someone here responds. > Bert > On Sat, Sep 18, 2021, 12:26 PM Chris Evans < [ mailto:chrish...@psyctc.org | > chrish...@psyctc.org ] >

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

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

[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] 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

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

[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] 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

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

[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] 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

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

[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

[R] OT: batch processing XLS files to CSV

2008-05-28 Thread Chris Evans
, I'm sure there are more specific lists or web resources but I think the skills are here too and if someone can tell me how to do this all in R, I'd be fascinated. Many thanks, Chris -- Chris Evans <[EMAIL PROTECTED]> Skype: chris-psyctc Professor of Psychotherapy, Nottingham Un

Re: [R] repeated measure one way anova

2008-10-28 Thread Chris Evans
te(mlmfit, ~0) tmp.man <- anova(mlmfit,mlmfit0,X=~1,test="Wilks") manova.p <- tmp.man[8][2,1] Am I right that the above extracts the p value for the nlme test of the individual slopes of score against occasion and then the MANOVA test ... of no difference between occasions? How

[R] Utility data uploading functions prior to analysing data using CGIwithR

2007-10-12 Thread Chris Evans
all amount of SPR money in it too but we're not exactly flush so I really don't know. TIA, and, as always when I'm here, thanks for R and this list! Chris -- Chris Evans <[EMAIL PROTECTED]> Skype: chris-psyctc Professor of Psychotherapy, Nottingham University; Consultant Ps

Re: [R] R & learning curves. Was RE: R routines vs. MATLAB/SPSS Routines

2007-10-26 Thread Chris Evans
usly grateful to those many generous people who created R and its packages and to the many who do stop and help we less strong climbers! Sorry Ravi, couldn't resist! Best wishes and thanks to all, Chris -- Chris Evans <[EMAIL PROTECTED]> Skype: chris-psyctc Professor of Psychother

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

[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] 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

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

[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

[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

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

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

[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] 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"),   

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