Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-25 Thread Bert Gunter
Note the following alternative to formula paste gymnastics: ## regr_names as in Rui's post allnames <- c("B5", regr_names) linmod4 <- lm(B5 ~. , data = OrigData[allnames], na.action = na.exclude) ## or even linmod4 <- lm(OrigData[allnames], na.action = na.exclude) see ?formula for details,

Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-25 Thread Rui Barradas
Hello, Here is your code, simplified and maybe corrected. Some previous notes: 1. You don't need to attach() 2. You don't need to create categorydata<- as.data.frame(OrigData), read.csv already outputs a data.frame. In the code below, I use Origdata. 3. The file has many missing values, so

Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-25 Thread Ivan Krylov
On Wed, 24 Nov 2021 13:36:28 + Olivia Keefer wrote: > dim(OrigData) What is the size of OrigData? How much random-access memory does the computer have? If there's a lot of memory, are you running a 32-bit or a 64-bit build of R? > linmod4 <- lm( B5 ~ B6_1 + B6_2 + B6_3 + B6_4 + B6_5 + B6_6

Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-24 Thread Olivia Keefer
Apologies. First time posting and new to R so a lot of learning. Hope my attachments are helpful now. #This loads the required package. Always select UK Bristol as a CRAN MIRROR / LOCATION #1. Highlight the below code and run (3rd icon or right click) require(relaimpo)

Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-24 Thread Ivan Krylov
Hello Olivia! On Tue, 23 Nov 2021 20:26:07 + Olivia Keefer wrote: > We have been able to run other regressions, but when we go to run a > certain set of variables, we both are getting this message each time > we try. It would help if you provided more information about how exactly you run

Re: [R] Error: vector memory exhausted (limit reached?)

2021-11-24 Thread Rui Barradas
Hello, You ask a question on a certain regression that exhausts vector memory but don't post the regression(s) code (and data, btw). And load package relaimpo before installing it. Can you please read the posting guide linked to at the bottom of this and every R-Help mail? As is there's

[R] Error: vector memory exhausted (limit reached?)

2021-11-23 Thread Olivia Keefer
Hello! My colleague and I have continually run into this error and would like to better understand why and how to remedy. We have been able to run other regressions, but when we go to run a certain set of variables, we both are getting this message each time we try. Any insight would be

Re: [R] Error: vector memory exhausted (limit reached?)

2020-11-02 Thread Patrick (Malone Quantitative)
The error probably means what it says. I'm guessing "25 GB available" is on the hard drive. But the issue is the data must be held in RAM, and a file >4GB (before de-compression) is quite a lot of RAM on laptop scales. Try taking a subset of the data in Stata before importing? Pat On Mon, Nov

Re: [R] Error: vector memory exhausted (limit reached?)

2020-11-02 Thread Patrick (Malone Quantitative)
Re-looping R-help. My error. Hannah, I can't tell you how much RAM your computer has, certainly not how much is free for R's use. Just that you are probably not going to be able to load a dataset that Large into a 2017 MacBook. On Mon, Nov 2, 2020, 3:20 PM Hannah Van Impe wrote: > Thank you

[R] Error: vector memory exhausted (limit reached?)

2020-11-02 Thread Hannah Van Impe
Hello I have a question about the error: vector memory exhausted (limit reached?). I have the R-studio version 4.0.3 (2020-10-10). I have a MacBook Air (13-inch, 2017). I am trying to open a dataset file ‘data_dta’ through the import dataset ‘file from stata’ button. I already did this with