Re: [R] Help merging large datasets in R

2025-05-08 Thread Ebert,Timothy Aaron
more fun, log transform these variables before plotting so that parts of the variable names are also part of the valid code. For me, coding is hard enough without additional complexity. Tim -Original Message- From: Jeff Newmiller Sent: Wednesday, May 7, 2025 8:29 PM To: r-help@r-pr

Re: [R] Help merging large datasets in R

2025-05-08 Thread Jeff Newmiller via R-help
I suggest you study a bit more about types of join (a.k.a. merge) operations. In particular, most of the time you will want to use inner join or left join operations with large data sets. In order to avoid problems with duplication you will need to pay close attention to which set of columns can

Re: [R] Help merging large datasets in R

2025-05-07 Thread Jeff Newmiller via R-help
> Variable names cannot have spaces Please soften your words... variables can have all sorts of characters including spaces in them, but it can be inconvenient to quote them all with back-tick quotes like `merged 1` so where possible most people avoid variable names with weird characters. Peop

Re: [R] Help merging large datasets in R

2025-05-07 Thread Ebert,Timothy Aaron
Some issues: 1) Variable names cannot have spaces. "merged 1" is not valid but "merged_1" is a valid alternative. 2) You need to tell R what to merge by. It looks like you may be using data tables rather than a data frame. merged <- dataset2[dataset1, on = "id", nomatch = NA] 3) Alternatively: j

Re: [R] Help Coding error

2025-03-29 Thread Behaylu Ayalew
This is great, thank you so much for your help! I found the problem, the data contains 3 and 4 numbers. I solved it. Thank you On Sat, Mar 29, 2025 at 2:21 AM CALUM POLWART wrote: > So either: > > XX contains some non-finite numbers > > Or > > Something produced from it does. > > Non finite mea

Re: [R] Help Coding error

2025-03-29 Thread CALUM POLWART
So either: XX contains some non-finite numbers Or Something produced from it does. Non finite means things like 1÷0. R might show Inf or -Inf. But if there is maths happening in the function it might be passing something to it the is a 0 and so creating a Inf. But if there is a test of is.fini

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
s://fmpcloud.io/api/v4/historical-price-full/ABI/2005-01-04?apikey=1af241eb87c43cfa7e124419cb180d7e";) > > --John Sparks > > > > From: Joshua Ulrich > > Sent: Sunday, January 5, 2025 2:55 PM > > To: Sparks, John > > Cc

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
41eb87c43cfa7e124419cb180d7e";) > --John Sparks > > From: Joshua Ulrich > Sent: Sunday, January 5, 2025 2:55 PM > To: Sparks, John > Cc: r-help@r-project.org > Subject: Re: [R] Help Parsing String? From HTML > > CAUTION: External Se

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Sparks, John via R-help
__ From: Joshua Ulrich Sent: Sunday, January 5, 2025 2:55 PM To: Sparks, John Cc: r-help@r-project.org Subject: Re: [R] Help Parsing String? From HTML CAUTION: External Sender On Sun, Jan 5, 2025 at 2:03 PM Sparks, John via R-help wrote: > > Hi, > > I am scraping some data

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
On Sun, Jan 5, 2025 at 2:03 PM Sparks, John via R-help wrote: > > Hi, > > I am scraping some data from the internet and I got what I want but in a big > long string (sort of) and can't figure out a way to parse it. > What site are you scraping? There may be an easier way to get the data on it. >

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Ivan Krylov via R-help
В Sun, 5 Jan 2025 20:03:11 + "Sparks, John via R-help" пишет: > > mystring > {xml_nodeset (1)} > [1] {\n "symbol": "ABI",\n "open": 21.04,\n "high": 21.05,\n > "low": 20.06,\n "close": 20.2,\n "volume": 938700,\n "from": > "2005-01-04"\n} > > But I can't find a way to isolate the ind

Re: [R] Help in Recursive Function for steps reconstruction in Clusters Analysis - HCA: Single Link

2024-10-26 Thread Cleber Borges via R-help
For now, I've been able to think of a temporary solution... until I can think of a better teaching solution: The same function f(): # f <- function(xmd) {     rs <- NULL     xmd1 <- 9     xmd2 <- 9     if (xmd[1] > 0) {     xmd1 <- f(r$merge[ xmd[1], ])     } else {    

