Re: [R] Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

2019-07-09 Thread Jim Lemon
Hi Ana, The first error message may be the critical one. "weight//NA" is almost certainly not the name of the file you want, and two consecutive slashes in a path is also incorrect. You may not have placed the data files in the correct file structure, often a problem with programs that are written

Re: [R] [R-sig-Debian] Curl4, Quantmod, tseries and forecast

2019-07-09 Thread Lorenzo Isella
Thanks, that fixed the issue! L. On Tue, Jul 09, 2019 at 01:41:39PM +0200, Ralf Stubner wrote: Hi Lorenzo I reordered the quote slightly: On Tue, Jul 9, 2019 at 1:30 PM Lorenzo Isella wrote: On Sun, Jul 07, 2019 at 03:16:20PM +0200, Ralf Stubner wrote: >Did you reinstall the curl package? S

Re: [R] Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

2019-07-09 Thread Bert Gunter
This is often related to permissions' issues on your local machine, for which you provided none of the (requested) info. If so, this is not an R issue. See ?sessioninfo. Also, this is a plain text list. Don't post in html, as it can make code unreadable. Cheers, Bert Gunter "The trouble with ha

[R] Fw: Sample size required to estimate population variance Solution

2019-07-09 Thread Thomas Subia
Colleagues, The original question was how many samples should be taken in order to estimate a population standard deviation to within a defined percentage of its actual value. In an article from The American Statistician, Volume 15, 1961, Issue 3, the sample size is given by: N = (1/2) * (y/d)

[R] Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

2019-07-09 Thread Ana Marija
Hello, I am trying to run this program FUSION.assoc_test.R from : http://gusevlab.org/projects/fusion/#typical-analysis-and-output [t.cri.asokovic@cri16in002 fusion_twas-master]$ Rscript FUSION.assoc_test.R \ > --sumstats /gpfs/data/stranger-lab/anamaria/meta_gwas/META_CHR22_1.txt \ > --weights .

Re: [R] [R-sig-Debian] Curl4, Quantmod, tseries and forecast

2019-07-09 Thread Ralf Stubner
Hi Lorenzo I reordered the quote slightly: On Tue, Jul 9, 2019 at 1:30 PM Lorenzo Isella wrote: > On Sun, Jul 07, 2019 at 03:16:20PM +0200, Ralf Stubner wrote: > >Did you reinstall the curl package? See also > >https://stackoverflow.com/a/50085192/8416610 > > I tried the following > > > install.

[R] Calibrate survey using rake

2019-07-09 Thread Juan Ceccarelli Arias
Hello, I need to calibrate a survey using raking. I already declared the complex design here: des_survey <- svydesign(id= ~idd, strata= ~strata, data = datos, weights = ~ft, check.strata=TRUE ) options(survey.lonely.psu = "remove") options(digits = 10) However, when I run the rake process, the t

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Spencer Brackett
My apologies! I made this much to complicated and allowed myself to become confused with the straightforward advice given. I tried running the lines Mr. Barradas suggested after receiving the output for as.matrix() and I understand now. Thank you all again for your patience. Best, Spencer On Tu

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Michael Friendly
You continue to labor under false conceptions, starting with your subject line indicating that you should be able to *see* your huge data set in the R console. Take a pause, have a coffee or tea and re-read the helpful advice various people have tried to offer before continuing this thread. -Mi

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Patrick (Malone Quantitative)
Spencer, what prints into your console is not the point. As others have said, the best way to find it if an R object is the type matrix is is.matrix() . That will return TRUE or FALSE. [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Spencer Brackett
So even though a number of rows were omitted during the ‘print in’ or visualization of the dataset into my console, the data frame is now set as a matrix? I believe so, per Mr. Barradas’s last email. Sorry for the confusion, I was expecting the whole dataset to load into my console and was concern

Re: [R] [R-sig-Debian] Curl4, Quantmod, tseries and forecast

2019-07-09 Thread Lorenzo Isella
Hi Ralf, I tried the following install.packages("RCurl") which went OK, but then same story when I tried to install tseries. sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 10 (buster) Matrix products: default BLAS: /usr/

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Michael Friendly
Why do you need it to be a matrix? A data.frame is like a matrix, but allows columns of mixed types. as.matrix() will coerce your data frame to a matrix if you really need this. On 7/08/19 4:43 p.m., Spencer Brackett wrote: Using str(GBM.txt) produced the same output as last time, which lists

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Richard O'Keefe
The obvious question is "what do you mean, FORMATTED AS a matrix?" Once you have read an object into R, you have no information about how it was formatted. Another question is "what do you mean, MATRIX"? Do you mean the kind of R object specifically recognised by is.matrix, or do you mean "rectangu