Tag Archive
The following is a list of all entries tagged with data frame:
Querying Databases in R
Filed in Data Munging, R, R Tip, August 14, 2009, 9:00 amOne of the first things you’ll want to do in R is set it up to talk to databases. The easiest way to do this is using ODBC, via package RODBC.
To get the package, run
> install.packages(RODBC)
Once you have RODBC installed, you call it in R as follows. But it’s very simple: a bit [...]
Examining Data Frames — head and tail
Filed in Data Munging, R, R Tip, August 2, 2009, 12:30 amhead and tail, for those familiar with the unix command line, are two very handy utilities for looking at data frames. Along with str, which displays the structure of a data frame, they help you look at your data:
> d d
> str(d)
‘data.frame’: 50 obs. of 2 variables:
$ mean: int 1 [...]