Thursday, 15 May 2014

How can I see each of tables from database in R? -


For example, under the "nycflights13" database, there are several tables, including flights and weather, etc.

  Library (nycflights13)  

After writing above, how can I see the actual information about the structures of table names, in that case I Do not know the name of a table

head (nycflights13) or str (nycflights13) do not work.

You can use the data function to view datasets in a single package Can specify and specify the package of interest.

  data (package = 'nycflights13')  

after which you can use str to view the structures .


No comments:

Post a Comment