sample_df {fixest}R Documentation

Randomly draws observations from a data set

Description

This function is useful to check a data set. It gives a random number of rows of the input data set.

Usage

sample_df(x, n = 10)

Arguments

x

A data set: either a vector, a matrix or a data frame.

n

The number of random rows/elements to sample randomly.

Value

A data base (resp vector) with n rows (resp elements).

Examples


sample_df(iris)


[Package fixest version 0.10.1 Index]