{"id":1821,"date":"2020-08-17T03:56:15","date_gmt":"2020-08-17T03:56:15","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1821"},"modified":"2020-08-17T12:49:29","modified_gmt":"2020-08-17T12:49:29","slug":"tidyx-23-for-loops-functions","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-23-for-loops-functions\/","title":{"rendered":"TidyX 23: for loops &#038; functions"},"content":{"rendered":"<p>This week, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I delve into our mailbag and answer a viewer&#8217;s question about writing for loops and custom functions. To explain these two topics we walk through our script on how to optimize the exponent in Bill James&#8217; Pythagorean Win Formula for baseball.<\/p>\n<p>To watch our screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=6qjUvHZmj94&amp;feature=youtu.be\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To get our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/023-Mailbag_and_Expected_Wins\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>If you have any questions or topics you&#8217;d like to have explained, feel free to reach out to us a tidy.explained@gmail.com or connect with us on Twitter at <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/tidy_explained\">@tidy_explained<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, Ellis Hughes and I delve into our mailbag and answer a viewer&#8217;s question about writing for loops and custom functions. To explain these two topics we walk through our script on how to optimize the exponent in Bill James&#8217; Pythagorean Win Formula for baseball. To watch our screen cast, CLICK HERE. To get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1821","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=1821"}],"version-history":[{"count":2,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1821\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1821\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}