A simple question that I can not find the answer to. How to get R object attribute in rpy2? For example, what is equivalent to the R-code: m$eval in rpy2?
m$eval
For lists, R $ equivalent to [[ with a vector of length 1: foo$bar equivalent to foo[["bar"]] . With rpy2, it will be foo.rx2('bar') or foo[foo.index('bar')] (see extracting an element, style R ).
$
[[
foo$bar
foo[["bar"]]
foo.rx2('bar')
foo[foo.index('bar')]
Source: https://habr.com/ru/post/1486294/More articles:XMLHTTP request passing a JSON string as source data - ajaxRetain field value of nested form after failed validation - ruby โโ| fooobar.comIs it possible to use the Mongoose query builder to simply return an array of pipelined aggregates and not start the query? - mongodbhow to pass tr1 / array to std :: string? - c ++Checking for an element in multi-user mode (django) - pythonHow to allocate memory for an Android simulator over 768M in windows? - androidHow to calculate the battery level at a given time in Android - androidNeed an efficient way to turn (Seq Data.Text) into Data.Text - haskellIntelliJ mvn package behaves differently than on the command line - javaKnowing if a Google Plus person has a real shot - google-plusAll Articles