ofactor-deprecated

0th

Percentile

Order-preserving factors

The function ofactor() is a convenience wrapper for factor() that orders the levels as they appear in the data if the levels argument is not specified.

Usage
ofactor(x = character(), ...)
Arguments
x

A vector of data, usually taking a small number of distinct values.

...

Other arguments passed on to base::factor().

Value

A factor. See base::factor() for details.

See Also

Other deprecated functions: coalesce.na-deprecated, df_to_list-deprecated, hms.to.seconds-deprecated, kimisc-deprecated, list_to_df-deprecated, nc-deprecated, nlist-deprecated, sample.rows-deprecated, seconds.to.hms-deprecated, thisfile-deprecated, tll-deprecated, vswitch-deprecated

Aliases
  • ofactor-deprecated
  • ofactor
Examples
# NOT RUN {
ofactor(3:1)
ofactor(9:12, exclude=11)
identical(ofactor(3:1, levels=1:3), factor(3:1))
# }
Documentation reproduced from package kimisc, version 0.4, License: GPL-3

Community examples

Looks like there are no examples yet.