[R] A question about data frame

Gang Chen gangchen6 at gmail.com
Thu Mar 10 22:49:40 CET 2011


Thanks! You mean something like:

> print(df$s[1], max.levels=0)

It seems I could also do

> as.character(df$s[1])

Any other/better solutions?

On Thu, Mar 10, 2011 at 4:40 PM, Rob Tirrell <rpt at stanford.edu> wrote:
> See the max.levels argument in ?print. I think this is what you're looking
> for.
> --
> Robert Tirrell | rpt at stanford.edu | (607) 437-6532
> Program in Biomedical Informatics | Butte Lab | Stanford University
>
>
> On Thu, Mar 10, 2011 at 13:35, Gang Chen <gangchen6 at gmail.com> wrote:
>>
>> n = c(2, 3, 5)
>> > s = c("aa", "bb", "cc")
>> > df = data.frame(n, s)
>



More information about the R-help mailing list