How to push a named value to a vector in R's cpp11?

Within R's a package cpp11, a named value is pushed to a list as follows:

writable::list a;

a.push_back("my_name"_nm = 1);

How to do the same if "my_name" was stored in the string variable?



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept