# Data Frames
{id: data-frames}

## Data Frame functions
{id: data-frame-functions}

data.frames
  dim
  head
  nrow
  ncol
  names  - get the names or assign new names to the data.frame
  names(dataframe)  = c("title1", "title2", ...)
  summary
  Subsetting (indexing ranges)
  subset()
  order() returns a numeric vector of the sorted indexes



## Iris dataset
{id: iris-dataset}

[Iris dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set)

## Built-in Iris data set
{id: built-in-iris-data-set}

![](examples/data-frames/built_in_iris.R)

![](examples/data-frames/iris.R)

## Load Iris dataset
{id: load-iris-dataset}

![](examples/data-frames/load_iris.R)


## Sort dataset by a column
{id: sort-dataset-by-column}

![](examples/data-frames/sort_dataset_by_a_column.R)

## Order dataframe by two columns (secondary sort)
{id: order-dataframe-by-two-columns}

![](examples/data-frames/order_dataframe_by_two_conditions.R)

