#R cheatsheet
created while studying for the Machine Learning course at FIB at Universitat Politechnica de Catalunya (BarcelonaTech), this cheatsheet contains the knowledge taught during the first half this course.
###Syntax
for loops:
| #!/bin/bash | |
| # Utility urlencode <string> | |
| # https://gist.github.com/cdown/1163649 | |
| urlencode() { | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do |
| { | |
| "operator": "executiontarget", | |
| "operatorId": 1, | |
| "cardinality": 9, | |
| "producesRows": true, | |
| "output": [{"expression": "iuref", "iu": ["v", ["Integer"]]}, {"expression": "iuref", "iu": ["v2", ["Integer"]]}], | |
| "outputNames": ["1", "1"], | |
| "input": { | |
| "operator": "join", | |
| "operatorId": 2, |
| #!/bin/bash | |
| # Utility urlencode <string> | |
| # https://gist.github.com/cdown/1163649 | |
| urlencode() { | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do |