[R] how many records R can display on the screen?
Charles C. Berry
cberry at tajo.ucsd.edu
Sun Apr 13 00:17:58 CEST 2008
On Sat, 12 Apr 2008, john useast wrote:
John,
Do not hijack an existing thread to ask a new question.
You have replied to Hadley's reply to Biago and changed the subject line.
Instead, start a new thread unsing 'Compose' or whatever capability your
mail agent has to create a new message.
I suspect what you are seeking is
?page
as in
page( big.honking.object, 'print' )
HTH,
Chuck
> Dear R friends:
>
>
> Sorry this might be a trivial question: I have about 8000 records with 11 variables in csv format. I did get it into R. head and tail all tell every record is in the memory. However, when i tried to print it, only last 1000 records stay in the screen; the rest just gone some where....
>
> could some one enlighten me on this?
>
> thanks!
>
> John
> hadley wickham <h.wickham at gmail.com> wrote:
> On Sat, Apr 12, 2008 at 1:06 PM, Biago wrote:
> >
> > Hi all - my first time here and am having an issue with the Predict function.
> >
> > I am using a tutorial as a guide, locate here:
> > http://www.ats.ucla.edu/STAT/R/dae/mlogit.htm
> >
> > My code gives this error
> >
> > > newdata1$predicted <- predict(mlogit,newdata=newdata1,type="response")
> > Error in `$<-.data.frame`(`*tmp*`, "predicted", value = c(0.332822934960197,
> > :
> > replacement has 810 rows, data has 6
> >
> > How can I resolve this problem so I can just predict values for the supplied
> > matrix(newdata1) instead of it trying to use my full dataset?
> >
> > Here is the full code up to this point.
> >
> >
> > library(VGAM)
> > mlogit<- vglm(bcsse$Active~bcsse$Impinteg+bcsse$Hsgradyr,
> > family=multinomial(), na.action=na.pass)
>
> You probably want:
>
> mlogit<- vglm(Active~Impinteg+Hsgradyr, data = bcsse,
> family=multinomial(), na.action=na.pass)
>
> Otherwise predict doesn't know how to match up the column names in
> newdata to the variables used in the model.
>
> Hadley
>
>
> --
> http://had.co.nz/
>
> ______________________________________________
> R-help at 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.
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list