[R] Learning R - View datasets

Wincent ronggui.huang at gmail.com
Fri Nov 27 09:07:49 CET 2009


There are different ways to inspect the conent of a data frame. For example,

>View(CO2)


2009/11/27 Brock Tibert <btibert3 at yahoo.com>:
> Hi All,
>
> I am making a serious effort to try to learn R, but one hurdle I am facing is that I need to "see" the data as I walk through the examples in the packages.  For instance, many examples on the web start by a command like data("wines").  How can I actually view what the dataset looks like prior to transformations and analysis?  I have tried to use edit() , print, and head.
>
> In short, I know that data() lists all of the available datasets, data("wines") will load the dataset wines, but how can I look at the raw data?
>
> I figure this is probably an easy question, but any help you can provide will be greatly appreciated.
>
> Thanks,
>
> Brock
>
> ______________________________________________
> 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.
>



-- 
Wincent Ronggui HUANG
Doctoral Candidate
Dept of Public and Social Administration
City University of Hong Kong
http://asrr.r-forge.r-project.org/rghuang.html




More information about the R-help mailing list