> table = r.table(wordsvector) The table function returns a _contingency table_ object, which rpy tries to unsuccessfully convert into a numpy array.
See if this returns something more workable: rObj = with_mode(NO_CONVERSION, r.table)(words) aHash = {} [aHash.update(i) for i in rObj] print aHash > filecontent = r.tolower(filecontent) > words = r.strsplit(filecontent, " ") Also, you should probably use python to do this instead making the trip through R: filecontent = filecontent.lower() words = filecontents.split(" ") Mark ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list