Michale and Paul Thanks for your quick response.
Michael, I am running a 32bit version of R > sessionInfo() R version 2.11.1 (2010-05-31) i386-pc-mingw32 Paul, the dimension of the Data Frame with I am workis is dim(d) > [1] 70174 11 And the size of the file that contains the data is 2946 Kb The script that I use for manage the data is: #clean the workspace rm(list = ls(all = TRUE)) #Increase the memory size memory.limit(size=4000) #Set Directory of WorkSpace where whe have the data setwd('C:/Users/XXX/XXX/R/XXXX') #load data dat <- read.table('dat_fin_age.txt') #delete empty registry d<-na.omit(dat) remove(dat) # remove dat (intermedia object) for release resource #Asigned the name to the variables in the data names(d)<- c('pesq','year','month','sex','length','weigth','mature','age','soi','temp','k') #define the ages over the analysis is focuses. minage<-1 # minimum age maxage<-6 # maximum age # One of the diferent lm I have been tested l6w<-lm(length~as.factor(age)*as.factor(year)*as.factor(sex)*soi*k,data=d[d$age %in% minage:maxage,]) Today I will prove your recommendation to use the package biglm Thanks to both for your Help Regards 2011/9/22 Paul Hiemstra <paul.hiems...@knmi.nl> > On 09/22/2011 04:00 AM, R. Michael Weylandt > <michael.weyla...@gmail.com> wrote: > > Are you running a 32bit or 64bit version of R? Type sessionInfo() to see. > > > > Michael > > ...in addition, how large is your dataset? Please provide us with a self > contained example which reproduces this problem. You could take a look > at the biglm package. > > regards, > Paul > > > On Sep 21, 2011, at 10:41 PM, Mario Montecinos Carvajal < > mariomonteci...@gmail.com> wrote: > > > >> Hi > >> > >> I am a new user of the mail list. > >> > >> Mi problem occurs when I try to test a lineal model (lm), becouse appear > the > >> messaje "Error: cannot allocate vector of size xxx" > >> > >> The data frame whit I am working, Have > >> > >>> dim(d) > >> [1] 70174 11 > >> > >> and the function i am test is: > >> > >> > lm(length~as.factor(age)*as.factor(year)*as.factor(sex)*soi*k,data=d[d$age > >> %in% minage:maxage,]) > >> > >> I tried with a diferent options for solve this problem, but any one give > me > >> results. > >> > >> I tried with: > >> > >> Change in Function: memory.limit(size=4000) > >> > >> Change the setting in Windows using BCDEdit /set > >> > >> Change in the memory availability for R, change the path of the program > >> (suggested for other user) > >> > >> My computer have 4GB RAM, Have 20 GB of Virtual Memory, HDD 300 GB with > 200 > >> GB of free space and Windows 7 as OS and my R version is 2.11.1 > >> > >> I need solve this problem, any help or suggestion will be very well > >> received. > >> > >> I've been thinking in change the OS, but this is may last option. > >> > >> Regards > >> > >> I read > >> > >> > >> -- > >> Mario Montecinos C. > >> Biologo Marino > >> Dr (c) en Ciencias > >> Universidad Austral de Chile > >> > >> > >> Los acentos han sido omitidos voluntariamente para evitar > incompatibilidades > >> Evite enviar cartas impresas, cuidemos el medio ambiente y evitemos el > >> uso innecesario de papel. > >> > >> [[alternative HTML version deleted]] > >> > >> ______________________________________________ > >> R-help@r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-help > >> PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > -- > Paul Hiemstra, Ph.D. > Global Climate Division > Royal Netherlands Meteorological Institute (KNMI) > Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 > P.O. Box 201 | 3730 AE | De Bilt > tel: +31 30 2206 494 > > http://intamap.geo.uu.nl/~paul > http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770 > > -- Mario Montecinos C. Biologo Marino Dr (c) en Ciencias Universidad Austral de Chile Los acentos han sido omitidos voluntariamente para evitar incompatibilidades Evite enviar cartas impresas, cuidemos el medio ambiente y evitemos el uso innecesario de papel. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.