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

2022-09-30 Thread Ebert,Timothy Aaron
Truth Tim -Original Message- From: R-help On Behalf Of Avi Gross Sent: Friday, September 30, 2022 7:01 PM Cc: R help Mailing list Subject: Re: [R] Reading very large text files into R [External Email] Those are valid reasons as examining data and cleaning or fixing it is a major thin

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

2022-09-30 Thread Avi Gross
Those are valid reasons as examining data and cleaning or fixing it is a major thing to do before making an analysis or plots. Indeed, an extra column caused by something in an earlier column mat have messed up all columns to the right. My point was about replicating a problem like this may requir

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

2022-09-30 Thread Ebert,Timothy Aaron
The point was more to figure out why most lines have 15 values and some give an error indicating that there are 16. Are there notes, or an extra comma? Some weather stations fail and give interesting data at, before, or after failure. Are the problem lines indicating machine failure? Typically c

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

2022-09-30 Thread Nick Wray
Hello Thanks again for all the suggestions. The irony is that for the datasets I'm using the fill=T as suggested by Ivan in the first instance I think works fine. They're not particularly sophisticated datasets and although I don't know what the extra Bs (of which the first one as Avi says does

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

2022-09-30 Thread avi.e.gross
Tim and others, A point to consider is that there are various algorithms in the functions used to read in formatted data into data.frame form and they vary. Some do a look-ahead of some size to determine things and if they find a column that LOOKS LIKE all integers for say the first thousand lines

Re: [R] Problem with Windows clipboard and UTF-8

2022-09-30 Thread Rui Barradas
Hello, I can reproduce this. C:\Users\ruipb>R -q -e "writeClipboard('categoría'); sessionInfo()" > writeClipboard('categoría'); sessionInfo() R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22000) Matrix products: default local

[R] Problem with Windows clipboard and UTF-8

2022-09-30 Thread Andrew Hart via R-help
Hi everyone, Recently I upgraded to R 4.2.1 which now uses UTF-8 internally as its native encoding. Very nice. However, I've discovered that if I use writeClipboard to try and move a string containing accented characters to the Windows clipboard and then try and paste that into another applic

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

2022-09-30 Thread Anthony Damico
hi, that error happens before svyglm because the second parameter isn't a logical test? run `subset(rclus1, as.factor(stype=="E"))` and you'll see the same error.. if you remove the "as.factor" `subset(rclus1, (stype=="E"))` then the svyglm simply fails to converge but i think that's just too ma

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

2022-09-30 Thread Ebert,Timothy Aaron
Hi Nick, Can you post one line of data with 15 entries followed by the next line of data with 16 entries? Tim -Original Message- From: R-help On Behalf Of Richard O'Keefe Sent: Friday, September 30, 2022 12:08 AM To: Nick Wray Cc: r-help@r-project.org Subject: Re: [R] Reading very