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] Data is not properly written in csv file

2021-06-21 Thread David Winsemius
This was an exact duplicate of a posting to StackOverflow where it has a response. You are asked in the Posting Guide not to crosspost. -- David. On 6/20/21 8:03 AM, Sri Priya wrote: location <- ' http://keic.mica-apps.net/wwwisis/ET_Annual_Reports/Religare_Enterprises_Ltd/RELIGARE-2017-2018

Re: [R] Data is not properly written in csv file

2021-06-21 Thread Marc Schwartz via R-help
Hi, If each of the extracted tables do not have consistent content and structure, that may be causing problems as you append each to the same file. You might want to modify your loop so that each table gets written to a different CSV file and see what that looks like. Also, review ?write.ta

Re: [R] [External] Data is not properly written in csv file

2021-06-21 Thread Richard M. Heiberger
copy and paste from pdf usually scrambles tables. this package is probably suffering from that pdf characteristic. > On Jun 20, 2021, at 11:03, Sri Priya wrote: > > Dear R Users, > > I am working on extracting tables from PDF and I am writing that in a csv > file. When I executed the code, t

Re: [R] Data is not properly written in csv file

2021-06-21 Thread Bert Gunter
Please read the posting guide, linked below, 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 *contribute

Re: [R] Crashes while pasting a graphic to clipboard on Windows

2021-06-21 Thread Marc Schwartz via R-help
Hi, R version 3.6.3 was released back in February of 2020, so well over a year old, and version 4.1.0 is the current version. I don't use Windows, and it is not clear if there was a Windows specific bug present at that time that may have been resolved since then. There have been a fair numbe

[R] Crashes while pasting a graphic to clipboard on Windows

2021-06-21 Thread Gabriel Toro
I am using version 3.6.3 on Windows. I recently noticed that R crashes when pasting graphics to the clipboard (both as metafiles and as images). I saw some old (~ 2 years old) references to the problem on Google, but no recent ones. Is there a way around this problem? Thanks, Gabriel

[R] Question about .Rhistory in Windows

2021-06-21 Thread Gabriel Toro
I am using version 3.6.3 on Windows. For some reason, the .Rhistory file gets over-written once in a while. I would like to avoid this so I have a complete history over multiple R sessions. Under what conditions can the .Rhistory file be over-written? Is there a way to keep this file from being

Re: [R] Help with selection of continuous data

2021-06-21 Thread PIKAL Petr
Hi André another approach using split/lapply lll <- lapply(split(A$ID, A$Date), function(x) x<9) A$select <- unlist(lapply(lll, function(x) x*sum(x)>=8)) A A[A$select,] However if your real data frame does not have same properties as the one you showed, results could be wrong. e.g. if A$ID has

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

[R] [R-pkgs] precisePlacement: new package for precisely placing elements onto a base R plot

2021-06-21 Thread Jasper Watson
Hello, I have just released to CRAN the precisePlacement package which provides a selection of tools that make it easier to place elements onto a (base R) plot exactly where you want them. It allows users to identify points and distances on a plot in terms of inches, pixels, margin lines, data uni

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