<commit_before>---
published: true
layout: post
---
## R Programming

### Logical Indexing

v[v>0]

v[confidence >0]

v[v>confidence]

v[v<0] = c(100, 200)  \# recycling

v[v<0] = v[v<0] + c(100, 200)  \# recycling


#### Matrix A


A[]


works for Matlab too.<commit_msg>Updated 2016-09-10-r-programming.md<commit_after>---
published: true
layout: post
---
## R Programming

### Logical Indexing

v[v>0]

v[confidence >0]

v[v>confidence]

v[v<0] = c(100, 200)  \# recycling

v[v<0] = v[v<0] + c(100, 200)  \# recycling


#### Matrix A


A[]


works for Matlab too.


### Googlevis

[Analyzing World Bank data with WDI, googleVis Motion Charts](https://www.r-bloggers.com/analyzing-world-bank-data-with-wdi-googlevis-motion-charts/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+RBloggers+%28R+bloggers%29)
{'fraction_non_alphanumeric': 0.18192918192918192, 'fraction_numerical': 0.057387057387057384, 'mean_word_length': 4.256410256410256, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2995109', 'n_tokens_mistral': 392, 'n_tokens_neox': 332, 'n_words': 68}