[R] Correct function name for text display of S4 object

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Jul 18 19:28:45 CEST 2010



On 13.07.2010 03:35, Andrew Liu wrote:
> Hello,
>
> I am working on an R package for storing order book data. I currently
> have a display method that has the following output (ob is an S4 object):
>
>
> display(ob)
>
>
> Current time is 09:35:02
>
> Price Ask Size
>
> --------------------------------------
>
> 11.42 900
>
> 11.41 1,400
>
> 11.40 1,205
>
> 11.39 1,600
>
> 11.38 400
>
> --------------------------------------
>
> 2,700 11.36
>
> 1,100 11.35
>
> 1,100 11.34
>
> 1,600 11.33
>
> 700 11.32
>
> --------------------------------------
>
> Bid Size Price
>
> The package already has show, summary, and plot methods.
>
> Is there a more conventional name than display for the above output, or
> is display as good as any other name?

Well, if show/print and summary are already dong different things, then 
go with a new name ....

Uwe Ligges


>
> Thanks,
>
> Andrew
>
> ______________________________________________
> 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.



More information about the R-help mailing list