_ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 6.2 year 2003 month 01 day 10 language R>Until this version, I've not had to explicitly start the x11 device. Now, (at least with lattice plots), one is not automatically started once it's recognised that no device is open. I notice that lots of things have changed with x11 with this release. Is the current behaviour by design or fault? best -- Patrick Connolly HortResearch Mt Albert Auckland New Zealand Ph: +64-9 815 4200 x 7188 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~ I have the world`s largest collection of seashells. I keep it on all the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
HI, all, How can i check the variables that is currently being loaded.. ls() only list the variable name, but not the summary of the variable, like the dimension of the variable etc.. Is there a command in R, which is equivalent to "whos" in matlab, which let me check the variables currently loaded in Matlab.. also, Does anyone have recommendation on ~a good reference to R.. I could not find the answer to my Q in the documentation included with R package.. thanks, yan
You may want to just try summary(varname) or more likely you want str(varname). -roger _______________________________ UCLA Department of Statistics rpeng at stat.ucla.edu http://www.stat.ucla.edu/~rpeng On Wed, 15 Jan 2003, Yan Yu wrote:> HI, all, > How can i check the variables that is currently being loaded.. > ls() only list the variable name, but not the summary of the variable, > like the dimension of the variable etc.. Is there a command in R, which > is equivalent to "whos" in matlab, which let me check the variables > currently loaded in Matlab.. > also, Does anyone have recommendation on ~a good reference to R.. > I could not find the answer to my Q in the documentation included with R > package.. > > thanks, > yan > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help >
On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote:> _ > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu > status > major 1 > minor 6.2 > year 2003 > month 01 > day 10 > language R > > > Until this version, I've not had to explicitly start the x11 device. > Now, (at least with lattice plots), one is not automatically startedCould you explain ? There's sometimes a warning, but I haven't seen the device not being opened.> once it's recognised that no device is open. I notice that lots of > things have changed with x11 with this release. > Is the current behaviour by design or fault? > > best
Hallo you can try this function #------------------------------------------------------------------------------------------ # listing objektu s udaji # Posted by Dan Putler At 2002-07-15 16:13 # As part of the obveRsive GUI project, we've written a function with much of # the functionality that Patrick Connolly was suggesting (which is a bit more # compact than the output from ls.str()). Alas, no date capabilities. The # function is call ls.objects(), and example output appears below: # modified by me 20.7.2002 ls.objects <- function (pos = 1, pattern, mode = NULL, type = NULL) { Obj.Name <- ls(pos = pos, envir = as.environment(pos), pattern = pattern) nnn.m<-sapply(sapply(Obj.Name,get),mode) nnn.c<-sapply(sapply(Obj.Name,get),class) nnn.d<-sapply(sapply(Obj.Name,get),dim) Obj.length<-length(nnn.m) nnn.pok<-rep(0,Obj.length*2) dim(nnn.pok)<-c(Obj.length,2) for (i in 1:Obj.length) nnn.pok[i,1]<-as.numeric(unlist(nnn.d[i]))[1] for (i in 1:Obj.length) nnn.pok[i,2]<-as.numeric(unlist(nnn.d[i]))[2] nnn.d<-nnn.pok vyber<-is.na(nnn.d)[,1] nnn.d[vyber,1]<-sapply(sapply(Obj.Name,get),length)[vyber] nnn.pok<-rep("-",Obj.length) for (i in 1:Obj.length) nnn.pok[i]<-as.character(unlist(nnn.c[i]))[1] vystup<-data.frame(nnn.m,nnn.pok,nnn.d) names(vystup)<-c("Object.Mode","Object.Type","Rows","Columns") vystup } On 15 Jan 2003 at 18:26, Yan Yu wrote:> HI, all, > How can i check the variables that is currently being loaded.. > ls() only list the variable name, but not the summary of the variable, > like the dimension of the variable etc.. Is there a command in R, > which is equivalent to "whos" in matlab, which let me check the > variables currently loaded in Matlab.. also, Does anyone have > recommendation on ~a good reference to R.. I could not find the answer > to my Q in the documentation included with R package.. > > thanks, > yan > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-helpCheersPetr Pikal Precheza a.s., Nab?.Dr.E.Bene?e 24, 750 62 P?erov tel: +420581 252 257 ; 724 008 364 petr.pikal at precheza.cz; p.pik at volny.cz fax +420581 252 561
>>>>> "Roger" == Roger Peng <rpeng at stat.ucla.edu> >>>>> on Wed, 15 Jan 2003 20:24:07 -0800 (PST) writes:Roger> You may want to just try summary(varname) or more likely you want Roger> str(varname). Or combine ls() and str() using ls.str() ! Martin Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< Roger> On Wed, 15 Jan 2003, Yan Yu wrote: >> HI, all, >> How can i check the variables that is currently being loaded.. >> ls() only list the variable name, but not the summary of the variable, >> like the dimension of the variable etc.. Is there a command in R, which >> is equivalent to "whos" in matlab, which let me check the variables >> currently loaded in Matlab.. >> also, Does anyone have recommendation on ~a good reference to R.. >> I could not find the answer to my Q in the documentation included with R >> package.. >> >> thanks, >> yan
A 20:24 15/01/2003 -0800, Roger Peng a ?crit:>You may want to just try summary(varname) or more likely you want >str(varname).Or even better: ls.str(), which does str() on all objects listed by ls().>-roger >_______________________________ >UCLA Department of Statistics >rpeng at stat.ucla.edu >http://www.stat.ucla.edu/~rpeng > >On Wed, 15 Jan 2003, Yan Yu wrote: > > > HI, all, > > How can i check the variables that is currently being loaded.. > > ls() only list the variable name, but not the summary of the variable, > > like the dimension of the variable etc.. Is there a command in R, which > > is equivalent to "whos" in matlab, which let me check the variables > > currently loaded in Matlab..If you have highly structured objects, try this: ls.str(max.level = -1).> > also, Does anyone have recommendation on ~a good reference to R.. > > I could not find the answer to my Q in the documentation included with R > > package.. > >You may have a look at my tutorial "R for beginners" though it is far from a reference doc it mentions ls.str() among the few things to know before starting. You can find it in the contributed docs section on CRAN. Hope this helps. Emmanuel Paradis> > > thanks, > > yan > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > http://www.stat.math.ethz.ch/mailman/listinfo/r-help > > > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >http://www.stat.math.ethz.ch/mailman/listinfo/r-help
THank you for the infomation. They all work great! yan On Thu, 16 Jan 2003, Emmanuel Paradis wrote:> A 20:24 15/01/2003 -0800, Roger Peng a écrit: > >You may want to just try summary(varname) or more likely you want > >str(varname). > > Or even better: ls.str(), which does str() on all objects listed by ls(). > > > >-roger > >_______________________________ > >UCLA Department of Statistics > >rpeng at stat.ucla.edu > >http://www.stat.ucla.edu/~rpeng > > > >On Wed, 15 Jan 2003, Yan Yu wrote: > > > > > HI, all, > > > How can i check the variables that is currently being loaded.. > > > ls() only list the variable name, but not the summary of the variable, > > > like the dimension of the variable etc.. Is there a command in R, which > > > is equivalent to "whos" in matlab, which let me check the variables > > > currently loaded in Matlab.. > > If you have highly structured objects, try this: ls.str(max.level = -1). > > > > also, Does anyone have recommendation on ~a good reference to R.. > > > I could not find the answer to my Q in the documentation included with R > > > package.. > > > > > You may have a look at my tutorial "R for beginners" though it is far from > a reference doc it mentions ls.str() among the few things to know before > starting. You can find it in the contributed docs section on CRAN. > > Hope this helps. > > Emmanuel Paradis > > > > > > thanks, > > > yan > > > > > > ______________________________________________ > > > R-help at stat.math.ethz.ch mailing list > > > http://www.stat.math.ethz.ch/mailman/listinfo/r-help > > > > > > >______________________________________________ > >R-help at stat.math.ethz.ch mailing list > >http://www.stat.math.ethz.ch/mailman/listinfo/r-help > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help >