make.fdt.simple: A function which makes the table with absolute and relative frequencies,
cumulative frequencies in numbers and percentages.
Description
This function is called by fdt.default and make.fdt.multiple. It makes a table
from a vector of numbers. The table consists of absolute and relative
frequencies, cumulative frequencies in numbers and percentages.Usage
make.fdt.simple(x, start, end, h, right)
Arguments
x
A numeric vector object.
start
The left value of the interval of the first class.
end
The last value of the interval of the last class.
right
Intervals right open (default = FALSE).
Value
- The function
make.fdt.simple returns a data.frame which contains the
table with interval classes and frequencies. The following are the columns: - Class limitsInterval classes,
character - fAbsolute frequency,
numeric - rfRelative frequency,
numeric - rf(%)Relative frequency in percentages,
numeric - cfCumulative frequency;
numeric - cf(%)Cumulative frequency in percentages,
numeric
Details
This function is called by fdt.default and makes a table from a vector of
numbers. The table consists of absolute and relative frequencies, cumulative
frequencies in numbers and percentages. The result is used by the generic
function summary to format it in a table suited for publication.See Also
table and cut provided by base package.