Re: [R] readxl/lifecycle/rlang

2021-12-01 Thread Jeff Newmiller
This >package ‘rlang’ successfully unpacked and MD5 sums checked >Warning in install.packages : > cannot remove prior installation of package ‘rlang’ indicates that rlang didn't get re-installed. It is a warning because R seems to think it could still be working, but it isn't verifying that

[R] readxl/lifecycle/rlang

2021-12-01 Thread Dennis Weygand
I have been using read_excel for years... suddenly today I have this problem: > T1 <- read_excel(fname,sheet="T1") Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘lifecycle’ So I install lifecycle: install.packages("lifecycle") WARNING:

Re: [R] help

2021-12-01 Thread Jim Lemon
Hi mehdi, Try this (first example in the help page): ref<-rnorm(30,sd=2) # add a little noise model1<-ref+rnorm(30)/2 # add more noise model2<-ref+rnorm(30) # display the diagram with the better model oldpar<-taylor.diagram(ref,model1) # now add the worse model

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Bert Gunter
"As to obtaining min or max of columns, such a question is nonsensical when the column contains character data," That is false. First, if it's plain (unclassed) character data, character data is sorted lexicographically, which depends on the locale, as Petr already pointed out. Perhaps more

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
Thanks, Avi. Yes, loading packages by library command is necessary to access a function not resident in the standard R code. The data set I am reviewing has column names changing. The thought is to do a review of max and min for whatever the column names happen to be for the data input I am

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
Thank you, Petr, for the kind explanation. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 12/1/21 11:19 AM, PIKAL Petr wrote: Hi. It is always worth to consult excellent R help. max and min

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
Hi Jeff, Thanks for the reply. Your attitude in your writing is terse. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 12/1/21 11:31 AM, Jeff Newmiller wrote: Avi: As I understand it, the

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Jeff Newmiller
Avi: As I understand it, the definition regarding what is on-topic is not targeted at tidyverse... it addresses the futility of trying to support the thousands of problem domains represented by contributed packages in one mailing list without drowning the subscribers in discussions about

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread PIKAL Petr
Hi. It is always worth to consult excellent R help. max and min return the maximum or minimum of all the values present in their arguments, as integer if all are logical or integer, as double if all are numeric, and character otherwise. Character versions are sorted lexicographically, and

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
Jeff, Can you use max and min evaluations on any other data type then numeric? If so, how do you evaluate max or min of text content? String length? Ascii values of text characters? *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454

Re: [R] readxl

2021-12-01 Thread Jeff Newmiller
Probably some kind of failure occurred during package updating and one or more of the packages readxl depends on was removed but not successfully re-installed. Run install.packages( "lifecycle" ) and then update.packages() and try using your function again. If a similar error occurs,

[R] readxl

2021-12-01 Thread Dennis Weygand
I have been using readxl function for years... Suddenly, today, I get an error message: > T1 <- read_excel(fname,sheet="T1") Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘lifecycle’ Does anyone know what has happened? D.P. Weygand Old

Re: [R] Syntax help for 'Pivot_longer'

2021-12-01 Thread John Kane
Hi Phillip, Let's say your original data is in a data.frame called "mydata". What you want to do is issue de command dput(mydata) then just copy the output and paste it into the message. Here is a very simple example dat1 <- data.frame(xx = LETTERS[1:10], yy = 10:1) dput(dat1)

Re: [R] Degree symbol as axis label superscript

2021-12-01 Thread Rich Shepard
On Wed, 1 Dec 2021, ani jaya wrote: one of my solution : text(x,y,"\u00B0C", cex=1.1, font=2) it will produce "°C" Ani, That's what I did. Thank you, Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-12-01 Thread Rich Shepard
On Tue, 30 Nov 2021, David Winsemius wrote: There's nothing special about following a digit. You can have it follow anything. Since you were going to need to quote the parentheses anywa, then have it superscripted above the level of the paren: plot(1,1, ylab =