Re: [R] fortune nomination WAS: Re: How long does it take to learn the R programming language?

2022-09-29 Thread Richard O'Keefe
"R longa, vita brevis." On Thu, 29 Sept 2022 at 07:02, Berry, Charles wrote: > Aha! > CCB > > > On Sep 27, 2022, at 6:08 PM, Rolf Turner > wrote: > > > > > > On Mon, 26 Sep 2022 11:14:57 +0800 > > Turritopsis Dohrnii Teo En Ming wrote: > > > >> Subject: How long does it take to learn the R

Re: [R] Reading very large text files into R

2022-09-29 Thread Richard O'Keefe
If I had this problem, in the old days I'd've whipped up a tiny AWK script. These days I might use xsv or qsv. BUT first I would want to know why these extra fields are present and what they signify. Are they good data that happen not to be described in the documentation? Do they represent a

Re: [R] Deprecating download method='wininet' in R on Windows causes trouble with corporate proxy

2022-09-29 Thread Selke, Gisbert W.
On Fri, Sep 30, 2022 at 01:27 Henrik Bengtsson wrote > Is R centrally installed? It usually (but not always...) is installed through a central install process, but installations will not be kept synchronized. (I.e., we end up having independent installations, many different versions, many

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread avi.e.gross
I am not replying to the earlier request just to the part right below my message. A simple suggestion when sending people code is to add NOTHING except proper comments. Can we assume the extra asterisks are superfluous and not in your code? I mean your column is named "Period" and not "*Period"

Re: [R] Deprecating download method='wininet' in R on Windows causes trouble with corporate proxy

2022-09-29 Thread Henrik Bengtsson
Is R centrally installed? If so, environment variables 'HTTP_PROXY', 'HTTPS_PROXY', and 'HTTPS_PROXY_USER' could be set for all users by setting them in the R_HOME/etc/Renviron.site file. R_HOME is the folder where R is installed. You can find this file from within R by calling: >

[R] Deprecating download method='wininet' in R on Windows causes trouble with corporate proxy

2022-09-29 Thread Selke, Gisbert W.
Method="wininet" is deprecated and scheduled to go away, the standard method is now libcurl. This causes trouble for all R users in our shop, because we are sitting behind a corporate proxy, which uses Kerberos authentication. (We're all on Windows.) Using wininet, this used to work without

[R] issue running svyglm after subsetting: NA/NaN/Inf in foreign function call (arg 1)

2022-09-29 Thread Felippe Marcondes
Hello, I am attempting to run 1 svyglm model for each of the levels of a factor variable. When I use the subset function in the survey design object, I get the following error: Error in qr.default(weights(design, "analysis"), tol = 1e-05) : NA/NaN/Inf in foreign function call (arg 1) I am

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread Rui Barradas
Hello, You have to paste a day begore coercing to class "Date". A usual choice for this is day 1. inflation.2 <- 'PeriodCPI 2022m1 4994 2022m2 5336 2022m3 5671 2022m4 6532 2022m5 7973 2022m610365 2022m712673 2022m8

Re: [R] Reading very large text files into R

2022-09-29 Thread Dr Eberhard W Lisse
To me this file looks like a CSV with 15 fields (on each line) not 16, the last field being empty with the exception of the one which has the 'B'. The 14th is always empty. I also note that it does not seem to have a new line at the end. I can strongly recommend QSV to manipulate CSV files and

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread Admire Tarisirayi Chirume
Thank you for the code. It helped. I greatly appreciate. Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw Skype: admirechirume Call: +263773369884 whatsapp: +818099861504 On Thu, Sep 29, 2022 at 7:20 PM jim holtman wrote: > Try this by add a "day" to the date field > >

Re: [R] [External] Fwd: Reading very large text files into R

2022-09-29 Thread Richard M. Heiberger
I think you need the fill=TRUE argument. See ?read.table > On Sep 29, 2022, at 11:14, Enrico Schumann wrote: > > On Thu, 29 Sep 2022, Nick Wray writes: > >> -- Forwarded message - >> From: Nick Wray >> Date: Thu, 29 Sept 2022 at 15:32 >> Subject: Re: [R] Reading very large

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread jim holtman
Try this by add a "day" to the date field library(tidyverse) library(lubridate) input <- "*PeriodCPI* 2022m1 4994 2022m2 5336 2022m3 5671 2022m4 6532 2022m5 7973 2022m610365 2022m712673

[R] [R-pkgs] new version of package declared

2022-09-29 Thread Adrian Dușa
Dear R-list, It gives me great pleasure to announce the release of version 0.18 of package declared, that makes a difference between empty missing values (the current NAs in R) and declared missing values (NAs with a reason). Besides an automatic detection of such values by most base R

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Stephen H. Dawson, DSL via R-help
Awesome idea, Jorgen. Thanks for the input. As expected, it was smart to ask about matter this before I undertook my build effort. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 9/28/22 12:06, Jorgen

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Stephen H. Dawson, DSL via R-help
Hi Enrico, You bring me the missing piece of my understanding to my conceptual planning and cost counting to avoid delivery costs being greater than acceptable. Much appreciated. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454

Re: [R] How long does it take to learn the R programming language?

2022-09-29 Thread avi.e.gross
Has anyone noticed something a tad unusual? Someone shows up and seemingly politely asks a totally open-ended question and supplies NO DETTAILS about their personal status and experience that would be needed to tell hem whether it would take various amounts of time for him to learn enough R

[R] Converting a Date variable from character to Date

2022-09-29 Thread Admire Tarisirayi Chirume
Kindly request assistance to *convert a Date variable from a character to be recognized as a date*. NB: kindly take note that the data is in a csv file called *inflation*. I have included part of the file content herewith with the header for assistance. My data looks like this: *Period

Re: [R] How long does it take to learn the R programming language?

2022-09-29 Thread jim holtman
Still at it after 38 years. First came across S at Bell Labs in 1984. 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 Thu, Sep 29, 2022 at 7:09 AM Ebert,Timothy Aaron wrote: > Learning R

Re: [R] Covwerting a Date variable from character to Date

2022-09-29 Thread Jeff Newmiller
Your attachment was stripped by the mailing list. The criteria for allowed attachments are a bit tricky to translate into actions to apply to your email software, so usually including part of your file in the body of the email is the most successful approach for communicating your problem. Be

[R] Covwerting a Date variable from character to Date

2022-09-29 Thread Admire Tarisirayi Chirume
I kindly request for assistance to convert a Date variable from a character to be recognised as a date. I used the following command lines. inflation<-read.csv("Inflation_forecasts_1.csv") attach(inflation) inflation[,1:2 ] #subsetting the dataframe #Renaming variables inflation<-

Re: [R] Reading very large text files into R

2022-09-29 Thread Nick Wray
Hello Ivan's suggestion of fill=T seems to do the trick. Thanks to everyone who piled in - I'm rather touched by the support seeing as this was causing me a big headache with furthering my project. I also feel humbled by realising how little I know about the R-universe... Nick On Thu, 29 Sept

Re: [R] Reading very large text files into R

2022-09-29 Thread Jeff Newmiller
"Confusion" is the size of the file. Try specifying the colClasses argument to nail down the number and type of the columns. On September 29, 2022 8:16:34 AM PDT, Bert Gunter wrote: >I had no trouble reading your text snippet with >read.csv(text = >"... your text... ") > >There were 15

Re: [R] Reading very large text files into R

2022-09-29 Thread Nick Wray
Hi Bert Right Thing is, I didn't know that there even was an instruction like read.csv(text = "... your text... ") so at any rate I can paste the original text files in by hand if there's no shorter cut Thanks v much Nick On Thu, 29 Sept 2022 at 16:16, Bert Gunter wrote: > I had no trouble

Re: [R] Reading very large text files into R

2022-09-29 Thread Bert Gunter
I had no trouble reading your text snippet with read.csv(text = "... your text... ") There were 15 columns. The last column was all empty except for the row containing the "B". So there seems to be some confusion here. -- Bert On Thu, Sep 29, 2022 at 6:54 AM Nick Wray wrote: > Hello I

Re: [R] Fwd: Reading very large text files into R

2022-09-29 Thread Enrico Schumann
On Thu, 29 Sep 2022, Nick Wray writes: > -- Forwarded message - > From: Nick Wray > Date: Thu, 29 Sept 2022 at 15:32 > Subject: Re: [R] Reading very large text files into R > To: Ben Tupper > > > Hi Ben > Beneath is an example of the text (also in an attachment) and it's the

[R] Fwd: Reading very large text files into R

2022-09-29 Thread Nick Wray
-- Forwarded message - From: Nick Wray Date: Thu, 29 Sept 2022 at 15:32 Subject: Re: [R] Reading very large text files into R To: Ben Tupper Hi Ben Beneath is an example of the text (also in an attachment) and it's the "B", of which there are quite a few scattered throughout

Re: [R] Reading very large text files into R

2022-09-29 Thread Jan van der Laan
You're sure the extra column is indeed an extra column? According to the documentation (https://artefacts.ceda.ac.uk/badc_datadocs/ukmo-midas/RH_Table.html) there should be 15 columns. Could it, for example, be that one of the columns contains records with commas? Jan On 29-09-2022

Re: [R] Reading very large text files into R

2022-09-29 Thread Ben Tupper
Hi Nick, It's hard to know without seeing at least a snippet of the data. Could you do the following and paste the result into a plain text email? If you don't set your email client to plain text (from rich text or html) then we are apt to see a jumble of output on our email clients. ## start

Re: [R] Reading very large text files into R

2022-09-29 Thread Ivan Krylov
В Thu, 29 Sep 2022 14:54:10 +0100 Nick Wray пишет: > although most lines in the text doc consist of 15 elements, every so > often there is a sixteenth one and R doesn’t like this and gives me > an error message Does the fill = TRUE argument of read.table() help? If not, could you construct and

Re: [R] How long does it take to learn the R programming language?

2022-09-29 Thread Ebert,Timothy Aaron
Learning R takes an hour. Find an hourglass, flip it over. Meanwhile we will start increasing the size of the upper chamber and adding more sand. Mastery of R is an asymptotic function of time. While such answers might indicate trying for mastery is futile, you can learn enough R to be very

[R] Reading very large text files into R

2022-09-29 Thread Nick Wray
Hello I may be offending the R purists with this question but it is linked to R, as will become clear. I have very large data sets from the UK Met Office in notepad form. Unfortunately, I can’t read them directly into R because, for some reason, although most lines in the text doc consist of

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Enrico Schumann
On Tue, 27 Sep 2022, Stephen H. Dawson, DSL via R-help writes: > Hi All, > > > I am writing with a question about choosing the line > ending aspect of a file, please. > > I use write.csv and write.table to export work to CSV > files and TXT files. I am planning now on how to share > my work with