The MIT License (MIT)
118 |Copyright (c) 2017 Pablo Casas <pcasas.biz at gmail.com>
119 |Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
120 |The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
121 |THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
122 | 123 | 124 |data_country.Rd
Each row represents a person from different countries indicating if he or she has or not flu. 126 | Colmuns 127 | person: unique id 128 | country: country of the person, 70 different countries 129 | has_flu: character variable with values "yes" or "no" indicating if the person has flu
130 |data_country
133 |
134 |
135 | A data frame with 910 rows and 3 variables
138 | 139 |data_golf.Rd
This well known small data frame containst 14 cases indicating wheter or not play golf based on wheather conditions. Target variable: 'play_golf.'
122 |data_golf
125 |
126 |
127 | A data frame with 14 rows and 3 variables
130 | 131 |export_plot.Rd
Export 'object_plot' to jpeg file under the name 'file_name' in the directory 'path_out'
122 |export_plot(object_plot, path_out, file_name)125 | 126 |
object_plot | 131 |Object plot to export (like ggplot2) |
132 |
---|---|
path_out | 135 |path directory to export the output, if it has a value the plot is saved, 136 | if the directory doesn't existis it will try to create it. To save in current directory path must be dot: "." |
137 |
file_name | 140 |output file name |
141 |
none
147 | 148 |fibonacci.Rd
It retrieves a vector containing the first N numbers specified in 'length' parameter of the Fibonacci series.
122 |fibonacci(length, remove_first = F)125 | 126 |
length | 131 |data frame |
132 |
---|---|
remove_first | 135 |removes the first value of the series, because first 2 elements are the same (number=1). False by default. |
136 |
vector
142 | 143 |146 |# Get the first 4 elements of Fibonacci series 145 | fibonacci(4)#> [1] 1 1 2 3
funModeling-package.Rd
funModeling is intimately related to the Data Science Live Book -Open Source- (2017) in the sense that most 123 | of its functionality is used to explain different topics addressed by the book.
124 |To start using funModeling you can start by the vignette: 131 | `browseVignettes(package = "funModeling")`
132 |Or you can read the Data Science Live Book, fully accessible at: https://livebook.datascienceheroes.com
133 |Useful links:
Report bugs at https://github.com/pablo14/funModeling/issues
gain_ratio.Rd
Computes the information gain between an 'input' and 'target' variable (using log2). Similar to information gain but less sensitive to high cardinality variables.
122 |gain_ratio(input, target)125 | 126 |
input | 131 |numeric/character vector |
132 |
---|---|
target | 135 |numeric/character vector |
136 |
gain ratio
142 | 143 |147 |if (FALSE) { 145 | gain_ratio(input=data_golf$outlook, target=data_golf$play_golf) 146 | }
heart_disease.Rd
There are variables related to patient clinic trial. The variable to predict is `has_heart_disease`.
122 |heart_disease
125 |
126 |
127 | A data frame with 303 rows and 16 variables:
132 | 133 | 134 |range01.Rd
Range a variable into [0-1], assigning 0 to the min and 1 to the max of the input variable. All NA values will be removed.
122 |range01(var)125 | 126 |
var | 131 |numeric input vector |
132 |
---|
vector with the values scaled into the 0 to 1 range
138 | 139 |142 |range01(mtcars$cyl)#> [1] 0.5 0.5 0.0 0.5 1.0 0.5 1.0 0.0 0.0 0.5 0.5 1.0 1.0 1.0 1.0 1.0 1.0 0.0 0.0 141 | #> [20] 0.0 0.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 0.5 1.0 0.0