Copy HTML to Run R Code ExampleAbout 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.
<!-- The Start of descriptiveStatsNominal.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=%23+Descriptive+Statistics+for+Nominal-Level+Variable%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0Alibrary%28%22poliscidata%22%29%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0A%23+Nominal-level+variables+categorize+observations+into+different+groups.%0A%23+The+zodiac+variable+in+the+GSS+is+an+example+of+a+nominal-level+variable.%0A%23+Because+it+is+a+low+level+of+measurement%2C+the+tools+for+description+are+limited.%0A%0Acat%28%22Frequency+Distribution+Table%3A%5Cn%22%29%0AfreqC%28gss%24zodiac%2C+gss%24wtss%29%0A%0Acat%28%22%5Cn%5CnMode%3A%5Cn%22%29%0Awtd.mode%28gss%24zodiac%2C+gss%24wtss%29%0A"></iframe>
<!-- End of descriptiveStatsNominal.txt R Demo Code -->