Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Created January 28, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwebb/21623d4fdca3c99c40d01482258e78d3 to your computer and use it in GitHub Desktop.
Save kenwebb/21623d4fdca3c99c40d01482258e78d3 to your computer and use it in GitHub Desktop.
Integrating Python and R
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Sun Jan 28 2018 13:24:05 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Integrating Python and R
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: 21623d4fdca3c99c40d01482258e78d3
Keywords:
My Notes
--------
January 28, 2018
References
----------
(1) https://www.r-bloggers.com/integrating-python-and-r-into-a-data-analysis-pipeline-part-1/
) http://www.pybloggers.com/2015/10/integrating-python-and-r-into-a-data-analysis-pipeline-part-1/
Integrating Python and R into a Data Analysis Pipeline – Part 1
October 7, 2015, By Mango Blogger
(2) http://www.pybloggers.com/2015/10/integrating-python-and-r-part-ii-executing-r-from-python-and-vice-versa/
(3) http://www.pybloggers.com/2015/12/integrating-python-and-r-part-iii-an-extended-example/
) https://github.com/MangoTheCat/NewsArticleClustering
(4) https://blog.rstudio.com/2016/03/29/feather/
Feather: A Fast On-Disk Format for Data Frames for R and Python, powered by Apache Arrow
Hadley Wickham, 2016-03-29
Feather is a fast, lightweight, and easy-to-use binary file format for storing data frames.
(5) https://opendatascience.com/blog/integrating-python-and-r/
(6) https://www.quora.com/How-can-I-integrate-R-and-Python?share=1
(7) search: interface between python and r
(8) https://code.likeagirl.io/walking-the-python-r-bridge-66b63bab0fbd
]]></Notes>
<_-.XholonClass>
<!-- domain objects -->
<PhysicalSystem/>
<Block/>
<Brick/>
<!-- quantities -->
<Height superClass="Quantity"/>
</_-.XholonClass>
<xholonClassDetails>
<Block>
<port name="height" connector="Height"/>
</Block>
</xholonClassDetails>
<PhysicalSystem>
<Block>
<Height>0.1 m</Height>
</Block>
<Brick multiplicity="2"/>
</PhysicalSystem>
<Blockbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var a = 123;
var b = 456;
var c = a * b;
if (console) {
console.log(c);
}
]]></Blockbehavior>
<Heightbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var myHeight, testing;
var beh = {
postConfigure: function() {
testing = Math.floor(Math.random() * 10);
myHeight = this.cnode.parent();
},
act: function() {
myHeight.println(this.toString());
},
toString: function() {
return "testing:" + testing;
}
}
]]></Heightbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
$wnd.xh.Brickbehavior = function Brickbehavior() {}
$wnd.xh.Brickbehavior.prototype.postConfigure = function() {
this.brick = this.cnode.parent();
this.iam = " red brick";
};
$wnd.xh.Brickbehavior.prototype.act = function() {
this.brick.println("I am a" + this.iam);
};
]]></Brickbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
console.log("I'm another brick behavior");
]]></Brickbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="PhysicalSystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment