Re: [R] Help with plotting and date-times for climate data

2023-09-15 Thread Martin Møller Skarbiniks Pedersen
Change geom_point(aes(y = tmax_mean, color = "blue")) to geom_point(aes(y = tmax_mean), color = "blue") if you want blue points. aes(color = ) does not set the color of the points. aes(color = ) takes a column (best if it is a factor) and uses that for different colors. /Martin On Tue, Sep

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Richard O'Keefe
ncludes both min and max > > > thresholds. > > > > > > All I have done is provide an example where min and max could have > > > a real world use. I use max(temp) over some interval and then > > > update an accumulated thermal units variable based on the outcome.

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
t the date (say Day). Group_by the day and apply a max function to the grouped data. Then plot the result. Tim -Original Message- From: Kevin Zembower Sent: Wednesday, September 13, 2023 3:26 PM To: Ebert,Timothy Aaron ; Richard O'Keefe Cc: r-help@r-project.org Subject: Re: [R] Hel

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
rom: Kevin Zembower > Sent: Wednesday, September 13, 2023 2:05 PM > To: Ebert,Timothy Aaron ; Richard O'Keefe > > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times for climate data > > [External Email] > > Well, I looked for this, on bo

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
; Richard O'Keefe Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Well, I looked for this, on both the NWS and WeatherUnderground, but couldn't find what I was looking for. Didn't check Weather.com, but if you can find

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
depends on how far away the trip will be. > > -Original Message- > From: Kevin Zembower > Sent: Wednesday, September 13, 2023 1:22 PM > To: Richard O'Keefe ; Ebert,Timothy Aaron > > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
: Wednesday, September 13, 2023 1:22 PM To: Richard O'Keefe ; Ebert,Timothy Aaron Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Tim, Richard, y'all are reading too much into this. I believe that TMAX is the high temperature

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
Rui, thanks so much for your clear explanation, solution to my problem, and additional help with making the graph come out exactly as I was hoping. I learned a lot from your solution. Thanks, again, for your help. -Kevin On Tue, 2023-09-12 at 23:06 +0100, Rui Barradas wrote: > Às 21:50 de 12/09/2

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
l is not evident in the original request. > > > > Tim > > > > -Original Message- > > From: R-help On Behalf Of Richard > > O'Keefe > > Sent: Wednesday, September 13, 2023 9:58 AM > > To: Kevin Zembower > > Cc: r-help@r-project.org &g

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Richard O'Keefe
; > Tim > > -Original Message- > From: R-help On Behalf Of Richard O'Keefe > Sent: Wednesday, September 13, 2023 9:58 AM > To: Kevin Zembower > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times for climate data > > [External Ema

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
On Behalf Of Richard O'Keefe Sent: Wednesday, September 13, 2023 9:58 AM To: Kevin Zembower Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Off-topic, but what is a "mean temperature max" and what good would it do you

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Richard O'Keefe
Off-topic, but what is a "mean temperature max" and what good would it do you to know you if you did? I've been looking at a lot of weather station data and for no question I've ever had (except "would the newspapers get excited about this") was "max" (or min) the answer. Considering the way that

Re: [R] Help with plotting and date-times for climate data

2023-09-12 Thread Rui Barradas
Às 21:50 de 12/09/2023, Kevin Zembower via R-help escreveu: Hello, I'm trying to calculate the mean temperature max from a file of climate date, and plot it over a range of days in the year. I've downloaded the data, and cleaned it up the way I think it should be. However, when I plot it, the ge

[R] Help with plotting and date-times for climate data

2023-09-12 Thread Kevin Zembower via R-help
Hello, I'm trying to calculate the mean temperature max from a file of climate date, and plot it over a range of days in the year. I've downloaded the data, and cleaned it up the way I think it should be. However, when I plot it, the geom_smooth line doesn't show up. I think that's because my x ax

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
Magic! tmp %>%   as_tibble() %>%   rename(Text = value) %>%   mutate(Text = str_replace_all(Text, fixed("."), "")) %>%   # filter(row_number() < 4) %>%   mutate(Text2 = gsub("((|/)[[:alnum:]]+)|(\\([[:alnum:]-]+\\))", "", Text)) Which (as you have already shown!) gave me this: # A tibble:

