FIND DATA: By Author | Journal Archives | Sites   ANALYZE DATA: Help with R | Stata | Excel   WHAT'S NEW? US Politics | Int'l Relations | Law & Courts
   FIND DATA: By Author | Journal | Sites   WHAT'S NEW? US Politics | IR | Law & Courts
Copy HTML to Run R Code Example
About This Page
This page displays HTML code you can use to embed a live demonstration of the R Statistics Program for political science research. These live online examples are easy to use and are great for teaching online classes.
Copy HTML Code for "Collapsing Variable into Roughly Equal-Sized Groups" Demo
See This R Demo | See More R Demos
Copy HTML Code for "Collapsing Variable into Roughly Equal-Sized Groups" Demo
See This R Demo | See More R Demos
Copy HTML Code for "Collapsing Variable into Roughly Equal-Sized Groups" Demo
See This R Demo | See More R Demos
<!-- The Start of collapseEqualSizedGroups.txt R Demo Code -->
<!-- Copy and paste this snippet into your web page  -->
<!-- Modify border, width, and height attributes of the iframe as necessary -->

<iframe border=0 width=100% height=1200 src="https://rdrr.io/snippets/embed/?code=library%28poliscidata%29%0A%0A%23+Collapsing+numeric+variables+into+roughly+equal-sized+groups+%28quantiles%29%0Adescribe%28world%24pop_urban%29%0Aworld%24pop_urban.5cat+%3D+cut2%28world%24pop_urban%2C+g%3D5%29%0A%0A%23+the+next+two+lines+not+strictly+necessary+but+should+check+our+work%0Alevels%28world%24pop_urban.5cat%29%0Afreq%28world%24pop_urban.5cat%2C+plot%3DF%29%0A"></iframe>

<!-- End of collapseEqualSizedGroups.txt R Demo Code -->