-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathindex.html
527 lines (498 loc) · 34.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Chris Albon - Data Science And Political Science</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/normalize.css" rel="stylesheet" media="all">
<link href="css/styles.css" rel="stylesheet" media="all">
<link href="css/notebooks.css" rel="stylesheet" media="all">
<link href='http://fonts.googleapis.com/css?family=Source+Serif+Pro:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville:400,700' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]><script src="js/html5shiv-printshiv.js" media="all"></script><![endif]-->
</head>
<body>
<header role="banner">
<div class="row">
<h2><a href="http://chrisalbon.com">Chris Albon</a></h2>
<nav role="navigation">
<a href="http://chrisalbon.com/miscellaneous/about.html">About</a> | <a href="https://github.com/chrisalbon">GitHub</a> | <a href="https://twitter.com/chrisalbon">Twitter</a> | <a href="https://pinboard.in/u:chrisalbon">Pinboard</a><!-- | <a href="http://chrisalbon.pythonanywhere.com/feed.xml">RSS</a>-->
</nav>
</div>
</header>
<div class="wrap">
<main role="main">
<div class="notebook">
<!-- end of header section -->
<div class='note-box'><p>I am a data scientist, political scientist, and co-founder of the data science startup <a href="http://www.popily.com/">Popily</a>. In addition, I co-host a weekly <a href="http://www.partiallyderivative.com/">data science podcast</a>. This is my active collection of 344 tutorials, code snippets, and posts on data science, statistics, and scientific programming. For more details, see <a href="https://github.com/chrisalbon/peripheral_brain">GitHub</a>.</p></div>
<h3>Small Projects</h3>
<div class='post-list'>
<ul>
<li><a href="projects/aisle_seat_probabilities.html">Calculating The Probability An Economy Class Seat Is An Aisle</a></li>
</ul>
</div>
<h3>Python</h3>
<div class='post-list'>
<h4 class='subtopic'>Basics</h4>
<ul>
<li><a href="python/module_basics.html">Module Basics</a></li>
<li><a href="python/lambda_functions.html">Lambda Functions</a></li>
<li><a href="python/list_comprehension.html">List Comprehension 1</a></li>
<li><a href="python/list_comprehension_2.html">List Comprehension 2</a></li>
<li><a href="python/list_operations.html">List Operations</a></li>
<li><a href="python/logical_operations.html">Logical Operations</a></li>
<li><a href="python/math_operations.html">Mathematical Operations</a></li>
<li><a href="python/apply_operations_over_items_in_lists.html">Apply Operations Over Items In A List</a></li>
<li><a href="python/applying_conditional_functions_to_list_items.html">Applying Conditional Functions To List Items</a></li>
<li><a href="python/applying_functions_to_list_items.html">Applying Functions To List Items</a></li>
<li><a href="python/arithmetic_basics.html">Basic Arithmetic</a></li>
<li><a href="python/assignment_operators.html">Assignment Operators</a></li>
<li><a href="python/testing_the_stack.html">Test Script</a></li>
<li><a href="python/while_statements.html">while Statement</a></li>
<li><a href="python/standard_object_types.html">Built-In Object Types</a></li>
<li><a href="python/string_formatting.html">String Formatting</a></li>
<li><a href="python/string_indexing.html">String Indexing</a></li>
<li><a href="python/string_operations.html">String Operations</a></li>
<li><a href="python/strings_to_datetime.html">Converting Strings To Datetime</a></li>
<li><a href="python/swapping_variable_values.html">Swapping variable values</a></li>
<li><a href="python/nesting_lists.html">Nesting Lists</a></li>
<li><a href="python/date_and_time_basics.html">Date And Time Basics</a></li>
<li><a href="python/dictionary_basics.html">Dictionary Basics</a></li>
<li><a href="python/enumerate_a_list.html">Enumerate A List</a></li>
<li><a href="python/escape_sequences.html">Escape Sequences</a></li>
<li><a href="python/example_data_wrangling_baby_names.html">Creating A List Of Potential Baby Names</a></li>
<li><a href="python/example_exploring_border_crossing_data.html">Wrangling DHS Border Crossing Data</a></li>
<li><a href="python/filter_items_in_list_with_filter.html">Selecting Items In A List With Filters</a></li>
<li><a href="python/flatten_list_of_lists.html">Flatten Lists Of Lists</a></li>
<li><a href="python/breaking_up_string_variables.html">Breaking Up String Variables</a></li>
<li><a href="python/built_in_object_types.html">Built-In Object Types</a></li>
<li><a href="python/creating_numpy_arrays.html">Creating Numpy Arrays</a></li>
<li><a href="python/create_list_from_dictionary_keys_and_values.html">Creating Lists From Dictionary Keys And Values</a></li>
<li><a href="python/iterate_ifelse_over_list.html">Iterate An Ifelse Over A List</a></li>
<li><a href="python/numpy_array_basic_operations.html">Basic Opeations With Numpy Array</a></li>
<li><a href="python/numpy_array_basics.html">Numpy Array Basics</a></li>
<li><a href="python/numpy_indexing_and_slicing.html">Indexing And Slicing Numpy Arrays</a></li>
<li><a href="python/for_loops.html">For Loop</a></li>
<li><a href="python/format_method_for_strings.html">The Format Method</a></li>
<li><a href="python/function_basics.html">Function Basics</a></li>
<li><a href="python/generating_random_numbers_with_numpy.html">Generating Random Numbers With Numpy</a></li>
<li><a href="python/recursive_functions.html">Recursive Functions</a></li>
<li><a href="python/regex_by_example.html">Regular Expression By Example</a></li>
<li><a href="python/regular_expressions_basics.html">Regular Expression Basics</a></li>
<li><a href="python/schedule_run_in_the_future.html">Scheduling Jobs In The Future</a></li>
<li><a href="python/if_and_if_else_statements.html">if and if else</a></li>
<li><a href="python/if_statement.html">if Statement</a></li>
<li><a href="python/indexing_and_slicing_numpy_arrays.html">Indexing And Slicing Numpy Arrays</a></li>
<li><a href="python/continue_and_break_loops.html">Continue And Break Loops</a></li>
<li><a href="python/try_except_finally.html">Try, Except, and Finally</a></li>
<li><a href="python/cartesian_product.html">Cartesian Product</a></li>
</ul>
<h4 class='subtopic'>Data Wrangling</h4>
<ul>
<li><a href="python/cleaning_text.html">Cleaning Text</a></li>
<li><a href="python/json_parse_file.html">Parse JSON File</a></li>
<li><a href="python/convert_categorical_to_numeric_naively.html">Convert A String Categorical Variable To A Numeric Variable Naively</a></li>
<li><a href="python/pandas_apply_operations_to_dataframes.html">Applying Operations Over pandas Dataframes</a></li>
<li><a href="python/pandas_apply_operations_to_groups.html">Apply Operations To Groups In Pandas</a></li>
<li><a href="python/pandas_binning_data.html">Binning Data In Pandas</a></li>
<li><a href="python/pandas_categorical_data.html">Categorical Data In Pandas</a></li>
<li><a href="python/pandas_convert_categorical_to_dummies.html">Convert A Categorical Variable Into Dummy Variables</a></li>
<li><a href="python/pandas_convert_numeric_categorical_to_numeric_with_patsy.html">Convert A Numeric Categorical Variable With Patsy</a></li>
<li><a href="python/pandas_convert_string_categorical_to_numeric_with_patsy.html">Convert A String Categorical Variable With Patsy</a></li>
<li><a href="python/pandas_convert_to_datetime.html">Convert A Variable To A Time Variable In Pandas</a></li>
<li><a href="python/pandas_create_column_using_conditional.html">Create a Column Based on a Conditional in pandas</a></li>
<li><a href="python/pandas_create_column_with_loop.html">Create A Pandas Column With A For Loop</a></li>
<li><a href="python/pandas_crosstabs.html">Crosstabs In Pandas</a></li>
<li><a href="python/pandas_data_structures.html">pandas Data Structures</a></li>
<li><a href="python/pandas_data_wrangling.html">Data Wrangling In Pandas</a></li>
<li><a href="python/pandas_dataframe_count_values.html">Count Values In Pandas Dataframe</a></li>
<li><a href="python/pandas_dataframe_descriptive_stats.html">Descriptive Statistics For pandas Dataframe</a></li>
<li><a href="python/pandas_dataframe_importing_csv.html">Loading A CSV Into Pandas</a></li>
<li><a href="python/pandas_dataframe_load_xls.html">Load Excel Spreadsheet As Pandas Dataframe</a></li>
<li><a href="python/pandas_dataframe_ranking_rows.html">Ranking Rows Of pandas Dataframes</a></li>
<li><a href="python/pandas_dataframe_reindexing.html">Reindexing pandas Series And Dataframes</a></li>
<li><a href="python/pandas_delete_duplicates.html">Delete Duplicates In Pandas</a></li>
<li><a href="python/pandas_drop_column_containing_certain_string.html">Drop A Column That Contains A Certain String In Pandas</a></li>
<li><a href="python/pandas_dropping_column_and_rows.html">Dropping Rows And Columns In pandas Dataframe</a></li>
<li><a href="python/pandas_example_dataframes.html">Simple Example Dataframe</a></li>
<li><a href="python/pandas_expand_cells_containing_lists.html">Expand Cells Containing Lists Into Their Own Variables In Pandas</a></li>
<li><a href="python/pandas_find_largest_value_in_column.html">Find Largest Value In A Dataframe Column</a></li>
<li><a href="python/pandas_find_unique_values.html">Find Unique Values In Pandas Dataframes</a></li>
<li><a href="python/pandas_group_rows_by.html">Grouping Rows In Pandas</a></li>
<li><a href="python/pandas_hierarchical_data.html">Hierarchical Data In Pandas</a></li>
<li><a href="python/pandas_import_html_table.html">Importing an HTML table into pandas</a></li>
<li><a href="python/pandas_index_select_and_filter.html">Index, Select, And Filter pandas Dataframes</a></li>
<li><a href="python/pandas_indexing_selecting.html">Indexing and Selecting Data With Pandas</a></li>
<li><a href="python/pandas_iterate_over_rows_of_multiple_columns.html">Iterating Through The Rows Of Multiple Columns In Pandas</a></li>
<li><a href="python/pandas_join_merge_dataframe.html">Join And Merge Pandas Dataframe</a></li>
<li><a href="python/pandas_list_comprehension.html">Using List Comprehensions With Pandas</a></li>
<li><a href="python/pandas_list_unique_values_in_column.html">List Unique Values In A Pandas Column</a></li>
<li><a href="python/pandas_long_to_wide.html">Pandas: Long To Wide Format</a></li>
<li><a href="python/pandas_lowercase_column_names.html">Lower Case Column Names In Pandas Dataframe</a></li>
<li><a href="python/pandas_make_new_columns_using_functions.html">Make New Columns Using Functions</a></li>
<li><a href="python/pandas_map_values_to_values.html">Map External Values To Dataframe Values in Pandas</a></li>
<li><a href="python/pandas_missing_data.html">Missing Data In Pandas Dataframe</a></li>
<li><a href="python/pandas_moving_average.html">Moving Averages In Pandas</a></li>
<li><a href="python/pandas_normalize_column.html">Normalize A Column In Pandas</a></li>
<li><a href="python/pandas_outliers.html">Dealing With Outliers In Pandas</a></li>
<li><a href="python/pandas_pivot_tables.html">Pivot Tables In Pandas</a></li>
<li><a href="python/pandas_regex_to_create_columns.html">Breaking Up A String Into Columns Using Regex In Pandas</a></li>
<li><a href="python/pandas_rename_multiple_columns.html">Rename Multiple Pandas Dataframe Column Names At Once</a></li>
<li><a href="python/pandas_replace_values.html">Replacing Values In Pandas</a></li>
<li><a href="python/pandas_resample_by_time.html">Resampling a Time Series in pandas</a></li>
<li><a href="python/pandas_sample_dataframe.html">Sample Rows Of A Dataframe In Pandas</a></li>
<li><a href="python/pandas_sampling_dataframe.html">Random Sampling Dataframe</a></li>
<li><a href="python/pandas_saving_dataframe_as_csv.html">Saving A Pandas Dataframe As a CSV</a></li>
<li><a href="python/pandas_search_column_for_value.html">Search A Pandas Column For A Value</a></li>
<li><a href="python/pandas_select_rows_containing_values.html">Select Rows That Have A Certain Value</a></li>
<li><a href="python/pandas_select_rows_multiple_filters.html">Select Rows With Multiple Filters</a></li>
<li><a href="python/pandas_select_rows_when_column_has_certain_values.html">Select Rows When Columns Contain Certain Values</a></li>
<li><a href="python/pandas_selecting_rows_on_conditions.html">Selecting Pandas DataFrame Rows Based On Conditions</a></li>
<li><a href="python/pandas_sorting_rows_dataframe.html">Sorting Rows Of pandas Dataframes</a></li>
<li><a href="python/pandas_split_lat_and_long_into_variables.html">Split Combined Lat/Long Coordinate Variables Into Seperate Variables In Pandas</a></li>
<li><a href="python/pandas_string_munging.html">String Munging In Dataframe</a></li>
<li><a href="python/pandas_time_series_basics.html">Pandas Time Series Basics</a></li></li>
<li><a href="python/pandas_transpose_dataframe.html">Transpose A Dataframe In Pandas</a></li>
</ul>
<h4 class='subtopic'>Data Visualization</h4>
<ul>
<li><a href="python/ggplot_area_plot.html">Draw a area plot in ggplot</a></li>
<li><a href="python/ggplot_draw_line.html">Draw a line in ggplot</a></li>
<li><a href="python/ggplot_histogram.html">Draw a histogram plot in ggplot</a></li>
<li><a href="python/ggplot_line_plot.html">Draw a line plot in ggplot</a></li>
<li><a href="python/ggplot_save_as_vector.html">Saving ggplot plots as vector</a></li>
<li><a href="python/ggplot_scatterplot.html">Scatterplots in ggplot</a></li>
<li><a href="python/set_the_color_of_a_matplotlib.html">Set The Color Of A Matplotlib Plot</a></li>
<li><a href="python/matplotlib_back_to_back_bar_plot.html">Back To Back Bar Plot In MatPlotLib</a></li>
<li><a href="python/matplotlib_bar_plot.html">Bar Plot In MatPlotLib</a></li>
<li><a href="python/matplotlib_grouped_bar_plot.html">Group Bar Plot In MatPlotLib</a></li>
<li><a href="python/matplotlib_histogram.html">Histograms In MatPlotLib</a></li>
<li><a href="python/matplotlib_map_your_google_data.html">Map Your Google Location History</a></li>
<li><a href="python/matplotlib_percentage_stacked_bar_plot.html">Stacked Percentage Bar Plot In MatPlotLib</a></li>
<li><a href="python/matplotlib_pie_chart.html">Pie Chart In MatPlotLib</a></li>
<li><a href="python/matplotlib_plot_points_on_map.html">Plot Points On A Map</a></li>
<li><a href="python/matplotlib_save_a_plot_as_vector.html">Save A Matplotlib Plot As A Vector</a></li>
<li><a href="python/matplotlib_scatterplot_from_pandas.html">Making A Matplotlib Scatterplot From A Pandas Dataframe</a></li>
<li><a href="python/matplotlib_simple_example.html">Matplotlib, A Simple Example</a></li>
<li><a href="python/matplotlib_simple_scatterplot.html">Scatterplot In MatPlotLib</a></li>
<li><a href="python/matplotlib_stacked_bar_plot.html">Stacked Bar Plot In MatPlotLib</a></li>
<li><a href="python/scipy_simple_clustering.html">Simple Clustering With SciPy</a></li>
<li><a href="python/seaborn_color_palettes.html">Color Palettes in Seaborn</a></li>
<li><a href="python/seaborn_pandas_timeseries_plot.html">Creating A Time Series Plot With Seaborne And Pandas</a></li>
<li><a href="python/seaborn_pretty_timeseries_plots.html">Make Pretty Time Series Plots With Seaborne</a></li>
<li><a href="python/seaborn_scatterplot.html">Creating Scatterplots with Seaborn</a></li>
<li><a href="python/pandas_with_seaborn.html">Using Seaborn To Visualize A Pandas Dataframe</a></li>
</ul>
<h4 class='subtopic'>Web Scraping</h4>
<ul>
<li><a href="python/beautiful_soup_drill_down.html">Drilling Down With Beautiful Soup</a></li>
<li><a href="python/beautiful_soup_html_basics.html">Beautiful Soup Basic HTML Scraping</a></li>
<li><a href="python/beautiful_soup_scrape_table.html">Scraping a HTML Table with Beauitful Soup</a></li>
<li><a href="python/beautiful_soup_scraping_into_pandas.html">Scraping And Parsing A Wikipedia List into Pandas</a></li>
</ul>
<h4 class='subtopic'>IPython</h4>
<ul>
<li><a href="python/ipython_display_image.html">View an image in iPython</a></li>
<li><a href="python/ipython_display_video.html">View an video in iPython</a></li>
<li><a href="python/ipython_run_script.html">Run A Python Script Inside IPython</a></li>
</ul>
<h4 class='subtopic'>Other</h4>
<ul>
<li><a href="python/csv_to_python_code.html">Convert A CSV Into Python Code To Recreate It</a></li>
<li><a href="python/data_structure_basics.html">Data Structure Basics</a></li>
<li><a href="python/dataset_prussian_horse_kicks.html">Prussian Horse Kick Data</a></li>
<li><a href="python/dataset_war_of_five_kings.html">Battle of Five Kings Dataset</a></li>
<li><a href="python/geocoding_and_reverse_geocoding.html">Geocoding And Reverse Geocoding</a></li>
<li><a href="python/brute_force_d20_simulator.html">Brute Force D20 Roll Simulator</a></li>
<li><a href="python/kolmogorov_smirnov_test.html">Kolmogorov Smirnov Test</a></li>
<li><a href="python/polynomial_fitting.html">Polynomial Fitting</a></li>
<li><a href="python/scipy_fitting_trendline.html">Finding A Trend Line Of Data</a></li>
</ul>
</div>
<h3>R</h3>
<div class='post-list'>
<ul>
<li><a href="rstats/2-way-frequency-table.html">Two Way Frequency Table</a></li>
<li><a href="rstats/2d-density-plot.html">2D Density Plot</a></li>
<li><a href="rstats/add-dates-to-a-date.html">Adding Time To A Date</a></li>
<li><a href="rstats/add-labels-to-bar-graph.html">Adding labels to a ggplot2 bar graph</a></li>
<li><a href="rstats/add-levels-to-factors.html">Adding Levels To A Factor</a></li>
<li><a href="rstats/annotating-plots.html">Annotating Plots</a></li>
<li><a href="rstats/apply-function-to-every-row.html">Apply A Function On Every Row Of A Dataframe</a></li>
<li><a href="rstats/apply-lapply-sapply.html">Using apply, sapply, and lapply</a></li>
<li><a href="rstats/apply-with-plyr.html">Advanced Applying With Plyr</a></li>
<li><a href="rstats/arithmetic.html">Basic Math Functions In R</a></li>
<li><a href="rstats/back-to-back-histogram.html">Making A Back To Back Histogram</a></li>
<li><a href="rstats/balloon-plot.html">Balloon Plot</a></li>
<li><a href="rstats/bar-charts.html">Bar Charts</a></li>
<li><a href="rstats/bar-graph.html">Bar Graph</a></li>
<li><a href="rstats/barplot-two-sets-of-data.html">Bar Graph Of Two Sets Of Data</a></li>
<li><a href="rstats/benchmarking.html">Benchmarking R Speed</a></li>
<li><a href="rstats/boxplots.html">Boxplots</a></li>
<li><a href="rstats/calculate-moving-average.html">Calculate A Moving Average</a></li>
<li><a href="rstats/categorical-to-continous.html">Converting Categorical Variables To Continuous</a></li>
<li><a href="rstats/change-barplot-bar-width.html">Change The Barplot Bar Width</a></li>
<li><a href="rstats/change-object-class.html">Change The Class Of An Object</a></li>
<li><a href="rstats/character-dates.html">Character Dates</a></li>
<li><a href="rstats/check-if-variable-exists.html">Check To See If A Variable Exists</a></li>
<li><a href="rstats/circle-plot.html">Circle Plot</a></li>
<li><a href="rstats/classes.html">Classes</a></li>
<li><a href="rstats/cleaning-gender.html">Cleaning Up Gender</a></li>
<li><a href="rstats/cleaning-strings.html">Cleaning Strings</a></li>
<li><a href="rstats/cleveland-plot.html">Cleveland Plot</a></li>
<li><a href="rstats/color-boxplot-outliers.html">Coloring Boxplot Outliers</a></li>
<li><a href="rstats/combining-factors.html">Combining Factors</a></li>
<li><a href="rstats/comma-seperate-a-string.html">Comma Seperate A String</a></li>
<li><a href="rstats/conditional.html">Conditional execution</a></li>
<li><a href="rstats/continous-to-categorical.html">Converting Continous Variables To Categorical Variables</a></li>
<li><a href="rstats/convert-between-wide-and-long.html">Converting Between Wide And Long Form Data</a></li>
<li><a href="rstats/convert-list-of-dfs-into-one-df.html">Converting List Of Dataframes Into A Single Dataframe</a></li>
<li><a href="rstats/convert-strings-to-objects.html">Convert Strings To Objects</a></li>
<li><a href="rstats/count-number-elements.html">Count The Number Of Times X Appears In A Vector</a></li>
<li><a href="rstats/crosstabs.html">Crosstabs</a></li>
<li><a href="rstats/cutting-up-data.html">Cutting Up Data</a></li>
<li><a href="rstats/data-types.html">Data Types</a></li>
<li><a href="rstats/dataframes.html">Data Frames</a></li>
<li><a href="rstats/datasets.html">Datasets</a></li>
<li><a href="rstats/date-sequences.html">Difference Between Two Date-Times</a></li>
<li><a href="rstats/density-plot.html">Density Curve Plot</a></li>
<li><a href="rstats/difference-between-two-dates.html">Difference Between Two Date-Times</a></li>
<li><a href="rstats/dot-plot.html">Dot Plot (Wilkinson Plot)</a></li>
<li><a href="rstats/drop-columns-from-dataframe.html">Drop Columns From Dataframe</a></li>
<li><a href="rstats/drop-residual-factors.html">Drop Residual Factors</a></li>
<li><a href="rstats/element-names.html">Element Names</a></li>
<li><a href="rstats/expand-counts-into-dataframe.html">Expand A Table Of Counts Into A Dataframe</a></li>
<li><a href="rstats/exponents.html">Exponents</a></li>
<li><a href="rstats/faceting.html">Faceting in ggplot2</a></li>
<li><a href="rstats/factors.html">Factors</a></li>
<li><a href="rstats/file-paths.html">File Paths</a></li>
<li><a href="rstats/find-a-variables-class.html">Classes</a></li>
<li><a href="rstats/find-and-replace.html">Find And Replace</a></li>
<li><a href="rstats/find-index-of-first-values.html">Finding the location (the index) of the first instance of values in a vector</a></li>
<li><a href="rstats/find-most-common-element.html">Finding the most common element</a></li>
<li><a href="rstats/find-objects-variables-functions.html">apropos functions finds objects and functions</a></li>
<li><a href="rstats/find-unique-elements.html">Find Unique Elements In Objects</a></li>
<li><a href="rstats/flow-control.html">Flow Control</a></li>
<li><a href="rstats/for-loop.html">For Loops</a></li>
<li><a href="rstats/frequency-polygon-plot.html">Frequency Polygon Plot</a></li>
<li><a href="rstats/gantt-chart.html">Gantt Charts</a></li>
<li><a href="rstats/ggplot2-basic-examples.html">Basic ggplot2 examples</a></li>
<li><a href="rstats/heatmap-for-factors.html">Heatmap For Factors</a></li>
<li><a href="rstats/high-res-plots.html">Create High-Res Plots In R</a></li>
<li><a href="rstats/hills-and-valleys-chart.html">Hills And Valley Bar Chart</a></li>
<li><a href="rstats/histogram.html">Histogram</a></li>
<li><a href="rstats/histograms-and-density-plots.html">Histograms and Density Plots</a></li>
<li><a href="rstats/ifelse.html">Using ifelse</a></li>
<li><a href="rstats/import-data.html">Importing Baltimore's 2010 Monthly Crime Data</a></li>
<li><a href="rstats/import-json.html">Importing a JSON file into R</a></li>
<li><a href="rstats/import-xml.html">Import XML</a></li>
<li><a href="rstats/importing-csv-and-delimited-data.html">Importing CSV and Delimited Data</a></li>
<li><a href="rstats/indexing-tricks.html">Indexing Tricks</a></li>
<li><a href="rstats/indexing.html">Indexing</a></li>
<li><a href="rstats/inner-outter-right-left-join.html">Inner, Outer, Right, And Left Joins</a></li>
<li><a href="rstats/installing-and-loading-packages.html">Installing and loading packages</a></li>
<li><a href="rstats/jitterplot.html">Jitterplot</a></li>
<li><a href="rstats/line-and-path-plots.html">Line and Path Plots</a></li>
<li><a href="rstats/line-graph.html">Line Graph</a></li>
<li><a href="rstats/line-plot-with-multiple-lines.html">Line Plot With Multiple Lines</a></li>
<li><a href="rstats/line-plot-with-points.html">Plot With Both Lines And Poiints</a></li>
<li><a href="rstats/line-plot.html">ggplot2 line plot</a></li>
<li><a href="rstats/list-indexing.html">Indexing Lists</a></li>
<li><a href="rstats/list-to-dataframe.html">Convert A List Into A Dataframe</a></li>
<li><a href="rstats/lists.html">Lists</a></li>
<li><a href="rstats/loops-with-lists.html">Loops With Lists</a></li>
<li><a href="rstats/loops.html">Loops</a></li>
<li><a href="rstats/managing-data-frames.html">Managing Data Frames</a></li>
<li><a href="rstats/manipulate-character-strings.html">Manipulating Character Strings (i.e. text)</a></li>
<li><a href="rstats/max-columns-value.html">Find Which Column Has The Greatest Value In Each Row</a></li>
<li><a href="rstats/merge-data-frame.html">Merge Data Frames</a></li>
<li><a href="rstats/missing-data.html">Missing values</a></li>
<li><a href="rstats/missing-obs.html">Removing Missing Observations</a></li>
<li><a href="rstats/names.html">Extracting Information From Objects Using Names()</a></li>
<li><a href="rstats/normality-test.html">Normality Test</a></li>
<li><a href="rstats/number-of-google-search-results.html">Find Approximate Number Of Google Search Results For A String</a></li>
<li><a href="rstats/objects-101.html">Object Basics</a></li>
<li><a href="rstats/ordered-factors.html">Ordered Factors</a></li>
<li><a href="rstats/overlapping-histograms.html">Overlapping Histrograms</a></li>
<li><a href="rstats/parsing-dates.html">Parsing Dates</a></li>
<li><a href="rstats/password-generator.html">Password Generator</a></li>
<li><a href="rstats/pie-chart.html">Pie Chart</a></li>
<li><a href="rstats/plots-on-map.html">Plot Points On A Map</a></li>
<li><a href="rstats/pretty-numbers.html">Making Pretty Numbers with prettyNum</a></li>
<li><a href="rstats/proportion-table.html">Proporton Table</a></li>
<li><a href="rstats/proportional-stacked-bar-graph.html">Proportional Stacked Bar Graph</a></li>
<li><a href="rstats/r-basics.html">Getting Familiar With R</a></li>
<li><a href="rstats/racetrack-plot.html">Racetrack Plot</a></li>
<li><a href="rstats/radial-plot.html">Radial Plot</a></li>
<li><a href="rstats/random-numbers.html">Random Numbers</a></li>
<li><a href="rstats/remote-variable.html">Removing Variables</a></li>
<li><a href="rstats/remove-duplicate-rows.html">Remove Duplicate Rows</a></li>
<li><a href="rstats/removing-missing-obs.html">Removing Observations In Data Frames With Missing Data</a></li>
<li><a href="rstats/rename-filesnames.html">Renaming Filenames</a></li>
<li><a href="rstats/reorder-columns.html">Reorder Columns</a></li>
<li><a href="rstats/replacing-data.html">Replacing Data</a></li>
<li><a href="rstats/replacing-factor-names.html">Replacing Factor Names Using Match</a></li>
<li><a href="rstats/replication-loops.html">Loops With Replicate</a></li>
<li><a href="rstats/rounding.html">Rounding Numbers</a></li>
<li><a href="rstats/rugplot.html">Rug Plot</a></li>
<li><a href="rstats/sampling-a-dataframe.html">Getting A Sample Of Random Rows From A Dataframe</a></li>
<li><a href="rstats/sampling.html">Sampling in R</a></li>
<li><a href="rstats/scatterplot-trend-line.html">Smooth A Scatterplot Trend Line</a></li>
<li><a href="rstats/scatterplot-two-sets-of-data.html">Scatter plot two sets of data with smooth lines</a></li>
<li><a href="rstats/scatterplot-with-ellipses-by-group.html">Plot Ellipses With Scatterplot</a></li>
<li><a href="rstats/scatterplot-with-point-labels.html">Scatterplot With Point's Labelled</a></li>
<li><a href="rstats/scatterplot-with-trendline.html">Scatterplot With Trend Line</a></li>
<li><a href="rstats/scatterplot.html">Scatter Plot (Basic)</a></li>
<li><a href="rstats/scatterplots-ggplot2.html">Scatterplots using ggplot2</a></li>
<li><a href="rstats/scraping-webpages.html">Scraping Web Pages</a></li>
<li><a href="rstats/select-data-according-to-patterns.html">Selecting Data According To Patterns</a></li>
<li><a href="rstats/select-rows-by-logical-test.html">Select Rows By Logical Test</a></li>
<li><a href="rstats/sequences.html">Create a sequences of numbers</a></li>
<li><a href="rstats/simple-venn-diagram.html">Simple Venn Diagram</a></li>
<li><a href="rstats/simulated-data-from-norm-distributions.html">Simulated Data From Normal Distribution Function</a></li>
<li><a href="rstats/sizeplot.html">Size Plot</a></li>
<li><a href="rstats/sort-dataframe-by-columns.html">Sorting A Data Frame By A Single Column</a></li>
<li><a href="rstats/sort-dataframe-columns.html">Sorting Columns Of A Data Frame</a></li>
<li><a href="rstats/sorting-dataframes.html">Sorting Data Frames</a></li>
<li><a href="rstats/special-characters-in-strings.html">Special Characters In Strings</a></li>
<li><a href="rstats/split-apply-combine.html">Split, Apply, Combine</a></li>
<li><a href="rstats/split-apply-recombine.html">Split, Apply, Recombine</a></li>
<li><a href="rstats/split-data-by-factor-levels.html">Data can be split up by levels of a factor</a></li>
<li><a href="rstats/srs-of-rows.html">Simple Random Sampling Of Rows</a></li>
<li><a href="rstats/stacked-area-graph.html">Stacked Area Graph In ggplot2</a></li>
<li><a href="rstats/stacked-area-plot.html">Stacked Area Plot</a></li>
<li><a href="rstats/strings-to-logical.html">Converting Strings To Logical</a></li>
<li><a href="rstats/strings.html">Strings</a></li>
<li><a href="rstats/styling-axes.html">Styling Axes</a></li>
<li><a href="rstats/subsets.html">Subsetting Data</a></li>
<li><a href="rstats/summarize.html">Summarize A Variable</a></li>
<li><a href="rstats/sweep-over-a-df.html">Sweep Over An Dataframe</a></li>
<li><a href="rstats/switch.html">Switch Function</a></li>
<li><a href="rstats/test-if-number-is-odd-or-even.html">Testing if a number is odd or even</a></li>
<li><a href="rstats/thematic-maps.html">Thematic Map</a></li>
<li><a href="rstats/time-and-dates.html">Time and Dates in R</a></li>
<li><a href="rstats/truncate-a-string.html">Truncate A String</a></li>
<li><a href="rstats/tuftes-horizontal-bar-lines.html">Tufte's Horizontal Bar Lines</a></li>
<li><a href="rstats/upper-and-lower-case.html">Changing Uppercase And Lowercase</a></li>
<li><a href="rstats/violin-plots.html">Violin Plots</a></li>
</ul>
</div>
<h3>Regex</h3>
<div class='post-list'>
<ul>
<li><a href="regex/match_a_symbol.html">Match A Symbol</a></li>
<li><a href="regex/match_a_unicode_character.html">Match A Unicode Character</a></li>
<li><a href="regex/match_a_word.html">Match A Word</a></li>
<li><a href="regex/match_any_character.html">Match Any Character</a></li>
<li><a href="regex/match_any_of_a_list_of_symbols.html">Match Any Of A List Of Characters</a></li>
<li><a href="regex/match_any_of_series_of_characters.html">Match Any Of A Series Of Options</a></li>
<li><a href="regex/match_any_of_series_of_words.html">Match Any Of A Series Of Words</a></li>
<li><a href="regex/match_dates.html">Match Dates</a></li>
<li><a href="regex/match_email_addresses.html">Match Email Addresses</a></li>
<li><a href="regex/match_exact_text.html">Match Exact Text</a></li>
<li><a href="regex/match_integers_of_any_length.html">Match Integers Of Any Length</a></li>
<li><a href="regex/match_text_between_html_tags.html">Match Text Between HTML Tags</a></li>
<li><a href="regex/match_times.html">Match Times</a></li>
<li><a href="regex/match_urls.html">Match URLs</a></li>
<li><a href="regex/match_us_phone_numbers.html">Match US Phone Numbers</a></li>
<li><a href="regex/match_us_uk_spellings.html">Match US and UK Spellings</a></li>
<li><a href="regex/match_words_with_certain_ending.html">Match Words With A Certain Ending</a></li>
<li><a href="regex/match_zip_codes.html">Match ZIP Codes</a></li>
</ul>
</div>
<h3>Bash</h3>
<div class='post-list'>
<ul>
<!-- <li><a href="regex/match_zip_codes.html">Convert A IPython Notebook To Basic HTML</a></li>
<li><a href="regex/match_zip_codes.html">Convert All IPython Notebooks In A Folder To Basic HTML</a></li> -->
<li><a href="bash/list_all_files_and_folders_in_a_directory.html">List All Files And Folders In A Directory</a></li>
<li><a href="bash/covert_all_ipynb_to_html.html">Convert All IPython Notesbooks In A Folder To Basic HTML Using Bash</a></li>
<li><a href="bash/open_ipython_nb_in_nondefault_browser.html">Load IPython Notebook In Non-Default Browser</a></li>
</ul>
</div>
<h3>SQL</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Mathematics</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Probability</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Frequentist Statistics</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Bayesian Statistics</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Machine Learning</h3>
<div class='post-list'>
<ul>
<li>None</li>
</ul>
</div>
<h3>Miscellaneous</h3>
<div class='post-list'>
<ul>
<li><a href="miscellaneous/about.html">About Chris</a></li>
<li><a href="miscellaneous/test.html">Test Page</a></li>
</ul>
</div>
</div>
<!-- start of footer section -->
</div>
</main>
</div>
<footer role="contentinfo">
Copyright © Chris Albon, <time datetime="2015">2015</time>
</footer>
<!-- Load Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-66582-32', 'auto');
ga('send', 'pageview');
</script>
<!-- End of Google Analytics -->
<!-- Loading mathjax macro -->
<!-- Load mathjax -->
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
<!-- MathJax configuration -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// Center justify equations in code and markdown cells. Elsewhere
// we use CSS to left justify single line equations in code cells.
displayAlign: 'center',
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}},
linebreaks: { automatic: true }
}
});
</script>
<!-- End of mathjax configuration -->
</body>
</html>