Description Usage Arguments Details Value Author(s) Examples

View source: R/normalizeWeight.details.R

To explain how to normalize weight values if `normalize`

= TRUE.

1 | ```
normalizeWeight.details(normalize, weight, data)
``` |

`normalize` |
is a boolean value. |

`weight` |
is a numeric vector. |

`data` |
is a data.frame. |

This function allows users to normalize weights.

If there is not any weight, the function will create a numeric vector of "1".

If normalize = TRUE, the function will make every weight value as a "[0:1]" value.

If normalize = FALSE, the function will not make any changes, weights will be the same.

Numeric vector with updated weights. Explanation.

Roberto Alcántara roberto.alcantara@edu.uah.es

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

1 2 3 4 5 6 7 8 9 10 | ```
data <- data.frame(matrix(c(1:10),ncol = 2))
weight1 <- c(0.6,0.4)
weight2 <- c(2,4)
normalizeWeight.details(FALSE, weight1, data)
normalizeWeight.details(TRUE, weight2, data)
normalizeWeight.details(FALSE, weight2, data)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.