Description Usage Arguments Value Examples
This function is an implementation of the vlookp function from Excel. It is used to return values from a column in a data frame, which correspond to certain values in another column in the same data frame. These other values are taken as input for the function.
1 2 |
data |
A data frame in which the values should be looked up |
look.for |
The values to look for in the column |
look.in |
The column to which the values from |
return.from |
The column from which the corresponding values are returned. |
return.multiple |
If one value from |
return.na |
Should missing values be returned? Defaul is to TRUE. |
A vector with the corresponding values from the column return.from
. Length must not be the same as look.for
, but usually is if return.multiple = FALSE
and return.na = TRUE
and all values from look.for
are in look.in
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.