Learn R Programming

rgr (version 1.1.15)

df.test: Check for the Existence of a Data Frame

Description

A utility function to determine if a data frame is attached, or exists in the working directory. If the data frame exists the names of the variables are displayed together with the data frame dimensions.

Usage

df.test(dfname)

Arguments

dfname

name of a data frame.

Details

Based on a function shared on S-News.

See Also

search, ls

Examples

Run this code
# NOT RUN {
## Make test data available
data(kola.o)

## Check that the data frame kola.o is available
df.test(kola.o)

# }

Run the code above in your browser using DataLab