[{"data":1,"prerenderedAt":320},["ShallowReactive",2],{"/sr/runresult":3,"/sr/runresult-surround":309},{"id":4,"title":5,"body":6,"description":276,"extension":277,"meta":278,"navigation":295,"path":305,"seo":306,"stem":307,"__hash__":308},"content/sr/runresult.md","Simple R Extension Dictionary: runresult",{"type":7,"value":8,"toc":265},"minimark",[9],[10,11,15,16,15,26,47,56,59,62,102,109,262],"div",{"className":12,"id":14},[13],"dict_entry","runresult","\n  ",[17,18,20,21,15],"h3",{"id":19},"srrunresult","\n    ",[22,23,25],"a",{"href":24},"#runresult","sr:runresult",[27,28,32],"h4",{"id":29,"className":30},"srrunresult-r-expression",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----srrunresult-r-expression--",[38,39,42,43],"span",{"className":40},[41],"prim_example","sr:runresult ",[44,45,46],"i",{},"r-expression",[48,49,50,51,55],"p",{},"Evaluates the given R expression and reports the result.\n",[52,53,54],"code",{},"rs:runresult"," attempts to convert from R data types to NetLogo data types.",[48,57,58],{},"Numbers, strings, and booleans convert as you would expect, except for outliers\nlike Infinity and NaN which will be converted into the strings ‘Inf’ and ‘NaN’,\nrespectively.",[48,60,61],{},"R vectors and R lists will be converted to NetLogo lists. NA values will be\nconverted into the string ‘NA’.",[48,63,64,65,68,69,88,89,101],{},"R matrices will be flattened into one-dimensional lists using column-major order.\nIf you want to convert a matrix into a list of lists before sending it to NetLogo,\nuse the R ",[52,66,67],{},"asplit"," command.\nTo convert into a list of column lists, use ",[52,70,71,76,77,81,82,87],{},[38,72,67],{"className":73},[74,75],"token","variable","(",[38,78,80],{"className":79},[74,75],"\u003Cmatrix>,"," ",[38,83,86],{"className":84},[74,85],"number","1",")",";\nfor a list of row lists, use ",[52,90,91,76,94,81,97,87],{},[38,92,67],{"className":93},[74,75],[38,95,80],{"className":96},[74,75],[38,98,100],{"className":99},[74,85],"2",".",[48,103,104,105,108],{},"An R DataFrame will be converted into a list of lists, where the first item in\neach sublist is the name of the column and the second item is a list containing\nall that row data.\nFor example, the first 6 rows of the ",[52,106,107],{},"iris"," dataset will be converted into NetLogo like so:",[110,111,112],"pre",{},[52,113,114,115,118,119,124,125,81,129,81,133,81,137,81,141,81,145,149,150,118,152,124,156,81,160,81,164,81,168,81,172,81,176,149,180,118,182,124,186,81,190,81,193,81,197,81,201,81,204,149,208,118,210,124,214,81,218,81,221,81,224,81,227,81,230,149,234,118,236,124,240,81,244,81,247,81,250,81,253,81,256,149,259,261],{},"[",[116,117],"br",{},"  [",[38,120,123],{"className":121},[74,122],"string","\"Sepal.Length\""," [",[38,126,128],{"className":127},[74,85],"5.1",[38,130,132],{"className":131},[74,85],"4.9",[38,134,136],{"className":135},[74,85],"4.7",[38,138,140],{"className":139},[74,85],"4.6",[38,142,144],{"className":143},[74,85],"5",[38,146,148],{"className":147},[74,85],"5.4","]]",[116,151],{},[38,153,155],{"className":154},[74,122],"\"Sepal.Width\"",[38,157,159],{"className":158},[74,85],"3.5",[38,161,163],{"className":162},[74,85],"3",[38,165,167],{"className":166},[74,85],"3.2",[38,169,171],{"className":170},[74,85],"3.1",[38,173,175],{"className":174},[74,85],"3.6",[38,177,179],{"className":178},[74,85],"3.9",[116,181],{},[38,183,185],{"className":184},[74,122],"\"Petal.Length\"",[38,187,189],{"className":188},[74,85],"1.4",[38,191,189],{"className":192},[74,85],[38,194,196],{"className":195},[74,85],"1.3",[38,198,200],{"className":199},[74,85],"1.5",[38,202,189],{"className":203},[74,85],[38,205,207],{"className":206},[74,85],"1.7",[116,209],{},[38,211,213],{"className":212},[74,122],"\"Petal.Width\"",[38,215,217],{"className":216},[74,85],"0.2",[38,219,217],{"className":220},[74,85],[38,222,217],{"className":223},[74,85],[38,225,217],{"className":226},[74,85],[38,228,217],{"className":229},[74,85],[38,231,233],{"className":232},[74,85],"0.4",[116,235],{},[38,237,239],{"className":238},[74,122],"\"Species\"",[38,241,243],{"className":242},[74,122],"\"setosa\"",[38,245,243],{"className":246},[74,122],[38,248,243],{"className":249},[74,122],[38,251,243],{"className":252},[74,122],[38,254,243],{"className":255},[74,122],[38,257,243],{"className":258},[74,122],[116,260],{},"]",[48,263,264],{},"Other objects will be converted to a string representation if possible and and may throw\nan error if not.",{"title":266,"searchDepth":267,"depth":268,"links":269},"",5,3,[270],{"id":19,"depth":268,"text":271,"children":272},"\n    sr:runresult\n  ",[273],{"id":29,"depth":274,"text":275},4,"\n    sr:runresult r-expression\n  ","Documentation for the runresult primitive.","md",{"source":279,"metadataOutputPath":280,"projectConfig":281,"language":288,"inheritFrom":296,"output":295,"version":282,"layout":297,"dictionaryDisplayName":298,"dictionaryHomeDirectory":299,"indexFileURI":300,"currentItemId":14,"currentItemLabel":25,"primRoot":301,"icon":302,"extensionName":303,"assetsRoot":283},"../../external/extensions/sr/sr/runresult.md","content/sr/runresult.metadata.yaml",{"version":282,"projectRoot":101,"scanRoot":283,"outputRoot":284,"defaults":285,"engine":291,"partials":292,"dedupeIdenticalDiskWrites":295},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/sr","content",{"inheritFrom":286,"language":288,"output":289,"extension":277,"title":290,"version":282},[287],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":293,"extensions":294},[101],[291,277],true,[287],"catalog","Simple R Extension Dictionary","/sr.html","/_index/extensions/sr.txt","sr","logos:r-lang",{"shortName":301,"fullName":304},"Simple R","/sr/runresult",{"title":5,"description":276},"sr/runresult","WyxkjnRcgtau_ks6ih_QGJhKZUjgiqZwmksL6Y8xOWE",[310,315],{"title":311,"path":312,"stem":313,"description":314},"Simple R Extension Dictionary: run","/sr/run","sr/run","Documentation for the run primitive.",{"title":316,"path":317,"stem":318,"description":319},"Simple R Extension Dictionary: set","/sr/set","sr/set","Documentation for the set primitive.",1777657900904]