proxy.factor | R Documentation |
Calculates substitute values for factor levels. If x and y have same length and there is a one-to-one correspondence of their elements, then unique elements of y are returned in an order corresponding to levels(x).
## S3 method for class 'factor'
proxy(x, y = as.numeric(x), ...)
x |
factor |
y |
factor or vector |
... |
ignored |
same class as y
Other proxy:
proxy()
proxy(factor(1:3), letters[1:3])
proxy(factor(1:3), factor(letters[1:3]))
proxy(factor(letters[4:6]))
foo <- classified(letters[1:5])
as_yamlet(attributes(foo))
foo <- classified(foo, labels = proxy(foo))
as_yamlet(attributes(foo))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.