Re: [R] Help with regex replacements

2023-06-27 Thread Bert Gunter
OK, so you want parentheses, not "brackets" + I think I misinterpreted your specification, which I think is actually incomplete. Based on what I think you meant, how does this work: gsub("((|/)[[:alnum:]]+)|(\\([[:alnum:]-]+\\))", "",tmp$Text) [1] "Я досяг того, чого хотів" "Мені

Re: [R] Help with regex replacements

2023-06-27 Thread Bert Gunter
Does this do it for you (or get you closer): gsub("\\[.*\\]|[] |/ ","",tmp$Text) [1] "Я досяг того, чого хотів" [2] "Мені вдалося\nзробити бажане" [3] "Я досяг (досягла) того, чого хотів (хотіла)" [4] "Я\nдосяг(-ла) речей, яких хотілося досягти" [5] "Я досяг/ла того, чого\nхотів/ла" [6] "Я до

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 avi.e.gross
: r-help@r-project.org Subject: [R] Help with regex replacements I am sure this is easy for people who are good at regexps but I'm failing with it. The situation is that I have hundreds of lines of Ukrainian translations of some English. They contain things like this: 1"Я досяг того,

[R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
I am sure this is easy for people who are good at regexps but I'm failing with it.  The situation is that I have hundreds of lines of Ukrainian translations of some English. They contain things like this: 1"Я досяг того, чого хотів"2"Мені вдалося зробити бажане"3"Я досяг (досягла) того, чого х

[R] Help with bootstrap sampling with rms package in R

2023-04-24 Thread Munveer Thind via R-help
Hi all, I appreciate any help that can be offered and don’t mind sending a fee to anyone that can help. I am a physician and am writing a paper to be submitted to a medical journal and am performing bootstrap internal validation by the Harrell method using the R package called rms. It’s a mul

Re: [R] Help with function and survey data

2022-10-31 Thread Edjabou Vincent
Dear Bert Thank you for your suggestion. I have tried it but it did not work. For record, I am reposting the post with the plain text. library(tidyverse) library(plyr) library(survey) dat <- structure(list( r3a_1 = structure(c(3L, 2L, 3L, 3L, 3L, 3L, 3L,3L, 3L, 3L, 3L, 2L, 2L, 3L, 3L, 3L, 3L

Re: [R] Help with function and survey data

2022-10-31 Thread Bert Gunter
1. This is a plain text list. Set your email to post in plain text, not html, which often gets mangled (see below). 2. I did not run your example, but try: my_funca(mk =names(dat)[1:9], y = dat$seg_2) ## seg_2 is a component of dat and is not in the environment of the call. I did not see any data

[R] Help with function and survey data

2022-10-31 Thread Edjabou Vincent
Dear R-Help I am working with complex survey data using the survey package. I would like to create a function for the generate multi crosstable. The problem is that I am getting error with the following message: "Error in eval(predvars, data, env) : object 'y' not found" Here is the example: libra

Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I think you are being dishonest. That code does not appear on hrbrmstr's vignette at least in a form that I recognize. When I run your code from the first posting with all the instances of `com_num` replaced by `com_name` and removing the `pointer` entry in dat which throws an error when tryin

Re: [R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Actually in my main data the column name is com_num ( where mistakenly I pasted the sample data here under the com_name ). So, when I run the command successfully this is the error shows up - ▆ 1. ├─... %>% sg_legend(show = TRUE, label = "Share: ") 2. ├─streamgraph::sg_legend(., show = TRU

Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I don’t see a column with the name ‘com_num’, so the error message makes complete sense. — David Sent from my iPhone > On Oct 2, 2022, at 5:06 AM, Tariq Khasiri wrote: > > Hi, i'm trying to create a steamgraph with the following data by creating a > unit indicator by combing the year and m

[R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Hi, i'm trying to create a steamgraph with the following data by creating a unit indicator by combing the year and month. But, I'm getting error as : Error in `group_by()`: ! Must group by variables found in `.data`. ✖ Column `com_num` is not found. Run `rlang::last_error()` to see where the error

Re: [R] Help with a simple subroutine

2022-09-09 Thread Steven T. Yen
to start looking for a problem. Hand calculation can use pencil and paper or Excel or other tools. It is a tedious task but very effective. Tim -Original Message- From: R-help On Behalf Of Ivan Krylov Sent: Friday, September 9, 2022 5:03 AM To: Steven T. Yen Cc: R-help Mailing List

Re: [R] help with RcppTOML library

2022-03-25 Thread Ivan Krylov
On Thu, 24 Mar 2022 20:33:39 -0700 Bogdan Tanasa wrote: > "/FRIDAY/CONDA/pkgs/r-rcpptoml-0.1.7-r41h03ef668_0/lib/R/library/RcppTOML" I have no idea how Conda works, but shouldn't this entry point to the parent directory, that is, "/FRIDAY/CONDA/pkgs/r-rcpptoml-0.1.7-r41h03ef668_0/lib/R/library"?

Re: [R] help with installing R packages on Mac : these packages are downloaded but not compiled

2022-03-23 Thread Bogdan Tanasa
Thank you Jeff. Well, the same messages I do receive not only I do install "tidyverse" but also any other packages from BioConductor ; specifically, the packages are downloaded but not compiled and not installed. I believe that it is a more global R issue with Mac Monterey, although I do not kno

Re: [R] help with installing R packages on Mac : these packages are downloaded but not compiled

2022-03-23 Thread Jeff Newmiller
Tidyverse has dozens of dependencies... and when a dependency fails to install then you often need to install it explicitly... the automatic dependency algorithm doesn't seem to work robustly. Carefully read your error messages... it looks like you should start by installing backports. On Marc

Re: [R] Help with using the huxreg() function

2022-03-22 Thread Bert Gunter
" I don't know if this is the right way to ask for help, but at least I thought I could give it a try." It isn't. Read the posting guide linked below to learn what is expected here. In particular, please note that it explicitly says: "Basic statistics and classroom homework: R-help is not intended

[R] Help with using the huxreg() function

2022-03-22 Thread Linda Stefansson
Hello, I am currently studying Econometrics at my university in Sweden, and we use RStudio. We are now doing our last assignment and I need a little bit of help with it. I have made a regression table using the huxreg() function for 4 different models. The task is to make the table only display t

Re: [R] Help with developing package DWLS

2022-01-11 Thread Bert Gunter
Andrew has already provided you a lot of help, but further posts should go to r-package-devel, which is a mailing list specifically set up to provide the sort of help you requested. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." --

Re: [R] Help with developing package DWLS

2022-01-11 Thread Andrew Simmons
The NOTE saying 'Possibly misspelled words in DESCRIPTION' can probably be ignored (though I would probably put the name of your package in single quotes). The NOTE 'Non-standard files/directories found at top level' means that you should move the non-standard files to a different location OR add

[R] Help with developing package DWLS

2022-01-11 Thread Adriana Sistig
Hello, My name is Adriana Sistig and I am struggle to fix an ERROR and a few WARNING and NOTE message that I am getting from my package. I am new to CRAN packaging and am having some trouble finalizing my package. I do not have any ERRORS when I check using Mac but when checking via Windows

Re: [R] help with LDA topic modelling..

2021-12-20 Thread akshay kulkarni
Thanks a lot From: Jim Lemon Sent: Monday, December 20, 2021 1:43 PM To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] help with LDA topic modelling.. Hi Akshay, It depends upon how the circles are calculated. If each circle encloses all of the

Re: [R] help with LDA topic modelling..

2021-12-20 Thread Jim Lemon
Hi Akshay, It depends upon how the circles are calculated. If each circle encloses all of the members of each group, yes. I doubt you would get perfect separation in any real example, though. At the moment: Hanukkah is finished, Margashirsha Punima has just happened and Christmas is coming up. No m

[R] help with LDA topic modelling..

2021-12-19 Thread akshay kulkarni
dear members, I am using LDA for topic modelling of news articles (topicmodels package). I am visualizing the accuracy with the LDAvis package. The visualization shows clusters as circles, probably intersecting. My question is, if a find the optimal number of topics, k,

Re: [R] help with parellel processing and RSelenium

2021-12-14 Thread akshay kulkarni
To: akshay kulkarni ; R help Mailing list Subject: Re: [R] help with parellel processing and RSelenium Hello, Inline. �s 16:43 de 12/12/21, akshay kulkarni escreveu: > dear members, > I am a stock trader based in INDIA using R for my > research. I have two questi

Re: [R] help with parellel processing and RSelenium

2021-12-12 Thread Bert Gunter
I would suggest instead: foo <- function(pars){ with(pars, (res <- (x + y)*z^w list(result = res, message = alpha) )) } On Sun, Dec 12, 2021, 9:12 AM Rui Barradas wrote: > Hello, > > Inline. > > Às 16:43 de 12/12/21, akshay kulkarni escreveu: > > dear members, > >

Re: [R] help with parellel processing and RSelenium

2021-12-12 Thread Rui Barradas
Hello, Inline. Às 16:43 de 12/12/21, akshay kulkarni escreveu: dear members, I am a stock trader based in INDIA using R for my research. I have two questions: 1. I want to send the same function with different arguments to different cores. This link in SO http

[R] help with parellel processing and RSelenium

2021-12-12 Thread akshay kulkarni
dear members, I am a stock trader based in INDIA using R for my research. I have two questions: 1. I want to send the same function with different arguments to different cores. This link in SO https://stackoverflow.com/questions/25045998/send-function-calls-with-dif

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-18 Thread Stephen Hartley
is is pertinent > but thought I should mention it just in case. > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > *From: *Eric Berger > *Sent: *Wednesday, November 17, 2021 1:04 PM > *To: *Stephen Hartley

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-18 Thread Eric Berger
k (coincidental timing). So I doubt this is pertinent but >> thought I should mention it just in case. >> >> >> >> Sent from Mail for Windows >> >> >> >> From: Eric Berger >> Sent: Wednesday, November 17, 2021 1:04 PM >> To: Stephe

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-18 Thread Stephen Hartley
I have not tried that. I'm not certain if I have the permissions for remote desktop, but I will find out and give it a shot if possible. On Wed, Nov 17, 2021, 12:04 PM Eric Berger wrote: > Hi Stephen, > Does the problem still occur if you connect remotely to your computer from > a different comp

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-17 Thread Mark Fowler
phen Hartley<mailto:stephen.hartley@gmail.com> Cc: r-help@r-project.org<mailto:r-help@r-project.org> Subject: Re: [R] Help with strange RGui behavior? Will not consistently run source. Hi Stephen, Does the problem still occur if you connect remotely to your computer from a diff

Re: [R] Help with strange RGui behavior? Will not consistently run source.

2021-11-17 Thread Eric Berger
Hi Stephen, Does the problem still occur if you connect remotely to your computer from a different computer? e.g. via remote desktop? On Wed, Nov 17, 2021 at 6:50 PM Stephen Hartley < stephen.hartley@gmail.com> wrote: > So I've got an odd problem that I can't seem to nail down, and I'm not >

[R] Help with strange RGui behavior? Will not consistently run source.

2021-11-17 Thread Stephen Hartley
So I've got an odd problem that I can't seem to nail down, and I'm not totally sure even where I should go to ask about it. Hopefully this mailing list is acceptable, and please do let me know if not. I'm using the "Rgui.exe" interface for R in windows 10. I've used this for more than a decade now

Re: [R] Help with bibliometrix and biblioshiny

2021-09-05 Thread Bert Gunter
Please read and follow the posting guide, which says: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R), ask questions on R-help. If the question relates to a contributed package , e.g., one downloaded from CRAN, try contacting the package ma

[R] Help with bibliometrix and biblioshiny

2021-09-05 Thread Bruno César Juliatti
Hi, everyone. I'm new in this R language universe. I want to use bibliometric as a research in m Master's program. I run the code in R studio and works just fine. But, in the web-interface (biblioshiny), I load the table in .csv and keeps showing this message: Error: object 'M' not found PS: I alre

Re: [R] Help with clinical trials.gov AACT database

2021-08-26 Thread bharat rawlley via R-help
I am completely stuck here, any help would be greatly appreciated! On Thursday, 26 August, 2021, 04:18:31 pm GMT-4, bharat rawlley via R-help wrote:  Hello, I am trying to use R to access the clinicaltrials.gov AACT database to create a list of facility_investigators for a specific to

[R] Help with clinical trials.gov AACT database

2021-08-26 Thread bharat rawlley via R-help
 Hello, I am trying to use R to access the clinicaltrials.gov AACT database to create a list of facility_investigators for a specific topic. The following code is an example of how to get a list of all clinical trials on the topic TP53 library(dplyr) library(RPostgreSQL) aact = src_postgres(d

Re: [R] Help with package EasyPubmed

2021-08-04 Thread David Winsemius
> On Aug 3, 2021, at 11:20 AM, bharat rawlley via R-help > wrote: > > Hello, > When I try to run the following code using the package Easypubmed, I get a > null result - >> batch_pubmed_download(query_7) > NULL > #query_7 <- "Cardiology AND randomizedcontrolledtrial[Filter] AND 2011[PDAT]"

Re: [R] Help with package EasyPubmed

2021-08-03 Thread bharat rawlley via R-help
 Okay, the following search string resolved my issue  -  "Cardiology AND randomized controlled trial[Publication type] AND 2011[PDAT]" Thank you! On Tuesday, 3 August, 2021, 02:21:38 pm GMT-4, bharat rawlley via R-help wrote: Hello,  When I try to run the following code using the packa

[R] Help with package EasyPubmed

2021-08-03 Thread bharat rawlley via R-help
Hello,  When I try to run the following code using the package Easypubmed, I get a null result -  > batch_pubmed_download(query_7) NULL #query_7 <- "Cardiology AND randomizedcontrolledtrial[Filter] AND 2011[PDAT]" However, the exact same search string yields 668 results on Pubmed.  I am unable t

Re: [R] Help with Converting Excel Times to R

2021-07-26 Thread PIKAL Petr
hawn Way > Sent: Wednesday, July 21, 2021 9:23 PM > To: r-help@r-project.org > Subject: [R] Help with Converting Excel Times to R > > I've usually had good luck with this, but something is not working well. I have > two datetimes in excel > > 7/20/21 13:30 > 7/20/2

Re: [R] Help with Converting Excel Times to R

2021-07-21 Thread Shawn Way
Original Message- From: Jim Lemon Sent: Wednesday, July 21, 2021 6:09 PM To: Shawn Way Cc: r-help@r-project.org Subject: Re: [R] Help with Converting Excel Times to R Hi Shawn, I don't have any trouble with this: times<-c("7/20/21 13:30","7/20/21 13:40") strpt

Re: [R] Help with Converting Excel Times to R

2021-07-21 Thread Andrew Simmons
Hello, >From playing around with your numbers, it seems like you are using Excel 1904 Date System, which isn't a problem, it just means that your numbers are days from 1904-01-01 instead of 1900-01-01. The following is my solution: times <- c(42935.5625,42935.569444) as.POSIXlt(( # off

Re: [R] Help with Converting Excel Times to R

2021-07-21 Thread Jim Lemon
Hi Shawn, I don't have any trouble with this: times<-c("7/20/21 13:30","7/20/21 13:40") strptime(times,"%m/%d/%y %H:%M",tz="GMT") [1] "2021-07-20 13:30:00 GMT" "2021-07-20 13:40:00 GMT" I suspect that Excel is causing the problem. Try changing the format of the date column to "Text" and work on t

[R] Help with Converting Excel Times to R

2021-07-21 Thread Shawn Way
I've usually had good luck with this, but something is not working well. I have two datetimes in excel 7/20/21 13:30 7/20/21 13:40 And when I convert these to excel's normal storage schema, I get the following: 42935.5625 42935.56944 Just try to convert this to a POSIX class gives me issues.

Re: [R] Help with selection of continuous data

2021-06-21 Thread André Luis Neves
THANK you very much, guys! You are very good people and highly competent in programming! The problem was solved. Have a great day. Andre On Mon, Jun 21, 2021 at 12:10 PM Jim Lemon wrote: > Hi Andre, > I've taken a different approach to that employed by Eric: > > > A<-data.frame(c("01/01/202

Re: [R] Help with selection of continuous data

2021-06-21 Thread PIKAL Petr
Neves > > Subject: Re: [R] Help with selection of continuous data > > Hi Andre, > I've taken a different approach to that employed by Eric: > > A<- > data.frame(c("01/01/2020","01/01/2020","01/01/2020","01/01/2020",&q

Re: [R] Help with selection of continuous data

2021-06-21 Thread Jim Lemon
Hi Andre, I've taken a different approach to that employed by Eric: A<-data.frame(c("01/01/2020","01/01/2020","01/01/2020","01/01/2020","01/01/2020", "01/01/2020","01/01/2020","01/01/2020","01/01/2020","01/01/2020","01/01/2020", "01/01/2020","01/02/2020","01/02/2020","01/02/2020","01/02/2020","0

Re: [R] Help with selection of continuous data

2021-06-21 Thread Eric Berger
Hi André, It's not 100% clear to me what you are asking. I am interpreting the question as selecting the data from those dates for which all of 1,2,3,4,5,6,7,8 appear in the ID column. My approach determines the dates satisfying this property, which I put into a vector dtV. Then I take the rows of

[R] Help with selection of continuous data

2021-06-21 Thread André Luis Neves
Dear R users, I want to select only the data containing a continuous number of *ID* from 1-8 in each *DATE*. Note, I do not want to select data that do not contain a continuous number in *ID *from 1-8 (eg. Data on *DATE* 1/2/2020, and 01/03/2020). The dataset is a huge matrix with 24 columns and 1

Re: [R] Help with regular expressions.

2021-02-08 Thread Rolf Turner
On Tue, 9 Feb 2021 17:34:00 +1300 Rolf Turner wrote: > > David Wolfskill's post solved my problem perfectly. Thanks. > > Thanks also to Bert Gunter and Avi Gross. Whoops. David Wolfskill's message came to me off-list. Sorry for the confusion. cheers, Rolf -- Honorary Research Fellow De

Re: [R] Help with regular expressions.

2021-02-08 Thread Rolf Turner
David Wolfskill's post solved my problem perfectly. Thanks. Thanks also to Bert Gunter and Avi Gross. cheers, Rolf -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.or

Re: [R] Help with regular expressions.

2021-02-08 Thread Bert Gunter
Simpler, but would fail if there are more "."s beyond the second (it changes the last one to a "-"): > sub("(.*)\\.([^.]*)", "\\1-\\2", "aa.bcv.cdg") [1] "aa.bcv-cdg" Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Be

Re: [R] Help with regular expressions.

2021-02-08 Thread Avi Gross via R-help
first and second time starting just past it. Then replace. Fairly straightforward and very possibly much faster. -Original Message- From: R-help On Behalf Of Rolf Turner Sent: Monday, February 8, 2021 9:29 PM To: "r-help@R-project.org" "@r-project.org Subject: [R] Help with regul

Re: [R] Help with regular expressions.

2021-02-08 Thread Bert Gunter
> gsub("(.*\\.[^.]*)\\.(.*)","\\1-\\2", "aa.bcv.cdg") [1] "aa.bcv-cdg" Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Feb 8, 2021 at 6:29 PM

[R] Help with regular expressions.

2021-02-08 Thread Rolf Turner
I want to deal with strings of the form "a.b.c" and to change (using sub() or whatever is appropriate) the second "." to a "-", i.e. to change "a.b.c" to "a.b-c". I want to leave the first "." as-is. I guess I could do a gsub(), changing all "."s to "-"s, and then do a sub() changing the first

Re: [R] Help with Using spTimer or spTDyn to estimate "GP" Model

2021-01-31 Thread Bert Gunter
Also note that you should have a higher likelihood of getting a helpful response on the r-sig-geo list rather than here. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic stri

Re: [R] Help with Using spTimer or spTDyn to estimate "GP" Model

2021-01-31 Thread Bert Gunter
Please not per the posting guide linked below: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help. If the question relates to a *contributed package*

Re: [R] Help with Using spTimer or spTDyn to estimate "GP" Model

2021-01-31 Thread alex_rugu--- via R-help
When I run the following scripts I get the following error and I do not understand the source. I believe N is specified as the number of observations by year in the time series variables.  The error is ### Output: GP models  Error in spGP.Gibbs(formula = formul

Re: [R] Help with Krippendorff's Alpha

2021-01-22 Thread Jim Lemon
Hi Jean, kripp.alpha expects a classifier by object (in your case, score) matrix as the first argument. If I read your code correctly you are getting the scores zigzagging across six columns when you want a 6 x 180 matrix. My guess is that you want: Trainers<-matrix(c(Trainer_1,Trainer_2, Trainer_

Re: [R] Help with Krippendorff's Alpha

2021-01-22 Thread Bert Gunter
Well, "Appreciate the help!" Indeed, you should for any that you receive. But do note per the posting guide linked below: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R

[R] Help with Krippendorff's Alpha

2021-01-22 Thread Jenn Russell
Hello! I am requesting help for a data set in which I have 6 evaluators (I've called them 'Trainers'), each of which took a questionnaire with 180 questions. The possible answers to the questions are ordinal numbers. I am looking to test inter-rater reliability of the questionnaire using Krippe

Re: [R] Help with changing date format in R

2021-01-20 Thread Marc Schwartz via R-help
Hi, Internally, once you have a Date class object in R, the "printed" output displayed will be the default, which I believe is influenced by your locale. See ?format.Date. That being said, in your example data below, 07022020, could be either July 2, 2020, or February 7, 2020. How do you know

Re: [R] Help with changing date format in R

2021-01-20 Thread Jeff Newmiller
Perhaps d$date <- as.Date(d$date, format = ifelse("K"==d$observer, "%d%m%Y", "%m%d%Y" )) On January 20, 2021 8:08:33 AM PST, krissievdh wrote: >Hi, > >I have a big database where one-third of the data is in a different >date >format than the rest. I'll add an example table to show you. > >| pl

Re: [R] Help with changing date format in R

2021-01-20 Thread Sarah Goslee
Hi, If the date format is determined by observer, you could for instance use subset to divide it into two data frames, fix the dates and recombine, or use ifelse to use the correct format based on observer. This is a basic data manipulation task, and there are lots of ways approach it. Sarah On

[R] Help with changing date format in R

2021-01-20 Thread krissievdh
Hi, I have a big database where one-third of the data is in a different date format than the rest. I'll add an example table to show you. | plot | observer | date| | 1 | K | 31012020 | | 2 | K | 070220

Re: [R] Help with simulation of unbalanced clustered data

2020-12-17 Thread Chao Liu
Thank you for your help Abby! On Wed, Dec 16, 2020 at 11:32 PM Abby Spurdle wrote: > Hi Chao Liu, > > I'm having difficulty following your question, and examples. > And also, I don't see the motivation for increasing, then decreasing > the sample sizes. > Intuitively, one would compute the corre

Re: [R] Help with simulation of unbalanced clustered data

2020-12-16 Thread Abby Spurdle
Hi Chao Liu, I'm having difficulty following your question, and examples. And also, I don't see the motivation for increasing, then decreasing the sample sizes. Intuitively, one would compute the correct sample sizes, first time round... But I thought I'd add some comments, just in case they're u

Re: [R] Help with simulation of unbalanced clustered data

2020-12-16 Thread Jeff Newmiller
Sigh. You still haven't read the Posting Guide? HTML email causes problems with this mailing list so do send email using your mail client's plain text option. You assert that >The probability of excluding an observation within each cluster was not uniform but having a different number excluded

Re: [R] Help with simulation of unbalanced clustered data

2020-12-16 Thread Chao Liu
Thank you for the reminder, Jeff. I am new to R-help and so please bear with my ignorance. This is not homework and here is a reproducible example. The number of observations per cluster doesn't follow the condition specified above though, I just used this to convey my idea. > y <- rnorm(20) >

Re: [R] Help with simulation of unbalanced clustered data

2020-12-16 Thread Jeff Newmiller
This is R-help, not R-do-my-work-for-me. It is also not a homework help line. The Posting Guide is required reading. Assuming this is not homework, since each step in your problem definition can be mapped to a fairly basic operation in R (the sample function and indexing being key tools), you sh

[R] Help with simulation of unbalanced clustered data

2020-12-16 Thread Chao Liu
Dear R experts, I want to simulate some unbalanced clustered data. The number of clusters is 20 and the average number of observations is 30. However, I would like to create an unbalanced clustered data per cluster where there are 10% more observations than specified (i.e., 33 rather than 30). I t

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-15 Thread Jan van der Laan
orski Sent: Tuesday, December 8, 2020 7:48 PM To: R-help@r-project.org Subject: [R] Help with connection issue for R (just joined, leading R for our agency) Dear fellow R users, Greetings, I am new to this list. I joined because I am pioneering the use of R for the agency I work for. I essent

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-14 Thread stephen sefick
Hello, I use ESS everyday for work. If you choose to explore this route, spacemacs configuration files/layers may ease your transition to emacs. Stephen Sefick, PhD On Fri, Dec 11, 2020, 06:25 Jeremie Juste wrote: > > Hello Alejandra, > > || On Tuesday, 8 Dec 2020 at 10:48, Alejandra Barrio Go

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-14 Thread Michael Dewey
g and works smoothly if R is console is set to multiple windows. It is also quite easy to manage. Good luck with R. Cheers Petr -Original Message- From: R-help On Behalf Of Alejandra Barrio Gorski Sent: Tuesday, December 8, 2020 7:48 PM To: R-help@r-project.org Subject: [R] Help with conne

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-14 Thread PIKAL Petr
ki > Sent: Tuesday, December 8, 2020 7:48 PM > To: R-help@r-project.org > Subject: [R] Help with connection issue for R (just joined, leading R for our > agency) > > Dear fellow R users, > > Greetings, I am new to this list. I joined because I am pioneering the use of

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-11 Thread John C Frain
On Fri, 11 Dec 2020 at 11:25, Jeremie Juste wrote: snip > > That said, I take the opportunity Martin gave me to advertise that both > Emacs and Emacs Speaks Statistics works on Windows as well. The entry > cost might seem > expensive in the beginning but I assure you it will pay very quickly.

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-11 Thread Jeremie Juste
Hello Alejandra, || On Tuesday, 8 Dec 2020 at 10:48, Alejandra Barrio Gorski wrote: Welcome to the mailing list. > Greetings, I am new to this list. I joined because I am pioneering the use > of R for the agency I work for. I essentially work alone and would like to > reach out for help on an

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-09 Thread Martin Maechler
> Bert Gunter > on Tue, 8 Dec 2020 14:54:10 -0800 writes: > R and RStudio are separate products developed and > supported by separate organizations, although obviously > there is a large intersection between the > two. Nevertheless, if you think this is an RStudio rela

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-08 Thread Bert Gunter
R and RStudio are separate products developed and supported by separate organizations, although obviously there is a large intersection between the two. Nevertheless, if you think this is an RStudio related problem, you should post on their support site, not here: https://support.rstudio.com/hc/en-

[R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-08 Thread Alejandra Barrio Gorski
Dear fellow R users, Greetings, I am new to this list. I joined because I am pioneering the use of R for the agency I work for. I essentially work alone and would like to reach out for help on an issue I have been having. Here it is: - From one day to the next, my RStudio does not execute comm

Re: [R] Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"

2020-09-30 Thread Rahul Chakraborty
Hello Rui, Thanks a lot for your response. But, I will surely say that the data I attached is in long format as it has 18 rows (3 alternatives*3 questions* 2 individuals). Had it been a wide format data it would have had 6 rows (3 questions* 2 individuals). But, anyway thanks. Best, Rahul On We

Re: [R] Help with strings

2020-09-29 Thread André Luis Neves
Hi, Sarah, There is a mistake in the column name and the desired output is pretty much the same as the input data frames except for the replacement of 'some_string' by the word 'alcohol' in the column I specified above. Yet, your code is what I am looking for and helped me to get started and figur

  1   2   3   4   5   6   7   8   9   10   >