Re: [R] Help in Recursive Function for steps reconstruction in Clusters Analysis - HCA: Single Link

2024-10-26 Thread Duncan Murdoch
On 2024-10-26 3:14 p.m., Cleber Borges via R-help wrote: Hello everybody, I'm trying to build a function to illustrate, in 2D, the sequence of the "Single Link" algorithm (the purpose is merely didactic). The idea is to have the scatter of points on a graph. Iteratively, build the segments (wit

Re: [R] Help needed! Pre-processing the dataset before splitting - model building - model tuning - performance evaluation

2024-09-25 Thread Rui Barradas
Às 06:04 de 24/09/2024, Bekzod Akhmuratov escreveu: Below is the link for a dataset on focus. I want to split the dataset into training and test set, use training set to build the model and model tune, use test set to evaluate performance. But before doing that I want to make sure that original d

Re: [R] help on date objects...

2024-07-28 Thread Rui Barradas
Às 05:23 de 28/07/2024, akshay kulkarni escreveu: Dear members, WHy is the following code returning NA instead of the date? as.Date("2022-01-02", origin = "1900-01-01", format = "%y%d%m") [1] NA Thanking you, Yours sincerely, AKSHAY M KULKARNI [[alte

Re: [R] help on date objects...

2024-07-27 Thread Eric Berger
as.Date("2022-01-02", origin="1900-01-01", format="%Y-%d-%m") On Sun, Jul 28, 2024 at 7:24 AM akshay kulkarni wrote: > Dear members, > WHy is the following code returning NA > instead of the date? > > > > as.Date("2022-01-02", origin = "1900-01-01", format = "%y%d%m

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread peter dalgaard
gt; > Regarding .libPaths, I am asking for the call to `.libPaths()`, so I > understand there is no `new` in the call, as in the documentation I cited. > > Iago > > De: peter dalgaard > Enviat el: dilluns, 17 de juny de 2024 13:26 > Per a: Iago Giné Vázquez >

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread Iago Giné Vázquez
-project.org Tema: Re: [R] Help trying to understand R documentation on libraries paths (Inline) > On 17 Jun 2024, at 09:51 , Iago Gin� V�zquez wrote: > > Hi, > > 1 - On help(".libPaths", help_type = "text") one can read: > > First, '.Library.site&#

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread peter dalgaard
(Inline) > On 17 Jun 2024, at 09:51 , Iago Giné Vázquez wrote: > > Hi, > > 1 - On help(".libPaths", help_type = "text") one can read: > > First, '.Library.site' is initialized from 'R_LIBS_SITE'. > > However, I have > >> Sys.getenv("R_LIBS_SITE") > [1] "c:/Users/i.gine/AppData/Local/Programs

Re: [R] help - Package: stats - function ar.ols

2024-02-23 Thread Ebert,Timothy Aaron
f Of Pedro Gavronski. Sent: Friday, February 23, 2024 5:00 AM To: Rui Barradas Cc: r-help@r-project.org; r-help-requ...@r-project.org Subject: Re: [R] help - Package: stats - function ar.ols [External Email] Hello, Thanks for the reply Rui and for pointing out that I forgot to attach my code. P

Re: [R] help - Package: stats - function ar.ols

2024-02-23 Thread Rui Barradas
Às 16:34 de 22/02/2024, Pedro Gavronski. escreveu: Hello, My name is Pedro and it is nice to meet you all. I am having trouble understanding a message that I receive when use function ar.ols from package stats, it says that "Warning message: In ar.ols(x = dtb[2:6966, ], demean = FALSE, intercept

Re: [R] Help

2024-02-22 Thread Ben Bolker
I agree that the posting guide is due for updating. If the mailing list maintainers were willing I think r-consult might not be a terrible idea. I do think the center of gravity has moved to Cross Validated, and it might be minimally sufficient to point people there (or Math Overflow for p

Re: [R] Help

2024-02-22 Thread Joakim Linde
Lisa, this seems to be fairly straight forward to do in R and I'm happy to help you get started. However, please be aware that you do have to have knowledge of statistics to do the analysis/modeling. Rolf, Jeff, I do appreciate your view that this is not a R probelm. It's more a 'how to use R

Re: [R] Help

2024-02-20 Thread Jeff Newmiller via R-help
Regarding 1 and 2, please read the Posting Guide mentioned at the bottom of every R-help post. R does not equal statistics... and education about statistics is way too ambitious to include in this mailing list that is about a tool that happens to be useful for statisticians. There are forums on

Re: [R] Help

2024-02-20 Thread Rolf Turner
On Mon, 19 Feb 2024 17:39:23 +0100 Lisa Hupfer via R-help wrote: > I am writing my master thesis in which I compared two cultures . So > for my statistics I need to compare Age,Sex,Culture as well as have a > look at the tasks scores . > > Anyone familiar with this ? > I’d love to share my scr

Re: [R] Help

2024-02-04 Thread Jibrin Alhassan
Hi Kimmo, The code you sent has worked for me. Thank you very much. *Jibrin Adejoh Alhassan (Ph.D)* Department of Physics and Astronomy, University of Nigeria, Nsukka On Mon, Feb 5, 2024 at 7:40 AM Kimmo Elo wrote: > Hi, > > the command line with 'text' should be: > > text(-8,-8, expression(R^2

Re: [R] Help

2024-02-04 Thread Kimmo Elo
Hi, the command line with 'text' should be: text(-8,-8, expression(R^2 * " = 0.62, r = 0.79, N = 161"), cex = 2 ) Best, Kimmo su, 2024-02-04 kello 17:16 +0100, Jibrin Alhassan kirjoitti: > Here is the script I used to plot the graph indicating the text I > wanted to > insert. The line in the

Re: [R] Help

2024-02-04 Thread Jibrin Alhassan
Many thanks. On Mon, Feb 5, 2024, 1:06 AM Rolf Turner wrote: > > Please see fortunes::fortune(285). > > cheers, > > Rolf Turner > > -- > Honorary Research Fellow > Department of Statistics > University of Auckland > Stats. Dep't. (secretaries) phone: > +64-9-373-7599 ext. 89622 > Home p

Re: [R] Help

2024-02-04 Thread Rolf Turner
Please see fortunes::fortune(285). cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Stats. Dep't. (secretaries) phone: +64-9-373-7599 ext. 89622 Home phone: +64-9-480-4619 __ R-help@r-project.

Re: [R] Help

2024-02-04 Thread Martin Møller Skarbiniks Pedersen
On Sun, 4 Feb 2024 at 17:26, Jibrin Alhassan wrote: > > Here is the script I used to plot the graph indicating the text I wanted to > insert. The line in the script that I have issues with is: text(-8,-8, > "R^2= 0.62", r = 0.79, N = 161", cex = 2 > R^2= 0.62 is not producing R squared = 0.62.

Re: [R] Help

2024-02-04 Thread Jibrin Alhassan
Here is the script I used to plot the graph indicating the text I wanted to insert. The line in the script that I have issues with is: text(-8,-8, "R^2= 0.62", r = 0.79, N = 161", cex = 2 R^2= 0.62 is not producing R squared = 0.62. Thanks. Sys.setenv( TZ="GMT" ) dt <- read.table("CLMXAPTY_sim",

Re: [R] Help

2024-02-04 Thread Jibrin Alhassan
Hi Elo, It gave this error message: CR_plot2.R:14:37: unexpected string constant 13: plot(FDapt,FDcli, pch = 16, cex.lab = 1.6, cex.axis = 1.4, cex.main = 0.8, font.lab = 1.7, font.axis = 1.7, col = "red",main = "Simultaneous Events at CLMX and APTY",ylab="CLMX",xlab="APTY") 14: text(-8,-8, "expr

Re: [R] Help

2024-02-04 Thread Kimmo Elo
Hi, maybe this works: expression(R^2 * "= 0.62") HTH, Kimmo 4. helmik. 2024, 16.11, Jibrin Alhassan mailto:jibrin.alhas...@unn.edu.ng>> kirjoitti: I have done a scatter plot in R. I want to insert the coefficient of determination R^2 = 0.62 as a text in the plot. I have tried to write R^2 bu

Re: [R] Help

2024-02-04 Thread Jibrin Alhassan
Thank you Zhao for the code. When I replotted the graph after inserting the code in my script, it gave me this error message without plotting the graph: Warning message: In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : extra argument ‘col’ will be disregarded. My regards. *Jibrin

Re: [R] Help

2024-02-04 Thread Jinsong Zhao
?plotmath expression(R^2==0.62) On 2024/2/4 18:10, Jibrin Alhassan wrote: I have done a scatter plot in R. I want to insert the coefficient of determination R^2 = 0.62 as a text in the plot. I have tried to write R^2 but could not produce R2. I would appreciate it if someone could help me with

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2024-01-06 Thread Andy
uot;page"=pg, "length"=len) } # roll up the list to a data frame. Many ways to do this. myDF <- do.call("rbind",myList) # Hope that helps. Tim -- Date: Thu, 4 Jan 2024 12:59:59 + From: Andy To: r-help@r-pro

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2024-01-04 Thread Andy
Hi folks Thanks for your help and suggestions - very much appreciated. I now have some working code, using this file I uploaded for public access: https://docs.google.com/document/d/1QwuaWZk6tYlWQXJ3WLczxC8Cda6zVERk/edit?usp=sharing&ouid=103065135255080058813&rtpof=true&sd=true The small c

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2024-01-03 Thread Dr Eberhard Lisse
If you do something like this for i in $(pandoc --list-output-formats); do pandoc -f docx -t $i -o test.$i Now\ they\ want\ us\ to\ charge\ our\ electric\ cars\ from\ litter\ bins.docx; done you get approximately 65 formats, from which you can pick one wh

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Ivan Krylov
В Sat, 30 Dec 2023 12:18:52 + Andy пишет: > filepath <- setwd(tk_choose.dir()) Since you're using tcltk, you can get a file path in one step using tk_choose.files(). (Use multi = FALSE to choose only one file.) > full_filename <- paste(filepath, filename, sep="/") There's also file.path(),

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Eric Berger
Sorry, I was being too quick. You have to pay attention to the pipe operator You were advised to do the following content <- read_docx(full_filename) |> docx_summary() which should have worked but I think you left out the |> operator. Alternatively tmp <- read_docx(full_filename) content <

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Andy
An update: Running this block of code: # Load libraries library(tcltk) library(tidyverse) library(officer) filepath <- setwd(tk_choose.dir()) filename <- "Now they want us to charge our electric cars from litter bins.docx" #full_filename <- paste0(filepath, filename) full_filename <- paste(fil

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Eric Berger
docx_summary(content) You should read documentation e.g. ?docx_summary and check the examples section On Sat, Dec 30, 2023 at 2:12 PM Andy wrote: > Hi Eric > > Thanks for that. That seems to fix one problem (the lack of a separator), > but introduces a new one when I complete the function Calum

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Andy
Hi Eric Thanks for that. That seems to fix one problem (the lack of a separator), but introduces a new one when I complete the function Calum proposed:Error in docx_summary() : argument "x" is missing, with no default The whole code so far looks like this: # Load libraries library(tcltk) libr

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Eric Berger
full_filename <- paste(filepath, filename,sep="/") On Sat, Dec 30, 2023 at 1:45 PM Andy wrote: > Thanks Ivan and Calum > > I continue to appreciate your support. > > Calum, I entered the code snippet you provided, and it returns 'file > missing'. Looking at this, while the object 'full_filename'

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Andy
Good idea, El - thanks. The link is https://docs.google.com/document/d/1QwuaWZk6tYlWQXJ3WLczxC8Cda6zVERk/edit?usp=sharing&ouid=103065135255080058813&rtpof=true&sd=true This is helpful. From the article, which is typical of Lexis+ output, I want to extract the following fields and append to a

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-30 Thread Andy
Thanks Ivan and Calum I continue to appreciate your support. Calum, I entered the code snippet you provided, and it returns 'file missing'. Looking at this, while the object 'full_filename' exists, what is happening is that the path from getwd() is being appended to the title of the article, b

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Dr Eberhard W Lisse
Andy, you can always open a public Dropbox or Google folder and post the link. el On 29/12/2023 22:37, Andy wrote: > Thanks - I'll have a look at these options too. > > I'm happy to send over a sample document, but wasn't aware if > attachments are allowed. The documents come Lexis+, so require

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread CALUM POLWART
help(read_docx) says that the function only imports one docx file. In > order to read multiple files, use a for loop or the lapply function. > I told you people will suggest better ways to loop!! > > docx_summary(read_docx("Now they want us to charge our electric cars > from litter bins.docx"))

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Ivan Krylov
В Fri, 29 Dec 2023 20:17:41 + Andy пишет: > doc_in <- read_docx(files) > > Results in this error:Error in filetype %in% c("docx") && > grepl("^([fh]ttp)", file) :'length = 9' in coercion to 'logical(1)' help(read_docx) says that the function only imports one docx file. In order to read mul

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Andy
Thanks - I'll have a look at these options too. I'm happy to send over a sample document, but wasn't aware if attachments are allowed. The documents come Lexis+, so require user credentials to log in, but I could upload the file somewhere if that would help? Any ideas for a good location to do

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Dr Eberhard W Lisse
I would also look at https://pandoc.org perhaps which can export a number of formats... And for spreadsheets https://github.com/jqnatividad/qsv is my goto weapon. Can also read and write XLSX and others. A sample document or two would always be helpful... el On 29/12/2023 21:01, CALUM POLWART

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Andy
Hi Roy (& others) Many thanks for the advice - well taken. Thanks also to the others who have responded so quickly - I thought I might have to wait days!! :-) I'm on a Linux (Mint) machine. Below, I document three attempts, two using officer and the last now using textreadr My attempts so far

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread CALUM POLWART
It sounded like he looked at officeR but I would agree content <- officer::docx_summary("filename.docx") Would get the text content into an object called content. That object is a data.frame so you can then manipulate it. To be more specific, we might need an example of the DF You can loop thi

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread CALUM POLWART
textreadr would be the obvious approach. When you say it is depreciated do you mean it's not available on cran? Sometimes maintaining a package on cran in just a pain in the ass. devtools::install_github("trinker/textreadr") Should let you install it. In theory docx files are actually just zip

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread jim holtman
checkout the 'officer' package Thanks Jim Holtman *Data Munger Guru* *What is the problem that you are trying to solve?Tell me what you want to do, not how you want to do it.* On Fri, Dec 29, 2023 at 10:14 AM Andy wrote: > Hello > > I am trying to work through a problem, but feel like I've

Re: [R] Help request: Parsing docx files for key words and appending to a spreadsheet

2023-12-29 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi Andy: I don’t have an answer but I do have what I hope is some friendly advice. Generally the more information you can provide, the more likely you will get help that is useful. In your case you say that you tried several packages and they didn’t do what you wanted. Providing that code,

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

Re: [R] Help needed with olsrr package

2023-08-24 Thread Ivan Krylov
On Thu, 24 Aug 2023 10:56:00 +0530 Ashim Kapoor wrote: > When I open a terminal, type R and run my code, it runs fine. When I > start Emacs, start an inferior R process using ESS, the error comes > back. Thankfully, in both of these cases you get an interactive R session. Compare sessionInfo()

Re: [R] Help needed with olsrr package

2023-08-22 Thread Eric Berger
I copied your data and ran your code. It worked fine for me. > sessionInfo() R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 22.04.2 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 LAPACK: /usr/lib/x86_64-linux

Re: [R] Help needed with olsrr package

2023-08-22 Thread Ivan Krylov
В Tue, 22 Aug 2023 16:06:22 +0530 Ashim Kapoor пишет: > Error in eval(predvars, data, env) : object 'Var.One' not found Use traceback() to find out in which function the error was raised. This looks like a bug in the olsrr package. Could be due to use of string manipulation in order to work with

Re: [R] Help/documentation on Rgui

2023-07-03 Thread Iago Giné Vázquez
Thank you Petr, great! Best, Iago De: PIKAL Petr Enviat: Dilluns, 3-juliol 3e000 2023 9:42 Per a: Iago Gin� V�zquez; r-help@r-project.org Assumpte: RE: Help/documentation on Rgui Hi I am not sure about opening Rgui in terminal but for customising Rgui appearance

Re: [R] Help/documentation on Rgui

2023-07-03 Thread PIKAL Petr
Hi I am not sure about opening Rgui in terminal but for customising Rgui appearance you can modify Rconsole and Rprofile or Rprofile.site which you should find in etc folder of your R installation. https://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rconsole.html https://rdrr.io/r/utils/Rcon

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
Thanks Avi (I am a keen follower or your, and other stalwart helpers here). On 27/06/2023 18:27, avi.e.gr...@gmail.com wrote: Chris, Consider breaking up your task into multiple passes. Sorry, I could have explained more of what I had tried.  I never know how long to make things here. I ha

Re: [R] Help with regex replacements

2023-06-27 Thread avi.e.gross
Chris, Consider breaking up your task into multiple passes. And do them in whatever order preserves what you need. First, are you talking about brackets as in square brackets, or as in your example, parentheses? If you are sure you have no nested brackets, your requirement seems to be that an

Re: [R] Help sourcing datasets (.csv)

2023-06-02 Thread Ebert,Timothy Aaron
Friday, June 2, 2023 5:18 AM To: james carrigan ; r-help@r-project.org Subject: Re: [R] Help sourcing datasets (.csv) [External Email] See ?data On 28.05.2023 10:53, james carrigan wrote: > Dear Sir or Madam > I'm trying to compile a collection of datasets that require use of the &g

Re: [R] Help sourcing datasets (.csv)

2023-06-02 Thread Uwe Ligges
See ?data On 28.05.2023 10:53, james carrigan wrote: Dear Sir or Madam I’m trying to compile a collection of datasets that require use of the following hypothesis tests. Are there datasets within the R library that I can get access to? Kind regards James Carrigan Hypothesis Testing t.test(X,Y

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

Re: [R] Help installing devtools plus other packages in R terminal

2022-10-06 Thread Ivan Krylov
On Wed, 5 Oct 2022 20:02:02 + "Rhon Calderon, Eric" wrote: > automake found. Running autoupdate and autogen.sh. <...> > + libtoolize --copy > autogen.sh: line 43: libtoolize: command not found Since you have automake installed, you also need libtool in

Re: [R] Help installing devtools plus other packages in R terminal

2022-10-06 Thread Andrew Simmons
To install the packages from source, you need to install make, gcc, and g++: ⁠sudo apt install make⁠ ⁠sudo apt install gcc⁠ ⁠sudo apt install g++ then try installing them again On Thu, Oct 6, 2022 at 2:54 AM Rhon Calderon, Eric wrote: > > Hi, > > I am using R in my HPC terminal. After many tries

Re: [R] Help executing R on High Performance Cluster

2022-10-04 Thread Ivan Krylov
Hi Eric! В Tue, 4 Oct 2022 13:36:59 + "Rhon Calderon, Eric" пишет: > cd /home/ericrhon/labsoftware/R-devel/ > ./configure --prefix=/home/ericrhon/labsoftware/R-devel I'm not sure, but the reason for the confusing behaviour could be that the installation prefix is set to be the same as the

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

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 for funnel plot

2022-05-15 Thread Jim Lemon
Hi, Looking at the help page for "funnel", I first thought that the "shade" argument would be the one. However, that seems to take a specific color. Perhaps the function computes the shading from that. I have never used the "funnel" function myself, so I don't have a good idea of how that left-to-r

Re: [R] Help for funnel plot

2022-05-15 Thread De Simone
Hi Rui Thank you. The default for the shade and hilinees is ok, that is why I didn't add it. I attached the example image as PDF my question is how to get gradient colors for the background like the one attached And again how to get different types of lines for the Reference and confidence. The ar

Re: [R] Help for funnel plot

2022-05-15 Thread Jim Lemon
Hi, There are a number of functions that will transform numeric values into colors. One is color.scale in the plotrix package. This accepts a vector of numeric values and linearly transforms them into one or more ranges of colors. The resulting colors can then be passed to the appropriate arguments

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

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

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

  1   2   3   4   5   6   7   8   9   10   >