# Take a Sample from a Data Set or Importer Object

### Description

These methods are a convenience short-cuts to
take samples from `data.set`

or `importer`

objects.
They result in a data set (`data.set`

object)
the rows of which are a sample of the complete
object.

### Usage

1 2 3 4 |

### Arguments

`x` |
a data frame. |

`size` |
an (optional) numerical value, the sample size,
defaults to the total number of rows of |

`replace` |
a logical value, determines whether sampling takes place with or without replacement. |

`prob` |
a vector of sampling probabities or NULL. |

### Value

A data frame.

### Examples

1 2 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.