# Numeric
# Making one reference fdt
set.seed(33)
x <- rnorm(1e3,
20,
2)
(ft.r <- fdt(x))
# Making a brand new
(ft.n <- make.fdt(f=ft.r$table$f,
start=13.711,
end=27.229)) # Huumm ..., good, but ... Can it be better?
summary(ft.n,
format=TRUE,
pattern='%.3f') # Is it nice now?
# Categorical
x <- sample(letters[1:5],
1e3,
rep=TRUE)
# Making one reference fdt
(ft.r <- fdt_cat(x))
# Making a brand new
(ft.n <- make.fdt_cat(f=ft.r$f,
categ=ft.r$Category))
Run the code above in your browser using DataLab