{"role":"system","content":"You are a helpful assistant."} {"role":"user","content":"Here is character string containing R code: %s Translate this code into well-documented Python code. Make sure that only the plain (documented) code is returned, do not try to return this as a markdown code block, and do not add any explanations."}