Learn R Programming

qdap (version 0.2.5)

htruncdf: Dataframe Viewing

Description

htruncdf - Convenience function to view the head of a truncated dataframe. truncdf - Convenience function to view a truncated dataframe. ltruncdf - Convenience function to view the head of a list of truncated dataframes. qview - Convenience function to view a summary and head of a dataframe.

Usage

htruncdf(dataframe, n = 10, width = 10, ...)

  truncdf(dataframe, end = 10, begin = 1)

  ltruncdf(dat.list, n = 6, width = 10, ...)

  qview(dataframe, ...)

Arguments

dataframe
A data.frame object.
n
Number of rows to display.
width
The width of the columns to be displayed.
end
The last character to be displayed (width).
begin
The first character to be displayed (width).
...
Other arguments passed to htruncdf (qview; ltruncdf) or
dat.list
A list of data.frame objects.

Value

  • htrundf - returns n number of rows of a truncated dataframe. trundf - returns a truncated dataframe. ltruncdf - returns a list of n number of rows of a truncated dataframes. qview - returns a dataframe head with summary statistics.

See Also

head

Examples

Run this code
htruncdf(raj)
htruncdf(raj, 20)
htruncdf(raj, ,20)
truncdf(raj[1:10, ])
truncdf(raj[1:10, ], 40)
qview(raj)
qview(CO2)

Run the code above in your browser using DataLab