ast
stringlengths
16
28.2M
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){summary.foldermtg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i.vertices}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){classes}<LSEP>[argument 1; litteral](str){description}<LSEP>[argument 2; litteral](str){features}<LSEP>[argument 3; litteral](str){topology}<LSEP>[argument 4; litteral](str){coordinates}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LSEP>[](symbol){i.vertices}<LEND>[](symbol){summary}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){value}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){verboseApply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){f}<LSEP>[](symbol){...}<LSEP>[](symbol){.mc}<LSEP>[](symbol){.mapper}<LSEP>[](symbol){.bar}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.element}<LSEP>[](symbol){.bar}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){none}<LSEP>[argument 1; litteral](str){.}<LSEP>[argument 2; litteral](str){bar}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){.mc}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.mc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){initStatusBar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LSEP>[](symbol){step}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pb}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){progress}<LSEP>[](symbol){progress_bar}<LEND>[](symbol){new}<LEND>[](symbol){n}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pb}<LSEP>[](symbol){tick}<LEND>[](symbol){step}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){bar}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){.bar}<LSEP>[argument 1; litteral](str){none}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LSEP>[body; litteral](NULL){NULL}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){.bar}<LSEP>[argument 1; litteral](str){.}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){.}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){.bar}<LSEP>[argument 1; litteral](str){bar}<LEND>[true branch; call](){}<LSEP>[](symbol){initStatusBar}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[](symbol){.mc}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fun}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){bar}<LEND>[](symbol){res}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){as.function}<LSEP>[](symbol){.mapper}<LEND>[](symbol){x}<LSEP>[](symbol){fun}<LSEP>[](symbol){...}<LSEP>[](symbol){.mc}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.dist.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){plot}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){range}<LSEP>[](symbol){binary}<LSEP>[](symbol){p}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){reshape2}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){veganmethod}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){bray}<LSEP>[argument 1; litteral](str){kulczynski}<LSEP>[argument 2; litteral](str){jaccard}<LSEP>[argument 3; litteral](str){gower}<LSEP>[argument 4; litteral](str){morisita}<LSEP>[argument 5; litteral](str){horn}<LSEP>[argument 6; litteral](str){mountford}<LSEP>[argument 7; litteral](str){raup}<LSEP>[argument 8; litteral](str){binomial}<LSEP>[argument 9; litteral](str){chao}<LSEP>[argument 10; litteral](str){cao}<LSEP>[argument 11; litteral](str){mahalanobis}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){distmethod}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){euclidean}<LSEP>[argument 1; litteral](str){maximum}<LSEP>[argument 2; litteral](str){manhattan}<LSEP>[argument 3; litteral](str){canberra}<LSEP>[argument 4; litteral](str){binary}<LSEP>[argument 5; litteral](str){minkowski}<LSEP>[argument 6; litteral](str){Chebyshev}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LSEP>[](symbol){veganmethod}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LSEP>[](symbol){distmethod}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){pcfixed}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Specified distanc...}<LSEP>[](symbol){veganmethod}<LSEP>[](symbol){distmethod}<LSEP>[argument 3; litteral](str){or 'pcfixed'\n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){hard.min.p}<LSEP>[litteral](real){0.250000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){m}<LSEP>[](symbol){method}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){b}<LSEP>[](symbol){binary}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){pr}<LSEP>[](symbol){p}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){u}<LSEP>[litteral](logical){TRUE}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){d}<LSEP>[litteral](logical){TRUE}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){gl.percent.freq}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){reshape2}<LSEP>[](symbol){dcast}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){popn}<LSEP>[](symbol){locus}<LEND>[argument 2; litteral](str){frequency}<LEND>[statement 19; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){m}<LSEP>[](symbol){distmethod}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Calculating distances: }<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Refer to dist {stats} docume...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){minkowski}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){pr}<LSEP>[argument 1; litteral](real){0.250000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning:}<LSEP>[](symbol){hard.min.p}<LSEP>[argument 2; litteral](str){is the practical minimum for M...}<LSEP>[](symbol){hard.min.p}<LSEP>[argument 4; litteral](str){\n\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pr}<LSEP>[](symbol){hard.min.p}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: for p = 1, Minkowski d...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pr}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: for p = 2, Minkowski d...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){pr}<LSEP>[argument 1; litteral](real){30.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: for large p, Minkowski...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){pr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: for p < 1, Minkowski d...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){dist}<LEND>[](symbol){f}<LSEP>[](symbol){m}<LSEP>[](symbol){d}<LSEP>[](symbol){u}<LSEP>[](symbol){pr}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){m}<LSEP>[](symbol){veganmethod}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){vegan}<LSEP>[](symbol){vegdist}<LEND>[](symbol){f}<LSEP>[](symbol){m}<LSEP>[](symbol){b}<LSEP>[](symbol){d}<LSEP>[](symbol){u}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Calculating distances: }<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Refer to vegdist {vegan} d...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){bray}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: the Bray-Curtis distan...}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](str){pcfixed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl.fixed.diff}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating percent fixed di...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: this distance may be non...}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){dd}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){rank}<LEND>[argument 0; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dd}<LEND>[](symbol){ord}<LSEP>[](symbol){ord}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){mat}<LEND>[statement 29; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[argument 3; litteral](str){m}<LEND>[statement 1; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data (DArTSeq)\nPopulation }<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){ Distances}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Tag P/A data (SilicoDArT)\nPop...}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){ Distances}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){standard}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){dd}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[](symbol){title}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjustm...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){robustbase}<LSEP>[](symbol){adjbox}<LEND>[](symbol){dd}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[](symbol){title}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Boxplot adjusted to account ...}<LEND>[statement 4; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 5; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){dd}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){dd}<LEND>[argument 6; litteral](real){100.000000}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Reporting inter-population...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Distance measure:}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of populations =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average no. of individuals...}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 31; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 33; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dd}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){store_key}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){R.version.string}<LSEP>[argument 1; litteral](str){4.0.0}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This function relies on R vers...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tddir}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){R_user_dir}<LEND>[argument 0; litteral](str){td}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){dir.exists}<LSEP>[](symbol){tddir}<LEND>[true branch; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){tddir}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fname}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){tddir}<LSEP>[argument 1; litteral](str){api2.dcf}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){fname}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Existing file found, so overwr...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){con}<LEND>[call](){}<LSEP>[](symbol){file}<LSEP>[](symbol){fname}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){key:}<LSEP>[](symbol){apikey}<LSEP>[](symbol){con}<LEND>[statement 7; call](){}<LSEP>[](symbol){close}<LSEP>[](symbol){con}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){.get_apikey}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.pkgenv}<LSEP>[argument 1; litteral](str){api}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){apikey}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No query without key.}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](symbol){apikey}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){wassersteinpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mean1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean1}<LSEP>[](symbol){mean2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){var1}<LSEP>[](symbol){var2}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var1}<LEND>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){var1}<LSEP>[](symbol){var2}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sqrtvar2}<LEND>[call](){}<LSEP>[](symbol){sqrtmatrix}<LSEP>[](symbol){var2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sqrtvars}<LEND>[call](){}<LSEP>[](symbol){sqrtmatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){sqrtvar2}<LSEP>[](symbol){var1}<LEND>[](symbol){sqrtvar2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tracevar}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){sqrtvars}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tracevar}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.recode.ind}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.recode}<LSEP>[](symbol){recalc}<LSEP>[](symbol){mono.rm}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){recode.table}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){ind.recode}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: Individual name...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Relabelling individuals (=sp...}<LSEP>[](symbol){ind.recode}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Reading lookup table\n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){hold.nLoc}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hold.nInd}<LEND>[call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){hold.nPop}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Applying the recoding\n}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ind.list}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ntr}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ntr}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){ind.list}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){Delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.names}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting individuals/sampl...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.ind}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Delete}<LSEP>[argument 1; litteral](str){delete}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 20; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of loci:}<LSEP>[](symbol){hold.nLoc}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of individuals:}<LSEP>[](symbol){hold.nInd}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of populations:}<LSEP>[](symbol){hold.nPop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of populations:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Locus metrics not recalc...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Resultant monomorphic lo...}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.install.vanilla.dartR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){flavour}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){devtools}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){stringr}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){crayon}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){err}<LSEP>[litteral](NULL){NULL}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){report}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){crayon}<LSEP>[](symbol){green}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){warn}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){crayon}<LSEP>[](symbol){red}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){note}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){crayon}<LSEP>[](symbol){cyan}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){code}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){crayon}<LSEP>[](symbol){blue}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){important}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){crayon}<LSEP>[](symbol){cyan}<LEND>[](symbol){bold}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){flavour}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flavour}<LSEP>[argument 1; litteral](str){CRAN}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){detach}<LSEP>[argument 0; litteral](str){package:dartR}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){Installing dartR from CRAN (la...}<LEND>[statement 2; call](){}<LSEP>[](symbol){install.packages}<LSEP>[argument 0; litteral](str){dartR}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flavour}<LSEP>[argument 1; litteral](str){master}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){Installing dartR from github (...}<LEND>[statement 1; call](){}<LSEP>[](symbol){detach}<LSEP>[argument 0; litteral](str){package:dartR}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){devtools}<LSEP>[](symbol){install_github}<LEND>[argument 0; litteral](str){green-striped-gecko/dartR}<LSEP>[argument 1; litteral](str){master}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){flavour}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](str){dev}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){detach}<LSEP>[argument 0; litteral](str){package:dartR}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){Installing dartR from github (...}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){devtools}<LSEP>[](symbol){install_github}<LEND>[argument 0; litteral](str){green-striped-gecko/dartR}<LSEP>[](symbol){flavour}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){ip}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){installed.packages}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){Package}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){suggests}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_trim}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){packageDescription}<LSEP>[argument 0; litteral](str){dartR}<LSEP>[argument 1; litteral](str){Suggests}<LEND>[argument 1; litteral](str){,}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){toinstall}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){suggests}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){suggests}<LSEP>[](symbol){ip}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){available}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){available.packages}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){Package}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){toinsav}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){toinstall}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){toinstall}<LSEP>[](symbol){available}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){toinsav}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){The following packages will be...}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){toinsav}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){toinsav}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){install.packages}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){toinsav}<LSEP>[](symbol){ii}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Package:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){toinsav}<LSEP>[](symbol){ii}<LEND>[argument 2; litteral](str){installed.\n}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){All required packages are now ...}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){code}<LSEP>[argument 0; litteral](str){update.packages()}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){\nYou have installed dartR}<LEND>[argument 1; call](){}<LSEP>[](symbol){packageVersion}<LSEP>[argument 0; litteral](str){dartR}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){note}<LSEP>[argument 0; litteral](str){\nHave fun using Vanilla dartR!\n}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){toinstall}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){warn}<LSEP>[argument 0; litteral](str){The following packages need to...}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){warn}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){toinstall}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){important}<LSEP>[argument 0; litteral](str){If the packages qvalue and/or ...}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){important}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){install.packages('devtools') \...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){err}<LSEP>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LSEP>[argument 0; litteral](str){All required packages are alre...}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){code}<LSEP>[argument 0; litteral](str){update.packages()}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){You have installed dartR:}<LEND>[argument 1; call](){}<LSEP>[](symbol){packageVersion}<LSEP>[argument 0; litteral](str){dartR}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){note}<LSEP>[argument 0; litteral](str){\nHave fun using Vanilla dartR!\n}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){flavour}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){flavour}<LSEP>[argument 1; litteral](str){CRAN}<LEND>[true branch; assign](){=}<LSEP>[](symbol){fl}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Github [}<LSEP>[](symbol){flavour}<LSEP>[argument 2; litteral](str){]}<LEND>[false branch; assign](){=}<LSEP>[](symbol){fl}<LSEP>[litteral](str){CRAN}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){report}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){You have installed dartR}<LEND>[argument 1; call](){}<LSEP>[](symbol){packageVersion}<LSEP>[argument 0; litteral](str){dartR}<LEND>[argument 2; litteral](str){from}<LSEP>[](symbol){fl}<LSEP>[argument 4; litteral](str){.\n}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.recalc.freqhets}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Dataset contains mo...}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){ calculations\n}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHets}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHets}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Locus metric FreqHets does n...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Recalculating locus metric f...}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHets}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHets}<LEND>[litteral](logical){TRUE}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){distl2dnorm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x1}<LSEP>[](symbol){x1}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x2}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw2}<LSEP>[](symbol){varw2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w12}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){w12}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n1}<LSEP>[](symbol){n2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){RRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LSEP>[](symbol){mu}<LSEP>[](symbol){r}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){znull}<LSEP>[litteral](logical){FALSE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){znull}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The numbers of realizations ar...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){P}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){znull}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R_0}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){y}<LSEP>[](symbol){M}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){R_1}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){M}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R_0}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R_1}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){S_01}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_1}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){S_10}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_0}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){S_00}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_0}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){S_11}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_1}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){SSSSS}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[](symbol){S_10}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){S_00}<LEND>[](symbol){S_01}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){SSSSS}<LEND>[](symbol){vectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){r}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){B_hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[](symbol){V}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){A_hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){S_01}<LSEP>[](symbol){B_hat}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){Pi_hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){znull}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Gamma_hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Sigma_hat}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Gamma_hat}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Gamma_hat}<LSEP>[](symbol){z}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Gamma_hat}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Sigma_hat}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_hat}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B_hat}<LEND>[](symbol){x}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){D}<LSEP>[litteral](NULL){NULL}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){znull}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Gamma_hat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){Gamma_hat}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){D}<LSEP>[](symbol){Gamma_hat}<LEND>[statement 20; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Gamma_hat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){Gamma_hat}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){mu}<LSEP>[litteral](NULL){NULL}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){N}<LSEP>[](symbol){P}<LSEP>[](symbol){Q}<LSEP>[](symbol){R}<LSEP>[](symbol){r}<LEND>[](symbol){mu}<LSEP>[](symbol){A_hat}<LSEP>[](symbol){B_hat}<LSEP>[](symbol){D}<LSEP>[](symbol){Sigma_hat}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){new_RRR}<LSEP>[](symbol){output}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot_rwa}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rwa}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rwa}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sign}<LSEP>[argument 1; litteral](str){-}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Rescaled.RelWeight}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){Rescaled.RelWeight}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){max_weight}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Sign.Rescaled.RelWeight}<LEND>[statement 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){reorder}<LEND>[](symbol){Variables}<LSEP>[](symbol){Sign.Rescaled.RelWeight}<LEND>[](symbol){Sign.Rescaled.RelWeight}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_col}<LSEP>[argument 0; litteral](str){#0066cc}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){Sign.Rescaled.RelWeight}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){max_weight}<LSEP>[argument 1; litteral](real){1.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Variable importance estimates}<LSEP>[argument 1; litteral](str){Using the Relative Weights Ana...}<LSEP>[argument 2; litteral](str){Predictor variables}<LSEP>[argument 3; litteral](str){Rescaled Relative Weights}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Note: Rescaled Relative Weight...}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rwa}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](str){. }<LSEP>[argument 3; litteral](str){R-squared: }<LEND>[argument 4; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rwa}<LSEP>[](symbol){rsquare}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 5; litteral](str){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_edit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){queue}<LSEP>[](symbol){requestor}<LSEP>[](symbol){subject}<LSEP>[](symbol){cc}<LSEP>[](symbol){admin_cc}<LSEP>[](symbol){owner}<LSEP>[](symbol){status}<LSEP>[](symbol){priority}<LSEP>[](symbol){initial_priority}<LSEP>[](symbol){final_priority}<LSEP>[](symbol){time_estimated}<LSEP>[](symbol){starts}<LSEP>[](symbol){due}<LSEP>[](symbol){text}<LSEP>[](symbol){custom_field}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){ticket_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ticket_id}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){compact}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){queue}<LSEP>[](symbol){requestor}<LSEP>[](symbol){subject}<LSEP>[](symbol){cc}<LSEP>[](symbol){admin_cc}<LSEP>[](symbol){owner}<LSEP>[](symbol){status}<LSEP>[](symbol){priority}<LSEP>[](symbol){initial_priority}<LSEP>[](symbol){final_priority}<LSEP>[](symbol){time_estimated}<LSEP>[](symbol){starts}<LSEP>[](symbol){due}<LSEP>[](symbol){text}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ticket_content}<LEND>[call](){}<LSEP>[](symbol){construct_newline_pairs}<LSEP>[](symbol){params}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){exists}<LSEP>[argument 0; litteral](str){custom_field}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){custom_field}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cf}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){CF-%s: %s}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){custom_field}<LEND>[](symbol){custom_field}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ticket_content}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){ticket_content}<LSEP>[](symbol){cf}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){ticket}<LSEP>[](symbol){ticket_id}<LSEP>[argument 2; litteral](str){edit}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ticket_content}<LEND>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 7; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){ticket_id}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){addtest}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){test.x}<LSEP>[](symbol){test.y}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ada}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error: Object is not of class...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This funciton needs a tesing r...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){test.x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This function needs testing data}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){kapstat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tab}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){rs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){E}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rs}<LSEP>[](symbol){cs}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){O}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[](symbol){N}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){O}<LSEP>[](symbol){E}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){E}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){NA}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){iter}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){test.y}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lev}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error The response must have 2...}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){test.y}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nt}<LSEP>[litteral](str){vector}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){test.errs}<LEND>[assign](){<-}<LSEP>[](symbol){test.kaps}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){test.x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){test.x}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){lossObj}<LEND>[](symbol){predict.type}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){f}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){trees}<LEND>[](symbol){i}<LEND>[](symbol){test.x}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){alpha}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){Fm}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 15; control flow](){for}<LSEP>[](symbol){m}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Fm}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Fm}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LSEP>[](symbol){}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){Fm}<LEND>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.errs}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){tab}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.kaps}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){kapstat}<LSEP>[](symbol){tab}<LEND>[statement 16; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){errs}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){errs}<LEND>[](symbol){test.errs}<LSEP>[](symbol){test.kaps}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){F}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){Fm}<LEND>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){jeffreyspar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mean1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean1}<LSEP>[](symbol){mean2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ivar1}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){var1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ivar2}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){var2}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ivar1}<LSEP>[](symbol){ivar2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){var1}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ivar1}<LSEP>[](symbol){ivar2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean1}<LSEP>[](symbol){mean2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ivar1}<LEND>[call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){var1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ivar2}<LEND>[call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){var2}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ivar1}<LSEP>[](symbol){ivar2}<LEND>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){var1}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ivar1}<LSEP>[](symbol){ivar2}<LEND>[argument 1; litteral](real){2.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.callrate}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){range}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){p1}<LEND>[assign](){<-}<LSEP>[](symbol){p2}<LSEP>[litteral](NULL){NULL}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){loc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){callrate}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title1}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data - Call Rate by Locus}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title1}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Fragment P/A data - Call Rate ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[](symbol){title1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_cartesian}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){grid.arrange}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Reporting Call Rate by Locus\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of individuals =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Missing Rate Overall: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){pc.retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pc.filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){index}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){callrate}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){percentile}<LSEP>[](symbol){retained}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){filtered}<LSEP>[](symbol){pc.filtered}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Threshold}<LSEP>[argument 1; litteral](str){Retained}<LSEP>[argument 2; litteral](str){Percent}<LSEP>[argument 3; litteral](str){Filtered}<LSEP>[argument 4; litteral](str){Percent}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Threshold}<LEND>[](symbol){}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.call.rate}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title1}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data (DArTSeq)\nCall Rate ...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title1}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Fragment P/A data (SilicoDArT)...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[](symbol){title1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_cartesian}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){grid.arrange}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Reporting Call Rate by Indiv...}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of individuals =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average Call Rate: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Missing Rate Overall: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){pc.retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pc.filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){crate}<LSEP>[](symbol){ind.call.rate}<LEND>[statement 18; control flow](){for}<LSEP>[](symbol){index}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){crate}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){crate}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){percentile}<LSEP>[](symbol){retained}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){filtered}<LSEP>[](symbol){pc.filtered}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Threshold}<LSEP>[argument 1; litteral](str){Retained}<LSEP>[argument 2; litteral](str){Percent}<LSEP>[argument 3; litteral](str){Filtered}<LSEP>[argument 4; litteral](str){Percent}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Threshold}<LEND>[](symbol){}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){df}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.hwe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){subset}<LSEP>[](symbol){plot}<LSEP>[](symbol){method}<LSEP>[](symbol){alpha}<LSEP>[](symbol){bonf}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){HardyWeinberg}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Detected Presence/Absence (S...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot calculate HWE from frag...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subset}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){all}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){gl}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Pooling all populations for ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Significance of tes...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating HWE for population}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){gl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subset}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){each}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating HWE for population}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Analysing each population se...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){poplist}<LEND>[call](){}<LSEP>[](symbol){seppop}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){0.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){nPop}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){subset}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){subset}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){gl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){gl}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating HWE for population}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){gl}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Pooling populations}<LSEP>[](symbol){subset}<LSEP>[argument 2; litteral](str){for HWE calculations\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Significance of tes...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: subset parameter ...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){gl}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Hom_1}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Het}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Hom_2}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AA}<LSEP>[argument 1; litteral](str){AB}<LSEP>[argument 2; litteral](str){BB}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){bonf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){c.alpha}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xlabel}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ (alpha = }<LEND>[argument 2; call](){}<LSEP>[](symbol){signif}<LSEP>[](symbol){c.alpha}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 3; litteral](str){, Bonferroni corrected)}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){c.alpha}<LSEP>[](symbol){alpha}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xlabel}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ (alpha = }<LEND>[argument 2; call](){}<LSEP>[](symbol){signif}<LSEP>[](symbol){c.alpha}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 3; litteral](str){)}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Fisher}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){HardyWeinberg}<LSEP>[](symbol){HWTernaryPlot}<LEND>[](symbol){mat}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){7.000000}<LSEP>[argument 3; litteral](real){1.250000}<LSEP>[](symbol){c.alpha}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[](symbol){xlabel}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){HardyWeinberg}<LSEP>[](symbol){HWTernaryPlot}<LEND>[](symbol){mat}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.250000}<LSEP>[](symbol){c.alpha}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[](symbol){xlabel}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){count}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){npops2plot}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){poplist}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){ii}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: No heteromorphic lo...}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){... skipped\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){npops2plot}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){npops2plot}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){ii}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Population}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){poplist}<LEND>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){result}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Population}<LSEP>[](symbol){result}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){ii}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Population}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){poplist}<LEND>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Population}<LSEP>[](symbol){r}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){result}<LSEP>[](symbol){r}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){npops2plot}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){npops2plot}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting two ternary plots o...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){npops2plot}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting three ternary plots...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){npops2plot}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting four ternary plots ...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting four ternary plots ...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting one ternary plot\n}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){poplist}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){ii}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){next}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){ii}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){a}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){a}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){Hom_1}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){Het}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){Hom_2}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AA}<LSEP>[argument 1; litteral](str){AB}<LSEP>[argument 2; litteral](str){BB}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){bonf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){c.alpha}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xlabel}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Population: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){c.alpha}<LSEP>[](symbol){alpha}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xlabel}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Population: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Fisher}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){HardyWeinberg}<LSEP>[](symbol){HWTernaryPlot}<LEND>[](symbol){mat}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){7.000000}<LSEP>[argument 3; litteral](real){1.250000}<LSEP>[](symbol){c.alpha}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[](symbol){xlabel}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){HardyWeinberg}<LSEP>[](symbol){HWTernaryPlot}<LEND>[](symbol){mat}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.250000}<LSEP>[](symbol){c.alpha}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[](symbol){xlabel}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){rprob}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Prob}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){rprob}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rprob}<LSEP>[](symbol){alpha}<LEND>[](symbol){}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Locus}<LEND>[](symbol){}<LEND>[statement 16; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Reporting significant depa...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No significant departures\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ NB: Departures significant...}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](str){are listed\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){0.050000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ns --}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](str){< p < 0.05; * -- 0.05 < p < 0....}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ns -- p > 0.05; * -- 0.0...}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Critical values for signif...}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 19; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){result}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddlppar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must have the same n...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must be vectors with...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[](symbol){p}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p2}<LEND>[](symbol){p}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.discdd.predict}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){discdd.predict}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){RRR_sim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){P}<LSEP>[](symbol){Q}<LSEP>[](symbol){R}<LSEP>[](symbol){r}<LSEP>[](symbol){mu}<LSEP>[](symbol){A}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){varcov}<LSEP>[](symbol){innov}<LSEP>[](symbol){mean_x}<LSEP>[](symbol){mean_z}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){P}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){A}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){P is not the same with the row...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){B}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Q is not the same with the row...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){R}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){D}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R}<LSEP>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){D}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){R is not the same with the col...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){mvtnorm}<LSEP>[](symbol){rmvnorm}<LEND>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){mean_x}<LSEP>[](symbol){Q}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){R}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){mvtnorm}<LSEP>[](symbol){rmvnorm}<LEND>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){mean_z}<LSEP>[](symbol){R}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){rnorm}<LEND>[](symbol){N}<LSEP>[](symbol){mean_z}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){B}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constant}<LSEP>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constant}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mu}<LEND>[](symbol){N}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){D}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){constant}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){C}<LEND>[](symbol){innov}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){constant}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){D}<LEND>[](symbol){innov}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){P}<LSEP>[](symbol){N}<LSEP>[](symbol){Q}<LSEP>[](symbol){R}<LSEP>[](symbol){A}<LSEP>[](symbol){B}<LSEP>[](symbol){mu}<LSEP>[](symbol){D}<LSEP>[](symbol){r}<LSEP>[](symbol){varcov}<LSEP>[](symbol){innov}<LEND>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RRR_data}<LSEP>[argument 1; litteral](str){list}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){output}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){CasColNames}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){restore}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){NewColnames}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GroupCode}<LSEP>[argument 1; litteral](str){Company}<LSEP>[argument 2; litteral](str){AccidentYear}<LSEP>[argument 3; litteral](str){DevelopmentYear}<LSEP>[argument 4; litteral](str){Lag}<LSEP>[argument 5; litteral](str){CumulativeIncurred}<LSEP>[argument 6; litteral](str){CumulativePaid}<LSEP>[argument 7; litteral](str){IBNR}<LSEP>[argument 8; litteral](str){DirectEP}<LSEP>[argument 9; litteral](str){CededEP}<LSEP>[argument 10; litteral](str){NetEP}<LSEP>[argument 11; litteral](str){Single}<LSEP>[argument 12; litteral](str){Reserve1997}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){OldColnames}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){GRCODE}<LSEP>[argument 1; litteral](str){GRNAME}<LSEP>[argument 2; litteral](str){AccidentYear}<LSEP>[argument 3; litteral](str){DevelopmentYear}<LSEP>[argument 4; litteral](str){DevelopmentLag}<LSEP>[argument 5; litteral](str){IncurLoss_D}<LSEP>[argument 6; litteral](str){CumPaidLoss_D}<LSEP>[argument 7; litteral](str){BulkLoss_D}<LSEP>[argument 8; litteral](str){EarnedPremDIR_D}<LSEP>[argument 9; litteral](str){EarnedPremCeded_D}<LSEP>[argument 10; litteral](str){EarnedPremNet_D}<LSEP>[argument 11; litteral](str){Single}<LSEP>[argument 12; litteral](str){PostedReserve97_D}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){restore}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){OldColnames}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){NewColnames}<LEND>[](symbol){df}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2svdquartets}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){method}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object may...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: method must be eith...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Extacting SNP bases and cr...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ref}<LEND>[call](){}<LSEP>[](symbol){unname}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.all}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alt}<LEND>[call](){}<LSEP>[](symbol){unname}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.all}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Sorting ....\n}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){df}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){pop}<LEND>[](symbol){}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){indlabels}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){poplabels}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Creating lookup table for ...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){W}<LSEP>[argument 2; litteral](str){R}<LSEP>[argument 3; litteral](str){M}<LSEP>[argument 4; litteral](str){W}<LSEP>[argument 5; litteral](str){T}<LSEP>[argument 6; litteral](str){K}<LSEP>[argument 7; litteral](str){Y}<LSEP>[argument 8; litteral](str){R}<LSEP>[argument 9; litteral](str){K}<LSEP>[argument 10; litteral](str){G}<LSEP>[argument 11; litteral](str){S}<LSEP>[argument 12; litteral](str){M}<LSEP>[argument 13; litteral](str){Y}<LSEP>[argument 14; litteral](str){S}<LSEP>[argument 15; litteral](str){C}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){T}<LSEP>[argument 2; litteral](str){G}<LSEP>[argument 3; litteral](str){C}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){conversion}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){refseq}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){altseq}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){ambseq}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){ind}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indlabels}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){_1 }<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indlabels}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){_2 }<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){ind}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indlabels}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){ }<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Applying ambiguity codes (...}<LEND>[statement 19; control flow](){for}<LSEP>[](symbol){ind}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){loc}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){ind}<LSEP>[](symbol){loc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){?}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){?}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](str){?}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){ind}<LSEP>[](symbol){loc}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ref}<LSEP>[](symbol){loc}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ref}<LSEP>[](symbol){loc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ref}<LSEP>[](symbol){loc}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){ind}<LSEP>[](symbol){loc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ref}<LSEP>[](symbol){loc}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alt}<LSEP>[](symbol){loc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){conversion}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ref}<LSEP>[](symbol){loc}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alt}<LSEP>[](symbol){loc}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){ind}<LSEP>[](symbol){loc}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alt}<LSEP>[](symbol){loc}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alt}<LSEP>[](symbol){loc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alt}<LSEP>[](symbol){loc}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: SNP must be score...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Constructing genotypes for e...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){str}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){ind}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){str}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[](symbol){ind}<LSEP>[](symbol){}<LEND>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){str}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){NA}<LSEP>[argument 1; litteral](str){?}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){str}<LSEP>[](symbol){ind}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){str}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){ind}<LEND>[argument 1; litteral](str){ }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){str}<LSEP>[](symbol){ind}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){str}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){poplabels}<LEND>[call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Creating partition table\n}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){poplabels}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){poplabels}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){poplabels}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){b}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){plabels}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){poplabels}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Writing results to svd nex...}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 20; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfilespec}<LEND>[statement 21; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){#nexus\n}<LEND>[statement 22; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){BEGIN DATA;\n}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ dimensions ntax = }<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){ nchar = }<LEND>[argument 3; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){ ;\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ dimensions ntax = }<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){ nchar = }<LEND>[argument 3; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){ ;\n}<LEND>[statement 24; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ format datatype = dna gap...}<LEND>[statement 25; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){matrix\n}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){refseq}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){altseq}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ambseq}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 27; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){;\n}<LEND>[statement 28; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){end;\n\n}<LEND>[statement 29; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){begin sets;\n}<LEND>[statement 30; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ taxpartition pops =\n}<LEND>[statement 31; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){plabels}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plabels}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){ : }<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LSEP>[](symbol){i}<LEND>[argument 4; litteral](str){-}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LSEP>[](symbol){i}<LEND>[argument 6; litteral](str){,\n}<LEND>[statement 32; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plabels}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){plabels}<LEND>[argument 1; litteral](str){ : }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){plabels}<LEND>[argument 3; litteral](str){-}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){plabels}<LEND>[argument 5; litteral](str){;\n}<LEND>[statement 33; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){end;\n\n}<LEND>[statement 34; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){begin paup;\n}<LEND>[statement 35; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){log file=svd.txt;\n}<LEND>[statement 36; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){lset nthreads=3;\n}<LEND>[statement 37; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){SVDQuartets\n}<LEND>[statement 38; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ evalQuartets=random\n}<LEND>[statement 39; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ speciesTree=yes\n}<LEND>[statement 40; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ partition=pops\n}<LEND>[statement 41; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ bootstrap=standard\n}<LEND>[statement 42; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ nreps=10000\n}<LEND>[statement 43; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ambigs=distribute\n}<LEND>[statement 44; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ treeFile=svd.tre;\n}<LEND>[statement 45; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){savetrees file=svd_boot.tre fr...}<LEND>[statement 46; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){log stop;\n}<LEND>[statement 47; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){quit;\n}<LEND>[statement 48; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){end;\n}<LEND>[statement 49; call](){}<LSEP>[](symbol){sink}<LEND>[statement 50; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Records written to}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){:}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 51; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 52; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matwasserstein}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x must be an object of class '...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Non numeric column(s) in the d...}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){wasserstein}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){j}<LEND>[statement 5; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2hiphop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Start conversion....\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ptm}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){proc.time}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Once finished, we recommend to...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){gl}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){het}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){het}<LEND>[litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate_all}<LEND>[](symbol){as.numeric}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){kernelwts}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){center}<LSEP>[](symbol){bw}<LSEP>[](symbol){kernel}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){X}<LSEP>[](symbol){center}<LEND>[](symbol){bw}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){triangular}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){dist}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){rectangular}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){epanechnikov}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dist}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){quartic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){biweight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){15.000000}<LSEP>[argument 1; litteral](real){16.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dist}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){triweight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){35.000000}<LSEP>[argument 1; litteral](real){32.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dist}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){tricube}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){70.000000}<LSEP>[argument 1; litteral](real){81.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){dist}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){gaussian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){dist}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){cosine}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dist}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid kernel selection.}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){dist}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){gaussian}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){w}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){w}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){logistic2_new}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LSEP>[](symbol){lower_bound}<LSEP>[](symbol){upper_bound}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){start}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'start' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'eta' cannot be init...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[argument 4; call](){}<LSEP>[](symbol){suff_stats}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LEND>[argument 1; litteral](str){logistic2}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'lower_bound' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){inf}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){upper_bound}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){lower_bound}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){upper_bound}<LEND>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){logistic2_fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic2_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic2_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic2_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){gradient_hessian.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hessian}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){t}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){f}<LEND>[](symbol){u}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[litteral](real){0.000000}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 20; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gradient}<LSEP>[](symbol){hessian}<LEND>[assign](){<-}<LSEP>[](symbol){rss.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_fixed.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 5; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){hessian}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 9; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){gradient}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian_fixed.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){hessian}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 13; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[](symbol){idx}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){mle_asy.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){init.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rss_fn}<LEND>[call](){}<LSEP>[](symbol){rss}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){linear_fit}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){linear_coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){linear_fit}<LSEP>[](symbol){coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){min_value}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){max_value}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){zv}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000010}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_value}<LSEP>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000020}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zv}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){zv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){niter}<LSEP>[litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){current_rss}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){current_rss}<LSEP>[](symbol){best_rss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LSEP>[](symbol){current_par}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_rss}<LSEP>[](symbol){current_rss}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v1}<LSEP>[litteral](integer){20}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v2}<LSEP>[litteral](integer){20}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){eta_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[](symbol){v1}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){phi_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[](symbol){v2}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){theta_tmp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){rss_tmp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){theta_eta_1}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v2}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){rss_eta_1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v2}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){theta_eta_2}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v2}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){rss_eta_2}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v2}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){0.000000}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){0.000000}<LEND>[statement 30; control flow](){for}<LSEP>[](symbol){phi}<LSEP>[](symbol){phi_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){eta}<LSEP>[](symbol){eta_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_tmp}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){phi}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_1}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){phi}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[](symbol){phi}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_2}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[](symbol){phi}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_tmp}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_3}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_4}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_5}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){theta}<LSEP>[](symbol){theta_1}<LSEP>[](symbol){theta_2}<LSEP>[](symbol){theta_3}<LSEP>[](symbol){theta_4}<LSEP>[](symbol){theta_5}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){fit_nlminb}<LSEP>[](symbol){object}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){start}<LEND>[statement 40; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[](symbol){best_rss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){niter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){niter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){niter}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[litteral](NULL){NULL}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){niter}<LEND>[litteral](NULL){NULL}<LEND>[statement 43; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){theta}<LSEP>[](symbol){niter}<LEND>[assign](){<-}<LSEP>[](symbol){fit.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[argument 5; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic2_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){eta}<LSEP>[argument 1; litteral](str){phi}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic2_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fit_constrained.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constraint}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lb_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ub_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){lb_is_inf}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ub_is_inf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){known_param}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](real){nan}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum_constrained}<LSEP>[](symbol){object}<LSEP>[](symbol){constraint}<LSEP>[](symbol){known_param}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){estimated}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){estimated}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){estimated}<LSEP>[](symbol){theta}<LEND>[argument 5; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){estimated}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic2_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){eta}<LSEP>[argument 1; litteral](str){phi}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic2_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fisher_info.logistic2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LSEP>[](symbol){sigma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gh}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){fim}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[argument 1; litteral](str){sigma}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[](symbol){fim}<LEND>[assign](){<-}<LSEP>[](symbol){curve_variance.logistic2_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){V}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){t}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){G}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){G}<LEND>[litteral](real){0.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){variance}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){variance}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){V}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){variance}<LEND>[assign](){<-}<LSEP>[](symbol){nauc.logistic2_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xlim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){xlim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ylim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ylim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){I}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){xlim_new}<LSEP>[](symbol){xlim}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){phi}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){phi}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){t1}<LSEP>[](symbol){t2}<LEND>[](symbol){eta}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){nauc}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nauc}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){nauc}<LEND>[assign](){<-}<LSEP>[](symbol){naac.logistic2_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nauc}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){as.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){as.foldert}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rmrow.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.foldert}<LSEP>[](symbol){object}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rmrow.foldert applies to an ob...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){objk}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){object}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){objk}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){objk}<LEND>[](symbol){name}<LEND>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){object}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){xf}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.sim.ind}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl}<LSEP>[](symbol){n}<LSEP>[](symbol){popname}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){gl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alf}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){p}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alfinds}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){alf}<LSEP>[](symbol){n}<LEND>[](symbol){n}<LSEP>[](symbol){T}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){simind}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){alfinds}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){glsim}<LEND>[call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){genlight}<LSEP>[](symbol){simind}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[argument 5; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){loc.all}<LEND>[argument 6; call](){}<LSEP>[](symbol){position}<LSEP>[](symbol){gl}<LEND>[argument 7; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){popname}<LSEP>[](symbol){n}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){glsim}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){appendtofolderh}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fh}<LSEP>[](symbol){df}<LSEP>[](symbol){key}<LSEP>[](symbol){after}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){name.fh}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){fh}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){name.df}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){df}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folderh}<LSEP>[](symbol){fh}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fh must be an object of class ...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There is no }<LSEP>[](symbol){key}<LSEP>[argument 2; litteral](str){ column in }<LSEP>[](symbol){name.df}<LSEP>[argument 4; litteral](str){ data frame.}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){after}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){There is no }<LSEP>[](symbol){key}<LSEP>[argument 2; litteral](str){ column in }<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){, }<LEND>[argument 4; litteral](str){ data frame of }<LSEP>[](symbol){name.fh}<LSEP>[argument 6; litteral](str){.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fh.ret}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){df}<LEND>[](symbol){fh}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){keys}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fh}<LSEP>[argument 1; litteral](str){keys}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fh.ret}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){name.df}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fh}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fh}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){There is no }<LSEP>[](symbol){key}<LSEP>[argument 2; litteral](str){ column in }<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fh}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fh}<LEND>[argument 1; litteral](str){, }<LEND>[argument 4; litteral](str){ data frame of }<LSEP>[](symbol){name.fh}<LSEP>[argument 6; litteral](str){.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fh.ret}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fh}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){df}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){keys}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fh}<LSEP>[argument 1; litteral](str){keys}<LEND>[](symbol){key}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fh.ret}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){name.df}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fh.ret}<LEND>[litteral](str){folderh}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fh.ret}<LSEP>[argument 1; litteral](str){keys}<LEND>[](symbol){keys}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){fh.ret}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){createIndex}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){paths}<LSEP>[](symbol){base}<LSEP>[](symbol){dir}<LSEP>[](symbol){fname}<LSEP>[](symbol){meta}<LSEP>[](symbol){metadir}<LSEP>[](symbol){mname}<LSEP>[](symbol){gname}<LSEP>[](symbol){overwrite}<LSEP>[](symbol){checkwarn}<LSEP>[](symbol){checklog}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){compstart}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){messaget}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){difftime}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[](symbol){compstart}<LSEP>[argument 2; litteral](str){s}<LEND>[argument 3; litteral](str){ secs so far)}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){y/solar/}<LSEP>[argument 1; litteral](str){y/solar//}<LSEP>[](symbol){paths}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){multi_annual/}<LSEP>[argument 1; litteral](str){multi_annual//}<LSEP>[](symbol){fileIndex}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){subdaily/standard_format/}<LSEP>[argument 1; litteral](str){subdaily/standard_format//}<LSEP>[](symbol){fileIndex}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){^/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){fileIndex}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){prec1min}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){fileIndex}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){33.000000}<LEND>[argument 1; litteral](str){1_minute/precipitation/historical}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){prec1min}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){fileIndex}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){37.000000}<LEND>[argument 1; litteral](str){1_minute/precipitation/histori...}<LEND>[](symbol){prec1min}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){any1min}<LEND>[call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){prec1min}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ncolumns}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){any1min}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Splitting filenames...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){l2df}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[](symbol){fileIndex}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){fileIndex}<LEND>[](symbol){ncolumns}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){traceCall}<LEND>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){in }<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){index does not have }<LSEP>[](symbol){ncolumns}<LSEP>[argument 3; litteral](str){ columns, but }<LEND>[argument 4; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){fileIndex}<LEND>[argument 5; litteral](logical){FALSE}<LEND>[statement 13; control flow](){if}<LSEP>[](symbol){any1min}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){prec1min}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){prec1min}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){res}<LSEP>[argument 1; litteral](str){var}<LSEP>[argument 2; litteral](str){per}<LSEP>[argument 3; litteral](str){file}<LEND>[argument 4; control flow](){if}<LSEP>[](symbol){any1min}<LSEP>[true branch; litteral](str){dummyfromyear1minute}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){file}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){file}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){fileIndex}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Extracting metadata from filen...}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){info}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){l2df}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[](symbol){file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){[-_.]}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){id}<LSEP>[litteral](str){}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){per}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){per}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){sol}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){var}<LEND>[argument 1; litteral](str){solar}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){zip}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){zip}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Extracting station IDs from fi...}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){zip}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){per}<LSEP>[argument 1; litteral](str){historical}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){id}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){zip}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){per}<LSEP>[argument 1; litteral](str){recent}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){id}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){zip}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){per}<LSEP>[argument 1; litteral](str){now}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){id}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){zip}<LSEP>[](symbol){sol}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){per}<LSEP>[argument 1; litteral](str){historical}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){id}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){zip}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){per}<LSEP>[argument 1; litteral](str){meta_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){id}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](str){kl}<LEND>[argument 1; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){8.000000}<LEND>[](symbol){id}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){id}<LEND>[statement 31; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){id}<LSEP>[](symbol){per}<LSEP>[](symbol){sol}<LSEP>[](symbol){zip}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){sf}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){var}<LEND>[argument 1; litteral](str){standard_format}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){per}<LEND>[argument 1; litteral](str){}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){akt.txt}<LSEP>[](symbol){paths}<LEND>[argument 2; litteral](str){per}<LEND>[litteral](str){recent}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){_bis_}<LSEP>[](symbol){paths}<LEND>[argument 2; litteral](str){per}<LEND>[litteral](str){historical}<LEND>[statement 35; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Extracting time series range f...}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){ziphist}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){per}<LEND>[argument 1; litteral](str){historical}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){zip}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){multi}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](str){multi_annual}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){txt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](str){Stationsliste}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){start}<LEND>[litteral](str){}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){ziphist}<LSEP>[](symbol){multi}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){start}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){start}<LEND>[argument 1; litteral](str){%Y%m%d}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){end}<LEND>[litteral](str){}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){ziphist}<LSEP>[](symbol){multi}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){info}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){end}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){end}<LEND>[argument 1; litteral](str){%Y%m%d}<LEND>[statement 44; assign](){<-}<LSEP>[](symbol){ma}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](str){multi_annual}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){ismeta1}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ma}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.txt$}<LSEP>[](symbol){paths}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Beschreibung}<LSEP>[](symbol){paths}<LEND>[statement 46; assign](){<-}<LSEP>[](symbol){ismeta2}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){ma}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Stationsliste}<LSEP>[](symbol){paths}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){ismeta}<LEND>[call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){ismeta1}<LSEP>[](symbol){ismeta2}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.pdf$}<LSEP>[](symbol){paths}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.html$}<LSEP>[](symbol){paths}<LEND>[statement 48; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){ma}<LSEP>[](symbol){ismeta1}<LSEP>[](symbol){ismeta2}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){path}<LEND>[](symbol){paths}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fileIndex}<LEND>[litteral](NULL){NULL}<LEND>[statement 51; assign](){<-}<LSEP>[](symbol){owd}<LEND>[call](){}<LSEP>[](symbol){dirDWD}<LSEP>[](symbol){dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){quiet}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fname}<LSEP>[argument 1; litteral](str){}<LEND>[statement 52; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){owd}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 53; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){fname}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){newFilename}<LEND>[](symbol){fname}<LSEP>[argument 1; litteral](str){ }<LSEP>[](symbol){quiet}<LSEP>[](symbol){overwrite}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\t}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 54; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){meta}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){fileIndex}<LEND>[statement 55; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.txt$}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){path}<LEND>[statement 56; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Beschreibung_Stationen}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){path}<LEND>[statement 57; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){sel}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){traceCall}<LEND>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){in }<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){There need to be at least two ...}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){sel}<LEND>[argument 3; litteral](str){)}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 58; assign](){<-}<LSEP>[](symbol){metas}<LEND>[call](){}<LSEP>[](symbol){dataDWD}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){path}<LEND>[](symbol){base}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){metadir}<LSEP>[](symbol){overwrite}<LSEP>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){...}<LEND>[statement 59; assign](){<-}<LSEP>[](symbol){metas}<LEND>[call](){}<LSEP>[](symbol){readDWD}<LSEP>[](symbol){metas}<LSEP>[argument 1; litteral](str){meta}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 60; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){metas}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){metas}<LSEP>[](symbol){i}<LEND>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){res}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){metas}<LSEP>[](symbol){i}<LEND>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){var}<LEND>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){metas}<LSEP>[](symbol){i}<LEND>[](symbol){per}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){per}<LEND>[](symbol){i}<LEND>[statement 61; assign](){<-}<LSEP>[](symbol){cnames}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){metas}<LSEP>[](symbol){colnames}<LEND>[statement 62; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cnames}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){traceCall}<LEND>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){in }<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){The file }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){path}<LEND>[](symbol){i}<LEND>[argument 3; litteral](str){\nhas incorrect column names: }<LEND>[argument 4; call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames}<LSEP>[](symbol){i}<LEND>[argument 5; litteral](str){\n instead of \n}<LEND>[argument 6; call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 7; litteral](logical){FALSE}<LEND>[statement 63; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Merging meta files...}<LEND>[statement 64; assign](){<-}<LSEP>[](symbol){metaIndex}<LEND>[call](){}<LSEP>[](symbol){Reduce}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){...}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){metas}<LEND>[statement 65; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Processing meta files...}<LEND>[statement 66; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Stationsname}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){convertUmlaut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Stationsname}<LEND>[statement 67; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Bundesland}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){convertUmlaut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Bundesland}<LEND>[statement 68; assign](){<-}<LSEP>[](symbol){metaIndex}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){sortDF}<LEND>[](symbol){metaIndex}<LSEP>[argument 1; litteral](str){Stationsname}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 69; assign](){<-}<LSEP>[](symbol){filestatID}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){id}<LEND>[statement 70; assign](){<-}<LSEP>[](symbol){metaComb}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Stations_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){res}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){var}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){per}<LEND>[argument 4; litteral](str){/}<LEND>[statement 71; assign](){<-}<LSEP>[](symbol){fileComb}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){filestatID}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){res}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){var}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){per}<LEND>[argument 4; litteral](str){/}<LEND>[statement 72; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){hasfile}<LEND>[call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){metaComb}<LSEP>[](symbol){fileComb}<LEND>[statement 73; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){von_datum}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){von_datum}<LEND>[argument 1; litteral](str){%Y%m%d}<LEND>[statement 74; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){bis_datum}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){bis_datum}<LEND>[argument 1; litteral](str){%Y%m%d}<LEND>[statement 75; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){mname}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){newFilename}<LEND>[](symbol){mname}<LSEP>[argument 1; litteral](str){: }<LSEP>[](symbol){quiet}<LSEP>[](symbol){overwrite}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\t}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 76; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Creating geoIndex...}<LEND>[statement 77; assign](){<-}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){metaIndex}<LEND>[statement 78; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stations_id}<LEND>[statement 79; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){name}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stationsname}<LEND>[statement 80; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){state}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Bundesland}<LEND>[statement 81; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){lat}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){geoBreite}<LEND>[statement 82; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){lon}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){geoLaenge}<LEND>[statement 83; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stations_id}<LEND>[litteral](NULL){NULL}<LEND>[statement 84; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stationsname}<LEND>[litteral](NULL){NULL}<LEND>[statement 85; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Bundesland}<LEND>[litteral](NULL){NULL}<LEND>[statement 86; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){geoBreite}<LEND>[litteral](NULL){NULL}<LEND>[statement 87; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){geoLaenge}<LEND>[litteral](NULL){NULL}<LEND>[statement 88; assign](){<-}<LSEP>[](symbol){id_char}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[statement 89; assign](){<-}<LSEP>[](symbol){ele}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){tapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stationshoehe}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[](symbol){mean}<LEND>[argument 1; litteral](real){0.100000}<LEND>[statement 90; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){ele}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ele}<LSEP>[](symbol){id_char}<LEND>[statement 91; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){ele}<LEND>[statement 92; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){Stationshoehe}<LEND>[litteral](NULL){NULL}<LEND>[statement 93; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){hasfile}<LEND>[](symbol){id_char}<LEND>[statement 94; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nonpublic}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){hasfile}<LEND>[](symbol){id_char}<LEND>[statement 95; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles}<LEND>[litteral](real){0.000000}<LEND>[statement 96; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nonpublic}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nonpublic}<LEND>[litteral](real){0.000000}<LEND>[statement 97; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles}<LEND>[statement 98; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nonpublic}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nonpublic}<LEND>[statement 99; assign](){<-}<LSEP>[](symbol){recentfile}<LEND>[call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){per}<LEND>[argument 1; litteral](str){recent}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){bis_datum}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.Date}<LEND>[argument 1; litteral](real){365.000000}<LEND>[argument 1; litteral](str){%Y%m%d}<LEND>[statement 100; assign](){<-}<LSEP>[](symbol){recentfile}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){recentfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){hasfile}<LEND>[statement 101; assign](){<-}<LSEP>[](symbol){recentfile}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){recentfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){id}<LEND>[](symbol){any}<LEND>[](symbol){id_char}<LEND>[statement 102; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){recentfile}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LSEP>[](symbol){recentfile}<LEND>[statement 103; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){recentfile}<LEND>[statement 104; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){von_datum}<LEND>[litteral](NULL){NULL}<LEND>[statement 105; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){bis_datum}<LEND>[litteral](NULL){NULL}<LEND>[statement 106; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){res}<LEND>[litteral](NULL){NULL}<LEND>[statement 107; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){var}<LEND>[litteral](NULL){NULL}<LEND>[statement 108; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){per}<LEND>[litteral](NULL){NULL}<LEND>[statement 109; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){hasfile}<LEND>[litteral](NULL){NULL}<LEND>[statement 110; assign](){<-}<LSEP>[](symbol){geoIndex}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geoIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){geoIndex}<LEND>[](symbol){}<LEND>[statement 111; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){display}<LEND>[call](){}<LSEP>[](symbol){rowDisplay}<LSEP>[](symbol){geoIndex}<LEND>[statement 112; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){display}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){nfiles}<LSEP>[argument 1; litteral](str){n public files}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){display}<LEND>[statement 113; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){col}<LEND>[litteral](str){blue}<LEND>[statement 114; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){recentfile}<LEND>[litteral](str){red}<LEND>[statement 115; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){geoIndex}<LEND>[litteral](NULL){NULL}<LEND>[statement 116; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){gname}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){newFilename}<LEND>[](symbol){gname}<LSEP>[argument 1; litteral](str){: }<LSEP>[](symbol){quiet}<LSEP>[](symbol){overwrite}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\t}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 117; assign](){<-}<LSEP>[](symbol){checks}<LEND>[call](){}<LSEP>[](symbol){checkIndex}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){geoIndex}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[](symbol){checkwarn}<LSEP>[](symbol){quiet}<LSEP>[](symbol){checklog}<LEND>[statement 118; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Done.}<LEND>[statement 119; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){fileIndex}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){checks}<LEND>[control flow](){if}<LSEP>[condition; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Computing distances between co...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){id}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pbsapply}<LEND>[](symbol){id}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geoIndexAll}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){id}<LEND>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){maxlldist}<LSEP>[argument 0; litteral](str){lat}<LSEP>[argument 1; litteral](str){long}<LSEP>[](symbol){g}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dist}<LEND>[](symbol){id}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){dist}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){maxdist}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){id}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){aname}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){newFilename}<LEND>[](symbol){aname}<LSEP>[argument 1; litteral](str){: }<LSEP>[](symbol){quiet}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\t}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){messaget}<LSEP>[argument 0; litteral](str){Creating geoIndex...}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){coord_merged}<LEND>[litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){geoIndex}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[](symbol){id}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geoIndexAll}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){id}<LEND>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){g}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){0.900000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){g}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nf_co}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){nfiles_coord}<LEND>[argument 1; litteral](str){(0}<LEND>[argument 1; litteral](str){(}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nf_id}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){nfiles_id}<LEND>[argument 1; litteral](str){(0}<LEND>[argument 1; litteral](str){(}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nfc}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nf_co}<LSEP>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nfi}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nf_id}<LSEP>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nf_co}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nf_co}<LSEP>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nf_id}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nf_id}<LSEP>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nf_co}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){+}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){)}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){nf_co}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){nf_id}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){+}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){)}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){nf_id}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nfc}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nfc}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){nf_co}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){nfi}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nfi}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){nf_id}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){recentfile}<LEND>[call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){recentfile}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){ele}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){ele}<LEND>[](symbol){nfc}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nfi}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){nfiles_coord}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){nfiles_coord}<LEND>[argument 1; litteral](str){ + }<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){g}<LSEP>[](symbol){coord_merged}<LEND>[litteral](logical){TRUE}<LEND>[statement 17; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LSEP>[](symbol){nfc}<LEND>[](symbol){}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){coord_merged}<LEND>[litteral](NULL){NULL}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){geoIndex}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){geoIndex}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){all_elev}<LEND>[litteral](NULL){NULL}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){display}<LEND>[litteral](NULL){NULL}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){display}<LEND>[call](){}<LSEP>[](symbol){rowDisplay}<LSEP>[](symbol){geoIndex}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){isnul}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){nfiles_id}<LEND>[argument 1; litteral](str){(}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndex}<LSEP>[](symbol){col}<LEND>[](symbol){isnul}<LEND>[litteral](str){black}<LEND>[statement 17; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){isnul}<LEND>[statement 18; call](){}<LSEP>[](symbol){logHist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){maxdist}<LEND>[argument 1; litteral](real){50.000000}<LSEP>[argument 2; litteral](str){Max distance between station l...}<LEND>[statement 19; call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.900000}<LEND>[statement 20; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){leaflet}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){farapart}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geoIndexAll}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){geoIndexAll}<LSEP>[](symbol){maxdist}<LEND>[argument 1; litteral](real){0.500000}<LEND>[](symbol){}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){farapart}<LSEP>[](symbol){display}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){farapart}<LSEP>[](symbol){display}<LEND>[argument 1; litteral](str){<br>maxDist: }<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){farapart}<LSEP>[](symbol){maxdist}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){col}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){seqPal}<LEND>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){classify}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){farapart}<LSEP>[](symbol){maxdist}<LEND>[argument 1; litteral](str){logspaced}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[argument 1; litteral](real){1.050000}<LEND>[](symbol){index}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){mapfarapart}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){leaflet}<LSEP>[](symbol){farapart}<LEND>[argument 1; call](){}<LSEP>[](symbol){addTiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCircleMarkers}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){long}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){display}<LEND>[argument 3; litteral](str){white}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){1.000000}<LSEP>[](symbol){col}<LEND>[statement 25; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){htmlwidgets}<LSEP>[](symbol){saveWidget}<LEND>[](symbol){mapfarapart}<LSEP>[argument 1; litteral](str){mapfarapart.html}<LEND>[statement 26; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){mapfarapart}<LSEP>[](symbol){col}<LSEP>[](symbol){farapart}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dstatis.inter}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){normed}<LSEP>[](symbol){centered}<LSEP>[](symbol){data.scaled}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){plot.eigen}<LSEP>[](symbol){plot.score}<LSEP>[](symbol){nscore}<LSEP>[](symbol){group.name}<LSEP>[](symbol){filename}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){dstatis.inter applies to an ob...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){last.column.name}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[litteral](str){group}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The variables must be numeric!}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There are NAs in the folder}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){group}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There should be more than one ...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.values}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){nb.groups}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.factors}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.groups}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){moyL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){colMeans}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){moyL0}<LSEP>[](symbol){moyL}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){varL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){var}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){varL0}<LSEP>[](symbol){varL}<LEND>[statement 17; assign](){=}<LSEP>[](symbol){corL}<LSEP>[](symbol){varL}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){corL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){cor}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){corL}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){data.scaled}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){varL}<LSEP>[](symbol){corL}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){skewnessL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){apply}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){skewness}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){kurtosisL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){apply}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){kurtosis}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LSEP>[litteral](str){m}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LSEP>[litteral](str){u}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[statement 24; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){j}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){j}<LEND>[statement 25; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){norme}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){nb.groups}<LEND>[statement 27; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[statement 28; control flow](){if}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 29; control flow](){if}<LSEP>[](symbol){centered}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){moyW}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){W}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){moycolW}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){W}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moycolW}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moycolW}<LSEP>[](symbol){j}<LEND>[](symbol){moyW}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){ep}<LEND>[call](){}<LSEP>[](symbol){svd}<LSEP>[](symbol){W}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){epaff}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.values}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){valpsqrt}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.factors}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){u}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.factors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.factors}<LEND>[](symbol){valpsqrt}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){qual}<LSEP>[](symbol){coor}<LEND>[statement 35; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){qual}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coor}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){10.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){cont}<LSEP>[](symbol){coor}<LEND>[statement 37; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.factors}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cont}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){u}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.factors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){10.000000}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){moyL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){varL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){corL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){skewnessL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){kurtosisL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[](symbol){last.column.name}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 3; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){epaff}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1000.000000}<LSEP>[](symbol){epaff}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ep}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){group.name}<LSEP>[](symbol){cont}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 5; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){group.name}<LSEP>[](symbol){qual}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 6; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){group.name}<LSEP>[](symbol){coor}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 7; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){group.name}<LSEP>[](symbol){norme}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){moyL}<LSEP>[](symbol){varL}<LSEP>[](symbol){corL}<LSEP>[](symbol){skewnessL}<LSEP>[](symbol){kurtosisL}<LEND>[statement 44; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){contributions}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){last.column.name}<LEND>[statement 45; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){qualities}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){last.column.name}<LEND>[statement 46; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){last.column.name}<LEND>[statement 47; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){norm}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){last.column.name}<LEND>[statement 48; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){dstatis}<LEND>[statement 49; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){filename}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){save}<LSEP>[](symbol){results}<LSEP>[](symbol){filename}<LEND>[statement 50; control flow](){if}<LSEP>[](symbol){plot.eigen}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){inertia}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){inertia}<LEND>[](symbol){inertia}<LEND>[statement 1; call](){}<LSEP>[](symbol){barplot}<LSEP>[](symbol){inertia}<LSEP>[argument 1; litteral](str){Inertia}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){inertia}<LEND>[argument 3; litteral](real){1.000000}<LEND>[statement 51; control flow](){if}<LSEP>[](symbol){plot.score}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){results}<LSEP>[](symbol){nscore}<LSEP>[](symbol){sub.title}<LEND>[statement 52; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){atalp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ipool}<LSEP>[](symbol){id}<LSEP>[](symbol){constraints}<LSEP>[](symbol){refine}<LSEP>[](symbol){permutate}<LSEP>[](symbol){sorttimes}<LSEP>[](symbol){tieselect}<LSEP>[](symbol){type}<LSEP>[](symbol){verbose}<LSEP>[](symbol){aprioriadd}<LSEP>[](symbol){posthocadd}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start_time}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 1; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ID variable name does not matc...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All items have to have a uniqu...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){constraints_list}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){nI}<LSEP>[argument 1; litteral](str){nC}<LSEP>[argument 2; litteral](str){nameC}<LSEP>[argument 3; litteral](str){lowerC}<LSEP>[argument 4; litteral](str){upperC}<LSEP>[argument 5; litteral](str){wC}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){constraints}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Constraints object is missing ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){constraints}<LEND>[argument 2; litteral](str){. Try creating constraints obj...}<LEND>[statement 7; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){constraints_list}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){nI}<LSEP>[argument 1; litteral](str){nC}<LSEP>[argument 2; litteral](str){lowerC}<LSEP>[argument 3; litteral](str){upperC}<LSEP>[argument 4; litteral](str){wC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Elements in constraint object ...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input item pool equals the...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input item pool must conta...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least 2 items have to be se...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least 1 test model constrai...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified constraints variable...}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of lower bound constrai...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of upper bound constrai...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of weights has to match...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All constraints variables must...}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){set_id}<LEND>[litteral](logical){NA}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified set ID name does not...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[](symbol){length}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified set ID accounts for ...}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){catitem}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){x}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){catitem}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){na.omit}<LSEP>[](symbol){catitem}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){Count}<LEND>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[](symbol){sum}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data_structured}<LEND>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){Count}<LEND>[litteral](real){1.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){Count}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){Count}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data_structured}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){id}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){id_removed}<LSEP>[litteral](logical){NA}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){catitem}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){id_removed}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[](symbol){}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){catitem}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){grpids}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){i}<LSEP>[](symbol){ii}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){ii}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){grpids}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){grpids}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){ii}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){grpids}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){grpids}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){remrow}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){grpids}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){iii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){grpids}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){iiii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){grpids}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){iii}<LSEP>[](symbol){iiii}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grpids}<LSEP>[](symbol){iii}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grpids}<LSEP>[](symbol){iiii}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){remrow}<LSEP>[](symbol){iiii}<LEND>[litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){grpids}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grpids}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){remrow}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){keepcase}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){by}<LSEP>[](symbol){grpids}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grpids}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){id_removed}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){grpids}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){id_removed}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id_removed}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){id_removed}<LSEP>[](symbol){keepcase}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[](symbol){id_removed}<LEND>[](symbol){}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){tieselect}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id_removed}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){No}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){id_removed}<LEND>[argument 1; litteral](str){ item(s) were removed as dupli...}<LSEP>[argument 2; litteral](str){}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[](symbol){id}<LEND>[litteral](str){id}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){useconstmat}<LSEP>[](symbol){Count}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){useconstdir}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){=}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){useconstrhs}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[statement 34; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){useconstmat}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){useconstmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){useconstdir}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){useconstdir}<LSEP>[argument 1; litteral](str){>=}<LSEP>[argument 2; litteral](str){<=}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){useconstrhs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){useconstrhs}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){useobjin}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){permutate}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmax}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){catitem}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmax}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){catitem}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[](symbol){catitem}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[](symbol){catitem}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){lpout}<LEND>[call](){}<LSEP>[](symbol){lp}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmin}<LEND>[argument 1; litteral](str){min}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){parmax}<LEND>[argument 1; litteral](str){max}<LSEP>[argument 2; litteral](str){min}<LEND>[](symbol){useobjin}<LSEP>[](symbol){useconstmat}<LSEP>[](symbol){useconstdir}<LSEP>[](symbol){useconstrhs}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No feasible solution found. Ch...}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){alllps}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){permutate}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){sorttimes}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alllps}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){q}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){sorttimes}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){neword}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lpout2}<LEND>[call](){}<LSEP>[](symbol){lp}<LSEP>[argument 0; litteral](str){min}<LSEP>[](symbol){useobjin}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){useconstmat}<LSEP>[](symbol){}<LSEP>[](symbol){neword}<LEND>[](symbol){useconstdir}<LSEP>[](symbol){useconstrhs}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout2}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alllps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){alllps}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){neword}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout2}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){neword}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout2}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Permutation }<LSEP>[](symbol){q}<LSEP>[argument 2; litteral](str){ / }<LSEP>[](symbol){sorttimes}<LSEP>[argument 4; litteral](str){ complete.}<LSEP>[argument 5; litteral](str){}<LEND>[statement 40; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){permutate}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){sorttimes}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alleval}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alllps}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){alllps}<LEND>[argument 1; litteral](str){eval}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){allids}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alllps}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){alllps}<LEND>[argument 1; litteral](str){ids}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){idprofile}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){allids}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ }<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tabidprof}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){idprofile}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){evalU}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){alleval}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){evalL}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){alleval}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){evalD}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){evalU}<LSEP>[](symbol){evalL}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){evalW}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){evalU}<LSEP>[](symbol){evalL}<LEND>[](symbol){evalU}<LSEP>[](symbol){evalL}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){w_evalW}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){evalW}<LSEP>[](symbol){evalD}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){evalW}<LSEP>[](symbol){evalD}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){w_evalW}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){w_evalW}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){w_evalSum}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){w_evalW}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){idprofile}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sorttimes}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sorttimes}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){idprofile}<LEND>[argument 1; litteral](str){lp() solutions failed.}<LSEP>[argument 2; litteral](str){ }<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Selected item solution occured }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){% across permutations, with }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tabidprof}<LEND>[argument 4; litteral](str){ unique item group profiles.}<LSEP>[argument 5; litteral](str){ }<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Selected item solution occured }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){w_evalSum}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){w_evalSum}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){% across permutations, with }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){w_evalSum}<LEND>[argument 4; litteral](str){ unique deviation profiles.}<LSEP>[argument 5; litteral](str){ }<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allids}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){idprofile}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){tabidprof}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allids}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){w_evalSum}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){w_evalSum}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){outid}<LEND>[](symbol){}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){outid}<LEND>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){solution}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outsetid}<LSEP>[](symbol){outid}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){sit}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips_sets}<LSEP>[](symbol){ips}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){outsetid}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){id}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sit}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){id}<LEND>[statement 42; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){evalout}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Constraints}<LSEP>[argument 1; litteral](str){Constraints}<LSEP>[argument 2; litteral](str){Included}<LSEP>[argument 3; litteral](str){Included}<LSEP>[argument 4; litteral](str){Excluded}<LSEP>[argument 5; litteral](str){Excluded}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Lower}<LSEP>[argument 1; litteral](str){Upper}<LSEP>[argument 2; litteral](str){Sum}<LSEP>[argument 3; litteral](str){Average}<LSEP>[argument 4; litteral](str){Sum}<LSEP>[argument 5; litteral](str){Average}<LEND>[](symbol){evalout}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){evalout}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Constraints}<LSEP>[argument 1; litteral](str){Constraints}<LSEP>[argument 2; litteral](str){Included}<LSEP>[argument 3; litteral](str){Included}<LSEP>[argument 4; litteral](str){Excluded}<LSEP>[argument 5; litteral](str){Excluded}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Lower}<LSEP>[argument 1; litteral](str){Upper}<LSEP>[argument 2; litteral](str){Sum}<LSEP>[argument 3; litteral](str){Average}<LSEP>[argument 4; litteral](str){Sum}<LSEP>[argument 5; litteral](str){Average}<LEND>[](symbol){evalout}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){end_time}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 44; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){catitem}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){objval}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){id_removed}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){objval}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){id_removed}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips_sets}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit_sets}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){objval}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lpout}<LSEP>[](symbol){objval}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips_sets}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit_sets}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[statement 45; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){difftime}<LSEP>[](symbol){end_time}<LSEP>[](symbol){start_time}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){ATA terminated successfully.}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){aggregated}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 47; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){permutate}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){refined}<LEND>[](symbol){refine}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){refined}<LEND>[litteral](logical){FALSE}<LEND>[statement 48; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){const}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){permutated}<LEND>[](symbol){permutate}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){permutated}<LEND>[litteral](logical){FALSE}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){runtime}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){end_time}<LSEP>[](symbol){start_time}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){method}<LEND>[litteral](str){lp}<LEND>[statement 51; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){type}<LEND>[](symbol){type}<LEND>[statement 52; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){class}<LEND>[litteral](str){ata}<LEND>[statement 53; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){estout}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.grm.network}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){G}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){node.size}<LSEP>[](symbol){node.label}<LSEP>[](symbol){node.label.size}<LSEP>[](symbol){node.label.color}<LSEP>[](symbol){alpha}<LSEP>[](symbol){title}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){igraph}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){fr}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){kk}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){drl}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Layout method must be...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){fr}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Verbosity must take o...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){links}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LSEP>[](symbol){d}<LEND>[](symbol){d}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){count}<LSEP>[litteral](real){1.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){links}<LSEP>[](symbol){count}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){G}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){links}<LSEP>[](symbol){count}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){G}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){links}<LSEP>[](symbol){count}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){links}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){from}<LSEP>[argument 1; litteral](str){to}<LSEP>[argument 2; litteral](str){weight}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){nodes}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){nodes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){pop}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){network}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){graph_from_data_frame}<LEND>[](symbol){links}<LSEP>[](symbol){nodes}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){colors}<LEND>[call](){}<LSEP>[](symbol){rainbow}<LEND>[argument 0; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){my_colors}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colors}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){quantile}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){links}<LSEP>[](symbol){weight}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alpha}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){network.FS}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){delete_edges}<LEND>[](symbol){network}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){E}<LEND>[](symbol){network}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){links}<LSEP>[](symbol){weight}<LEND>[](symbol){q}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){fr}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){layout.name}<LSEP>[litteral](str){Fruchterman-Reingold layout}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){layout_with_fr}<LEND>[](symbol){network.FS}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){kk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){layout.name}<LSEP>[litteral](str){Kamada-Kawai layout}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){layout_with_kk}<LEND>[](symbol){network.FS}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){drl}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){layout.name}<LSEP>[litteral](str){DrL Graph layout}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){layout_with_drl}<LEND>[](symbol){network.FS}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){title}<LSEP>[argument 1; litteral](str){\n[}<LSEP>[](symbol){layout.name}<LSEP>[argument 3; litteral](str){]}<LEND>[statement 21; control flow](){if}<LSEP>[](symbol){node.label}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){node.label}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){igraph}<LSEP>[](symbol){V}<LEND>[](symbol){network}<LEND>[](symbol){name}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){node.label}<LSEP>[litteral](logical){NA}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){node.label.size}<LSEP>[litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){node.label.color}<LSEP>[litteral](logical){NA}<LEND>[statement 22; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){network.FS}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){node.size}<LSEP>[](symbol){my_colors}<LSEP>[argument 5; litteral](str){#555555}<LSEP>[](symbol){node.label}<LSEP>[](symbol){node.label.color}<LSEP>[](symbol){node.label.size}<LSEP>[](symbol){l}<LSEP>[](symbol){title}<LEND>[statement 23; call](){}<LSEP>[](symbol){legend}<LSEP>[argument 0; litteral](str){bottomleft}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){colors}<LSEP>[argument 3; litteral](str){n}<LSEP>[argument 4; litteral](real){20.000000}<LSEP>[argument 5; litteral](real){3.000000}<LSEP>[argument 6; litteral](real){1.000000}<LSEP>[](symbol){colors}<LSEP>[argument 8; litteral](logical){FALSE}<LEND>[argument 9; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.100000}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){InstallSuggestions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pkg}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){strSuggestions}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tidyverse}<LEND>[argument 1; call](){}<LSEP>[](symbol){PackageDependencies}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](str){Suggests}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Installing suggested packages....}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alreadyInstalled}<LEND>[call](){}<LSEP>[](symbol){PackageIsInstalled}<LSEP>[](symbol){strSuggestions}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){needsUpdate}<LEND>[call](){}<LSEP>[](symbol){PackageNeedsUpdating}<LSEP>[](symbol){strSuggestions}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pkgUpToDate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){strSuggestions}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){alreadyInstalled}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){needsUpdate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pkgNeedsUpdate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){strSuggestions}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){alreadyInstalled}<LSEP>[](symbol){needsUpdate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pkgNeedsInstallation}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){strSuggestions}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){alreadyInstalled}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pkgUpToDate}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){strMessage}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The following packages are alr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){pkgUpToDate}<LSEP>[argument 1; litteral](str){, \n}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){strMessage}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){quiet}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){quiet}<LSEP>[litteral](logical){FALSE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pkgNeedsUpdate}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){strMessage}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The following packages are alr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){pkgNeedsUpdate}<LSEP>[argument 1; litteral](str){, \n}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){strMessage}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Updating ... }<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){install.packages}<LEND>[](symbol){pkgNeedsUpdate}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pkgNeedsInstallation}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){strMessage}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The following packages will be...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){pkgNeedsInstallation}<LSEP>[argument 1; litteral](str){, \n}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){strMessage}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Installing ... }<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){install.packages}<LEND>[](symbol){pkgNeedsInstallation}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){pkgUpToDate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){strSuggestions}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){PackageIsInstalled}<LSEP>[](symbol){strSuggestions}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){PackageNeedsUpdating}<LSEP>[](symbol){strSuggestions}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pkgUpToDate}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){strSuggestions}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){strMessage}<LSEP>[litteral](str){All packages are installed and...}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){strMessage}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bumPackages}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LSEP>[](symbol){strSuggestions}<LSEP>[](symbol){pkgUpToDate}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){strMessage}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Not all packages are installed...}<LSEP>[argument 1; litteral](str){You should try to reinstall th...}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){bumPackages}<LSEP>[argument 1; litteral](str){, \n}<LEND>[statement 2; call](){}<LSEP>[](symbol){warning}<LSEP>[](symbol){strMessage}<LEND>[assign](){<-}<LSEP>[](symbol){PackageIsInstalled}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pkgs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){installed}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){installed.packages}<LEND>[argument 0; litteral](str){Package}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){Package}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){installed}<LEND>[call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){pkgs}<LEND>[argument 1; call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){pkgs}<LSEP>[](symbol){installed}<LEND>[](symbol){installed}<LEND>[assign](){<-}<LSEP>[](symbol){PackageNeedsUpdating}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pkgs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){needsUpdate}<LEND>[call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){pkgs}<LEND>[argument 1; call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){pkgs}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){old.packages}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){needsUpdate}<LEND>[assign](){<-}<LSEP>[](symbol){PackageDependencies}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){x has length > 1. Only the fir...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){deps}<LEND>[call](){}<LSEP>[](symbol){packageDescription}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){deps}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\n}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){deps}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){deps}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){deps}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){deps}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){deps}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){deps}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.heterozygosity}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){t.upper}<LSEP>[](symbol){t.lower}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){t.upper}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t.upper}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error:Parameter 't.upper...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){t.lower}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t.lower}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error:Parameter 't.upper...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){c.na}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){c.hets}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c.na}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c.na}<LSEP>[](symbol){i}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){\n Minimum individual heteroz...}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){c.hets}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Maximum individual heterozyg...}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){c.hets}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Retaining individuals with h...}<LSEP>[](symbol){t.lower}<LSEP>[argument 2; litteral](str){to}<LSEP>[](symbol){t.upper}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){x.kept}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.lower}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.upper}<LEND>[](symbol){}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.upper}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.discarded.upper}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.upper}<LEND>[](symbol){}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.lower}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.discarded.lower}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.lower}<LEND>[](symbol){}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Initial number of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.upper}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of outlier individual...}<LSEP>[](symbol){t.upper}<LSEP>[argument 2; litteral](str){):}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x.discarded.upper}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleted: }<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x.discarded.upper}<LEND>[argument 1; litteral](str){[}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x.discarded.upper}<LEND>[argument 3; litteral](str){],}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){t.upper}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Zero outlier individuals wit...}<LSEP>[](symbol){t.upper}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){c.hets}<LSEP>[](symbol){t.lower}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of outlier individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x.discarded.lower}<LEND>[argument 2; litteral](str){with heterozygosity <}<LSEP>[](symbol){t.lower}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleted: }<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x.discarded.lower}<LEND>[argument 1; litteral](str){[}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x.discarded.lower}<LEND>[argument 3; litteral](str){],}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){t.lower}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No outlying individuals with...}<LSEP>[](symbol){t.lower}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of individuals retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x.kept}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.kept}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.kept}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCompleted:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x.kept}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){tdStats}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LSEP>[](symbol){functions}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sdo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sdm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mbe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mae}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rmse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nmbe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){mbe}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){cvmbe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){mbe}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nmae}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){mae}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){cvmae}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){mae}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nrmse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmse}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){cvrmse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmse}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tStone}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){MBE}<LEND>[call](){}<LSEP>[](symbol){mbe}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){RMSE}<LEND>[call](){}<LSEP>[](symbol){rmse}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[statement 3; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){MBE}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){RMSE}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){MBE}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){r2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[body; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ss}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){functions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LEND>[body; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){m}<LSEP>[](symbol){o}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){ss}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){c}<LSEP>[](symbol){ss}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ss}<LEND>[](symbol){functions}<LEND>[](symbol){ss}<LEND>[assign](){<-}<LSEP>[](symbol){applyStats}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){models}<LSEP>[](symbol){o}<LSEP>[](symbol){functions}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nModels}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){models}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){errModel}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){nModels}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){tdStats}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){models}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){o}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){errModel}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){errModel}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){errModel}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){errModel}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){errModel}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){models}<LEND>[](symbol){errModel}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){update.ada}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){test.x}<LSEP>[](symbol){test.y}<LSEP>[](symbol){n.iter}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](str){ada}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Update routine is for an ada o...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This procedure requires a resp...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){n.iter}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The new number of iterations m...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){n.iter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){iter}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){object}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){y}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){test.dat}<LSEP>[litteral](logical){FALSE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){tlev}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){test.x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){tlev}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){test.y}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){test.x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){test.x}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){test.dat}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tlev}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){test.x must be the testing dat...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){test.x}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ny}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){y}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){test.dat}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){test.y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){test.y}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){control}<LEND>[call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){model}<LEND>[](symbol){trees}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){control}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){na.action}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){lossObj}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){model}<LEND>[](symbol){lossObj}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){ada.machine}<LSEP>[](symbol){x}<LSEP>[](symbol){ny}<LSEP>[](symbol){test.x}<LSEP>[](symbol){test.y}<LSEP>[](symbol){n.iter}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){object}<LSEP>[](symbol){control}<LSEP>[](symbol){na.action}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 15; assign](){=}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){y}<LEND>[](symbol){g}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){True value}<LSEP>[argument 1; litteral](str){Final Prediction}<LEND>[statement 16; assign](){=}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){result}<LSEP>[](symbol){g}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){call}<LEND>[](symbol){tab}<LSEP>[](symbol){n.iter}<LEND>[argument 5; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){y}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){nu}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){bag.frac}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){names}<LEND>[argument 1; litteral](str){ada}<LEND>[](symbol){obj}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mirdwt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){yl}<LSEP>[](symbol){yh}<LSEP>[](symbol){h}<LSEP>[](symbol){L}<LEND>[body; block](){}<LSEP>[statement 0; call](){.Call}<LSEP>[call name; litteral](str){do_mirdwt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){yl}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){yh}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){h}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){L}<LEND>[argument 4; litteral](str){rwt}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2genalex}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){poppr}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){gind}<LEND>[call](){}<LSEP>[](symbol){gl2gi}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 11; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){poppr}<LSEP>[](symbol){genind2genalex}<LEND>[](symbol){gind}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Records written to}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){:}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.keep.loc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){first}<LSEP>[](symbol){last}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){loc.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){first}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){both}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Both a range of loci and a l...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){loc.list}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){list}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ List of loci to keep has bee...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){first}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){range}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Range of loci to keep has be...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Need to specify eit...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){both}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){list}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){case}<LSEP>[](symbol){loc.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){case}<LEND>[argument 1; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Listed loci}<LSEP>[](symbol){case}<LSEP>[argument 2; litteral](str){not present in the dataset -- ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){case}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){range}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){first}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Lower limit to rang...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){first}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Upper limit to rang...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n)}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){last}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){first}<LSEP>[](symbol){last}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Upper limit is smal...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tmp}<LSEP>[](symbol){first}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){first}<LSEP>[](symbol){last}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){last}<LSEP>[](symbol){tmp}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting all but the speci...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){loc.list}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){list.from.range}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){first}<LSEP>[](symbol){last}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){list.from.range}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){first}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){first}<LSEP>[](symbol){last}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){loc.list}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: no loci listed to k...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x2}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[](symbol){loc.list}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[](symbol){loc.list}<LEND>[](symbol){}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci deleted:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){PHASE.MINIMUM}<LSEP>[litteral](str){min}<LEND>[assign](){<-}<LSEP>[](symbol){PHASE.MID}<LSEP>[litteral](str){mid}<LEND>[assign](){<-}<LSEP>[](symbol){PHASE.MAXIMUM}<LSEP>[litteral](str){max}<LEND>[assign](){<-}<LSEP>[](symbol){daubcqf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){argument %s must be numeric sc...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){filter length cannot be negati...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[](symbol){N}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[](symbol){PHASE.MID}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){code not implemented for (%s =...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){type}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){h.0}<LEND>[call](){}<LSEP>[](symbol){.getDaubechiesCoefficients}<LSEP>[](symbol){N}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[](symbol){PHASE.MAXIMUM}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){h.0}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){matlab}<LSEP>[](symbol){fliplr}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){h.0}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){h.0}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000100}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){numerically unstable for this ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h.1}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){matlab}<LSEP>[](symbol){rot90}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){h.0}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h.1}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h.1}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){h.0}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){h.1}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){new_RRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){spec}<LSEP>[argument 1; litteral](str){mu}<LSEP>[argument 2; litteral](str){A}<LSEP>[argument 3; litteral](str){B}<LSEP>[argument 4; litteral](str){D}<LSEP>[argument 5; litteral](str){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){RRR}<LEND>[assign](){<-}<LSEP>[](symbol){fill_narow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mat}<LSEP>[](symbol){n_row}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n_col}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){mat}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nrow_add}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_row}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){mat}<LEND>[statement 2; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nrow_add}<LSEP>[](symbol){n_col}<LEND>[assign](){<-}<LSEP>[](symbol){cbind_na}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mats}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n_row}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){mats}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){mats}<LSEP>[](symbol){fill_narow}<LSEP>[](symbol){n_row}<LEND>[statement 3; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){cbind}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){format.RRR_coef}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LSEP>[](symbol){na_chr}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){na_pos}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){NextMethod}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){na_pos}<LEND>[](symbol){na_chr}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){print.RRR_coef}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){coef.RRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coefficient}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind_na}<LSEP>[](symbol){mu}<LSEP>[](symbol){A}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){Sigma}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LEND>[](symbol){r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){P}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LEND>[](symbol){P}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LEND>[](symbol){R}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){name}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){r}<LEND>[argument 2; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){r}<LEND>[argument 2; litteral](str){}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){R}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){R}<LEND>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){D}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){P}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){coefficient}<LEND>[](symbol){name}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){coefficient}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RRR_coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){coefficient}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){coefficient}<LEND>[assign](){<-}<LSEP>[](symbol){print.RRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Reduced-Rank Regression\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Specifications:\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCoefficients:\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){digits}<LEND>[assign](){<-}<LSEP>[](symbol){print.RRR_data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coefficient}<LEND>[call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind_na}<LSEP>[](symbol){mu}<LSEP>[](symbol){A}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){Sigma}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[](symbol){r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){P}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[](symbol){P}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[](symbol){R}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){name}<LEND>[call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){r}<LEND>[argument 2; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){r}<LEND>[argument 2; litteral](str){}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){R}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){R}<LEND>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){D}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){P}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){spec}<LEND>[call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){N}<LSEP>[](symbol){P}<LSEP>[](symbol){Q}<LSEP>[](symbol){R}<LSEP>[](symbol){r}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){coefficient}<LEND>[](symbol){name}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){coefficient}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RRR_coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){coefficient}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Simulated Data for Reduced-Ran...}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Specifications:\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){spec}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCoefficients:\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){coefficient}<LSEP>[](symbol){digits}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){as.data.frame.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){row.names}<LSEP>[](symbol){optional}<LSEP>[](symbol){...}<LSEP>[](symbol){group.name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){name.fold}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.foldert}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){name.fold}<LSEP>[argument 1; litteral](str){is not of class 'foldert'.}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[litteral](str){folder}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){datf}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[](symbol){...}<LSEP>[](symbol){group.name}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){Date}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.ordered}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){ordered}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){datf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){datf}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddchisqsym}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 must be a data frame or a v...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x2 must be a data frame or a v...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ncol(x1) != ncol(x2)}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){x1 and x2 do not have the same...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x1}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x2}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){ddchisqsympar}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.assign}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){unknown}<LSEP>[](symbol){nmin}<LSEP>[](symbol){dim}<LSEP>[](symbol){alpha}<LSEP>[](symbol){threshold}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alpha}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){unknown}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: Unknown must be l...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Value of alpha must b...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<LSEP>[litteral](real){0.050000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alpha}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){dim}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){dim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Value of dim must be ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dim}<LSEP>[litteral](NULL){NULL}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Threshold value canno...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){utils.pa.ind}<LSEP>[](symbol){x}<LSEP>[](symbol){unknown}<LSEP>[](symbol){nmin}<LSEP>[](symbol){verbose}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){There are no populations retai...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Terminating execution}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){There are no further populatio...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){is the best assignment\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nCOMPUTING ASSIGNMENT BASED...}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){pcoa}<LEND>[call](){}<LSEP>[](symbol){gl.pcoa}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){eig}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){eig}<LEND>[argument 1; litteral](real){100.000000}<LEND>[](symbol){s}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){e}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){e}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){first.est}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){e}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){sec.est}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x2}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){third.est}<LSEP>[litteral](real){8.000000}<LEND>[statement 23; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of populations, inclu...}<LSEP>[](symbol){sec.est}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 24; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of dimensions with su...}<LSEP>[](symbol){first.est}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 25; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Hard coded upper limit to di...}<LSEP>[](symbol){third.est}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){dim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ User specified dimensions to...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ User specified dimensions to...}<LSEP>[](symbol){dim}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){dim}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){first.est}<LSEP>[](symbol){sec.est}<LSEP>[](symbol){third.est}<LSEP>[](symbol){dim}<LEND>[statement 28; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Dimension of confidence en...}<LSEP>[](symbol){dim}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){pcoa}<LEND>[call](){}<LSEP>[](symbol){gl.pcoa}<LSEP>[](symbol){x2}<LSEP>[](symbol){dim}<LEND>[statement 30; call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl.pcoa.plot}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){x2}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[](symbol){alpha}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x2}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){dim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){pop}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){clouds}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){pop}<LEND>[argument 1; litteral](str){unknown}<LEND>[](symbol){}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){unknown}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){c}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){pop}<LEND>[argument 1; litteral](str){unknown}<LEND>[](symbol){}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){unknown}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){unknown}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dim}<LEND>[statement 36; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nLikelihood Index for assignm...}<LSEP>[](symbol){unknown}<LSEP>[argument 2; litteral](str){to listed populations\n\n}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clouds}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){pop}<LEND>[statement 38; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clouds}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){clouds}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){p}<LEND>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dim}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){m}<LEND>[argument 2; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){m}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){means}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){n}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sd}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){std.unknown}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){unknown}<LSEP>[](symbol){means}<LEND>[](symbol){sd}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){std.boundary}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){qnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alpha}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){dim}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){li}<LEND>[call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){std.unknown}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){li}<LEND>[call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){li}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){li.boundary}<LEND>[call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){std.boundary}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){li.boundary}<LEND>[call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){li.boundary}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){li}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){li}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){eig}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dim}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){li.boundary}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){li.boundary}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){eig}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dim}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){li}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){index.boundary}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){li.boundary}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){assign}<LSEP>[litteral](str){no}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){index}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){index.boundary}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){assign}<LSEP>[litteral](str){yes}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){p}<LEND>[](symbol){i}<LEND>[](symbol){index}<LSEP>[](symbol){index.boundary}<LSEP>[](symbol){assign}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LSEP>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){df}<LSEP>[](symbol){tmp}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Population}<LSEP>[argument 1; litteral](str){Index}<LSEP>[argument 2; litteral](str){CE}<LSEP>[argument 3; litteral](str){Assign}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Index}<LEND>[](symbol){}<LEND>[statement 41; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){df}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){best}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Population}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Assign}<LEND>[argument 1; litteral](str){yes}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 43; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Index is a weighted log-like...}<LEND>[statement 44; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ CE is the value of the Index...}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 2; litteral](str){% confidence envelope\n}<LEND>[statement 45; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Best assignment is the popul...}<LSEP>[](symbol){best}<LSEP>[argument 2; litteral](str){\n\n}<LEND>[statement 46; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 47; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){df}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){data}<LSEP>[](symbol){fileIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[](symbol){metaIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[](symbol){geoIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[](symbol){gridIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[](symbol){formatIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.subsample.loci}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){n}<LSEP>[](symbol){method}<LSEP>[](symbol){mono.rm}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pic}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PIC}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pic}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AvgPIC}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting monomorphic loc\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Zero monomorphic loci, none ...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Dataset contains mo...}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){selections\n}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){PIC}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){random}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: parameter method mu...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){random}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: subsample size mu...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){random}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Subsampling at random}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](str){loci from}<LEND>[argument 3; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){object}<LSEP>[argument 5; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){randsel}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[](symbol){n}<LSEP>[](symbol){F}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){randsel}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.new}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){randsel}<LSEP>[](symbol){}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci retained =}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x.new}<LEND>[argument 2; litteral](str){\n}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){PIC}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){pic}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pic}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x.new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.new}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.new}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.new}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci retained =}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x.new}<LEND>[argument 2; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: method must be ...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.new}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.new}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x.new}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gi2gl}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gi}<LSEP>[](symbol){parallel}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){gi}<LEND>[argument 1; litteral](str){genind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genind object r...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){locna}<LEND>[call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){loc.n.all}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ccc}<LSEP>[litteral](real){1.000000}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){locna}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){locna}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ccc}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ccc}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ccc}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ccc}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){genlight}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){tab}<LEND>[](symbol){}<LSEP>[](symbol){ccc}<LEND>[argument 2; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gi}<LEND>[argument 3; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){other}<LEND>[argument 4; litteral](real){2.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gi}<LEND>[argument 6; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gi}<LEND>[](symbol){parallel}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[litteral](logical){FALSE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gl}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){setGeneric}<LSEP>[argument 0; litteral](str){extract}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){list}<LSEP>[argument 1; litteral](str){function}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){atomic}<LSEP>[argument 1; litteral](str){function}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ind}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){formula}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){extract}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.function}<LSEP>[](symbol){ind}<LEND>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setClassUnion}<LSEP>[argument 0; litteral](str){atomicORlist}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){atomic}<LSEP>[argument 1; litteral](str){list}<LEND>[call](){}<LSEP>[](symbol){setClassUnion}<LSEP>[argument 0; litteral](str){numericORintegerORlogical}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](str){integer}<LSEP>[argument 2; litteral](str){logical}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){atomicORlist}<LSEP>[argument 1; litteral](str){numericORintegerORlogical}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){character}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^\\^}<LSEP>[](symbol){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){ind}<LEND>[statement 2; call](){}<LSEP>[](symbol){extract}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){data.frame}<LSEP>[argument 1; litteral](str){character}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mutar}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){setGeneric}<LSEP>[argument 0; litteral](str){extract2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){setClassUnion}<LSEP>[argument 0; litteral](str){numericORinteger}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](str){integer}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){atomicORlist}<LSEP>[argument 1; litteral](str){numericORinteger}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){formula}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){extract2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.function}<LSEP>[](symbol){ind}<LEND>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){atomicORlist}<LSEP>[argument 1; litteral](str){function}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Find}<LEND>[argument 0; call](){}<LSEP>[](symbol){addLengthCheck}<LEND>[argument 0; call](){}<LSEP>[](symbol){addTypeCheck}<LSEP>[](symbol){ind}<LSEP>[argument 1; litteral](str){logical}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){extract2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){character}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^\\^}<LSEP>[](symbol){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){ind}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){extract2}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){readVars}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){params}<LSEP>[](symbol){quiet}<LSEP>[](symbol){progbar}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){progbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){progbar}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){progbar}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lapply}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[statement 2; call](){}<LSEP>[](symbol){checkFile}<LSEP>[](symbol){file}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fn}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){exdir}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){/}<LSEP>[](symbol){fn}<LEND>[statement 3; call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){f}<LSEP>[](symbol){exdir}<LEND>[statement 4; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){Metadaten_Parameter.*txt}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){f}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){nr}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Legende}<LSEP>[argument 1; litteral](str){generie}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){na9}<LEND>[argument 2; litteral](str){;}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 5; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tab}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Parameter}<LSEP>[argument 1; litteral](str){Parameterbeschreibung}<LSEP>[argument 2; litteral](str){Einheit}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){tab}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){dupli}<LEND>[call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tab}<LSEP>[](symbol){Parameter}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){dupli}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){The following entries are}<LSEP>[argument 2; litteral](str){ duplicated: }<LEND>[argument 3; call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tab}<LSEP>[](symbol){Parameter}<LEND>[](symbol){dupli}<LEND>[argument 4; litteral](str){\nThis occurs in '}<LSEP>[](symbol){fn}<LSEP>[argument 6; litteral](str){/Metadaten_Parameter*.txt'}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tab}<LEND>[litteral](NULL){NULL}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){tab2}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){params}<LSEP>[](symbol){tab}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){kurzna}<LEND>[call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tab2}<LSEP>[](symbol){Kurz}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){kurzna}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){The following entries are not}<LSEP>[argument 2; litteral](str){ abbreviated yet: }<LEND>[argument 3; call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tab2}<LSEP>[](symbol){Parameter}<LEND>[](symbol){kurzna}<LEND>[argument 4; litteral](str){\nThis occurs in '}<LSEP>[](symbol){fn}<LSEP>[argument 6; litteral](str){/Metadaten_Parameter*.txt'.}<LSEP>[argument 7; litteral](str){\nPlease inform [email protected]...}<LSEP>[argument 8; litteral](logical){FALSE}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){tab2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){Par}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tab2}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tab2}<LSEP>[](symbol){Par}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tab2}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nometa}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){output}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](str){integer}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){nometa}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){output}<LSEP>[](symbol){nometa}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){nometa}<LEND>[argument 2; litteral](str){ in }<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){exp}<LEND>[call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){_minute}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){nometa}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mexp}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){\nThis is expected since 1 and...}<LSEP>[argument 1; litteral](str){meta-information in most of th...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mnexp}<LSEP>[litteral](str){\nPlease contact [email protected]...}<LEND>[statement 4; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){The number of determined }<LSEP>[argument 2; litteral](str){'Metadaten_Parameter*.txt' fil...}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){msg}<LSEP>[](symbol){exp}<LEND>[argument 1; litteral](str){\n}<LEND>[argument 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){exp}<LEND>[](symbol){mexp}<LEND>[argument 5; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){msg}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){exp}<LEND>[argument 1; litteral](str){\n}<LEND>[argument 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){exp}<LEND>[](symbol){mnexp}<LEND>[argument 7; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){output}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){output}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){output}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){output}<LEND>[assign](){<-}<LSEP>[](symbol){dwdparams}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){read.table}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){\nParameter\tKurz\nABSF_STD\tA...}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){dwdparams}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dwdparams}<LSEP>[](symbol){Parameter}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.mdsdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){main}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){color}<LSEP>[](symbol){fontsize.points}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Since dad-4, nscore must be a ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){and}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){are plotted.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){inertia}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[](symbol){inertia}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){coor}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The components of nscore must ...}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){i1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){coor}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){group}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){color}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){namecol}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){color}<LEND>[statement 1; call](){}<LSEP>[](symbol){assign}<LSEP>[](symbol){namecol}<LSEP>[](symbol){color}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LSEP>[](symbol){namecol}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.200000}<LSEP>[](symbol){fontsize.points}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){main}<LSEP>[](symbol){sub.title}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i1}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i2}<LEND>[argument 3; litteral](str){%)}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){graph}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){makeconstobj}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ipool}<LSEP>[](symbol){id}<LSEP>[](symbol){empty}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){empty}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constraints}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 6; litteral](logical){NA}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){An empty list was created to b...}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){constraints}<LEND>[statement 3; call](){}<LSEP>[](symbol){stop}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ID variable name does not matc...}<LEND>[statement 3; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Based on the ID name you submi...}<LSEP>[](symbol){id}<LSEP>[argument 2; litteral](str){', there are }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LSEP>[](symbol){id}<LEND>[argument 4; litteral](str){ items in the submitted data. }<LSEP>[argument 5; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){readline}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Is the number of independent i...}<LSEP>[argument 1; litteral](str){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](str){yes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Function is terminated. Please...}<LEND>[statement 6; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tt}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){constraints}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 8; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){ATA form will be created based...}<LEND>[statement 9; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LSEP>[argument 0; litteral](str){How many constraints do you ha...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Number of constraints exceeds ...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Number of constraints should b...}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){nC}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){tt}<LEND>[statement 11; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tt}<LEND>[statement 12; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Constraints will be selected f...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){readline}<LSEP>[argument 0; litteral](str){Do you want to see all unique ...}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](str){yes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tt}<LEND>[statement 16; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Among the variables in the sub...}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 2; litteral](str){ variables to be used as ATA c...}<LSEP>[argument 3; litteral](str){}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){nameC}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 18; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Constraint name}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](str){: }<LSEP>[argument 3; litteral](str){ }<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Variable name does not match t...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nameC}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){nameC}<LSEP>[](symbol){tt}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){nameC}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){nameC}<LEND>[statement 20; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){nameC}<LSEP>[](symbol){tt}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All constraints variables must...}<LEND>[statement 22; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){What are the lower bound value...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){lowerC}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 24; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Lower bound value for constraint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](str){: }<LSEP>[argument 3; litteral](str){ }<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tt}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Bound values should be provide...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lowerC}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lowerC}<LSEP>[](symbol){tt}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){lowerC}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){lowerC}<LEND>[statement 26; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){lowerC}<LSEP>[](symbol){tt}<LEND>[statement 27; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){What are the upper bound value...}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){upperC}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 29; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Upper bound value for constraint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](str){: }<LSEP>[argument 3; litteral](str){ }<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tt}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Bound values should be provide...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){upperC}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){upperC}<LSEP>[](symbol){tt}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){upperC}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){upperC}<LEND>[statement 31; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){upperC}<LSEP>[](symbol){tt}<LEND>[statement 32; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){What are the weights for the c...}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){wC}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 34; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Weight for constraint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](str){: }<LSEP>[argument 3; litteral](str){ }<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tt}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Weights should be provided as ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wC}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){wC}<LSEP>[](symbol){tt}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){wC}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){wC}<LEND>[statement 36; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){wC}<LSEP>[](symbol){tt}<LEND>[statement 37; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Please specify the ATA form le...}<LEND>[statement 38; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LSEP>[argument 0; litteral](str){What is the total number of it...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){The input item pool must conta...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Number of items to be selected...}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){nI}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){tt}<LEND>[statement 40; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tt}<LEND>[statement 41; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Please specify whether there a...}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){yn}<LEND>[call](){}<LSEP>[](symbol){readline}<LSEP>[argument 0; litteral](str){Would you like to aggregate th...}<LEND>[statement 43; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){yn}<LSEP>[argument 1; litteral](str){yes}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){readline}<LSEP>[argument 0; litteral](str){What is the set ID column name...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tt}<LSEP>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){set ID cannot be the same as i...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){set ID name is already in use ...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){set ID name does not match the...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){yn}<LSEP>[argument 1; litteral](str){yes}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LSEP>[litteral](logical){NA}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){No set ID was defined.}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){set_id}<LEND>[](symbol){tt}<LEND>[statement 45; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tt}<LSEP>[](symbol){yn}<LEND>[statement 46; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Complex list object identifyin...}<LEND>[statement 47; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){constraints}<LEND>[statement 48; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){0.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rrat.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){taus}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rq_model}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rq_y}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){taus}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rq_coefficients}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){taus}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){temp_data}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){taus}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rq_model}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){quantreg}<LSEP>[](symbol){rq}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taus}<LSEP>[](symbol){j}<LEND>[](symbol){temp_data}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rq_y}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rq_model}<LSEP>[](symbol){j}<LEND>[](symbol){fitted.values}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rq_coefficients}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rq_model}<LSEP>[](symbol){j}<LEND>[](symbol){coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rq_y_mean}<LEND>[call](){}<LSEP>[](symbol){rowMeans}<LSEP>[](symbol){rq_y}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){rq_coefficients}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rq_model}<LSEP>[](symbol){j}<LEND>[](symbol){coefficients}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){rrat_coefficients}<LEND>[call](){}<LSEP>[](symbol){rowMeans}<LSEP>[](symbol){rq_coefficients}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){bias_correction}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LSEP>[](symbol){rq_y_mean}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){fitted_values}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rq_y_mean}<LSEP>[](symbol){bias_correction}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rrat_coefficients}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rrat_coefficients}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bias_correction}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){taus}<LSEP>[](symbol){rrat_coefficients}<LSEP>[](symbol){rq_coefficients}<LSEP>[](symbol){bias_correction}<LSEP>[](symbol){fitted_values}<LSEP>[](symbol){rq_model}<LSEP>[](symbol){rq_y}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){rrat}<LEND>[](symbol){result}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){dct}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}<LEND>[body; call](){}<LSEP>[](symbol){dtt}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){dct}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.mdsdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){joint}<LSEP>[](symbol){margin1}<LSEP>[](symbol){margin2}<LSEP>[](symbol){association}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){group variable: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variables: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){inertia\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){coordinates\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){joint}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Joint probability distribution\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){jointp}<LEND>[](symbol){...}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){margin1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Marginal probability distribut...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){margins}<LEND>[](symbol){margin1}<LEND>[](symbol){...}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){margin2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Marginal probabilities per com...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){margins}<LEND>[](symbol){margin2}<LEND>[](symbol){...}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){association}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){association measures per coupl...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){association}<LEND>[](symbol){...}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){parse_user_create_body}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){body}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_extract}<LEND>[](symbol){body}<LSEP>[argument 1; litteral](str){\\d+}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Failed to parse response body ...}<LEND>[statement 2; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){id}<LEND>[assign](){<-}<LSEP>[](symbol){rt_user_create}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){name}<LSEP>[](symbol){password}<LSEP>[](symbol){email_address}<LSEP>[](symbol){real_name}<LSEP>[](symbol){organization}<LSEP>[](symbol){privileged}<LSEP>[](symbol){disabled}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){compact}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){name}<LSEP>[](symbol){password}<LSEP>[](symbol){email_address}<LSEP>[](symbol){real_name}<LSEP>[](symbol){organization}<LSEP>[](symbol){privileged}<LSEP>[](symbol){disabled}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){user_info}<LEND>[call](){}<LSEP>[](symbol){construct_newline_pairs}<LSEP>[](symbol){params}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){user}<LSEP>[argument 1; litteral](str){new}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){user_info}<LEND>[](symbol){...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_detect}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[argument 1; litteral](str){Could not create user.}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Could not create user }<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){. Check that properties such a...}<LSEP>[argument 3; litteral](str){are unique for the user.}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 5; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){parse_user_create_body}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dataTableMutate}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){byReference}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){dat.use.reference.semantics}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){mutateDataTable}<LEND>[argument 0; control flow](){if}<LSEP>[](symbol){byReference}<LSEP>[](symbol){x}<LEND>[false branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){copy}<LEND>[](symbol){x}<LEND>[](symbol){args}<LSEP>[argument 2; litteral](str){':='}<LSEP>[argument 3; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){dataTableMutateBy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){by}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){byReference}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){dat.use.reference.semantics}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){mutateDataTable}<LEND>[argument 0; control flow](){if}<LSEP>[](symbol){byReference}<LSEP>[](symbol){x}<LEND>[false branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){copy}<LEND>[](symbol){x}<LEND>[](symbol){args}<LSEP>[argument 2; litteral](str){':='}<LSEP>[](symbol){by}<LEND>[assign](){<-}<LSEP>[](symbol){dataTableSummariseBy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){by}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){callDataTable}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[argument 2; litteral](str){.}<LSEP>[](symbol){by}<LEND>[assign](){<-}<LSEP>[](symbol){mutateDataTable}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){fun}<LSEP>[](symbol){by}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){colsTmp}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){.__}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[argument 2; litteral](str){__}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cols}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[](symbol){colsTmp}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){listOfNames}<LEND>[call](){}<LSEP>[](symbol){as.list}<LSEP>[](symbol){cols}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){listOfNames}<LEND>[](symbol){colsTmp}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){colsInX}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){cols}<LEND>[statement 6; call](){}<LSEP>[](symbol){callDataTable}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){fun}<LSEP>[](symbol){by}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){colsInX}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){colsInX}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[statement 8; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rename}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LEND>[](symbol){listOfNames}<LEND>[assign](){<-}<LSEP>[](symbol){callDataTable}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){fun}<LSEP>[](symbol){by}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){by}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){by}<LEND>[true branch; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){,keyby=.(}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 2; litteral](str){)}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){arg}<LEND>[call](){}<LSEP>[](symbol){dataTableArgs}<LSEP>[](symbol){args}<LSEP>[](symbol){fun}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){expr}<LEND>[call](){}<LSEP>[](symbol){parse}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){.__x__[,}<LSEP>[](symbol){arg}<LSEP>[](symbol){by}<LSEP>[argument 3; litteral](str){]}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){env}<LEND>[call](){}<LSEP>[](symbol){new.env}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){env}<LSEP>[](symbol){.__x__}<LEND>[](symbol){x}<LEND>[statement 5; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){expr}<LSEP>[](symbol){env}<LEND>[assign](){<-}<LSEP>[](symbol){dataTableArgs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){args}<LSEP>[](symbol){fun}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){fun}<LSEP>[argument 1; litteral](str){(}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){, }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){ = }<LEND>[argument 3; litteral](str){)}<LEND>[assign](){<-}<LSEP>[](symbol){rename}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){x}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[](symbol){n}<LEND>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ttwa}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){origin}<LSEP>[](symbol){destination}<LSEP>[](symbol){flow}<LSEP>[](symbol){conti}<LSEP>[](symbol){minimum_link}<LSEP>[](symbol){size_center}<LSEP>[](symbol){list_center}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){conti}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){origin}<LSEP>[](symbol){destination}<LSEP>[](symbol){flow}<LSEP>[](symbol){conti}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){origin}<LSEP>[argument 1; litteral](str){destination}<LSEP>[argument 2; litteral](str){flow}<LSEP>[argument 3; litteral](str){conti}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){origin}<LSEP>[](symbol){destination}<LSEP>[](symbol){flow}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){origin}<LSEP>[argument 1; litteral](str){destination}<LSEP>[argument 2; litteral](str){flow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pb_0}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){flow}<LSEP>[](symbol){origin}<LEND>[](symbol){data}<LSEP>[](symbol){sum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pb_0}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pb_0}<LSEP>[](symbol){origin}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pb_0}<LSEP>[](symbol){flow}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){origin}<LEND>[](symbol){pb_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){destination}<LEND>[](symbol){pb_0}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){data.table}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){origin}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){.link_rate}<LSEP>[](symbol){temp}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){log}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){zoning}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){origin}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){destination}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){origin}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){destination}<LEND>[](symbol){F}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Greedy processus : \n}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pb}<LEND>[call](){}<LSEP>[](symbol){txtProgressBar}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zoning}<LEND>[argument 2; litteral](real){3.000000}<LEND>[statement 10; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zoning}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){link_maximum}<LEND>[call](){}<LSEP>[](symbol){.link_max}<LSEP>[](symbol){temp}<LSEP>[](symbol){size_center}<LSEP>[](symbol){conti}<LSEP>[](symbol){list_center}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){link_maximum}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){link_maximum}<LSEP>[](symbol){link}<LEND>[](symbol){minimum_link}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){.aggregate_data}<LSEP>[](symbol){temp}<LSEP>[](symbol){link_maximum}<LSEP>[](symbol){conti}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){log}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){log}<LSEP>[](symbol){link_maximum}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zoning}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zoning}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){link_maximum}<LSEP>[](symbol){origin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){link_maximum}<LSEP>[](symbol){destination}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){setTxtProgressBar}<LSEP>[](symbol){pb}<LSEP>[](symbol){i}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 11; call](){}<LSEP>[](symbol){close}<LSEP>[](symbol){pb}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){statistic}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){flow}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){flow}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){origin}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){destination}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){origin}<LEND>[](symbol){sum}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){statistic}<LSEP>[](symbol){rate_steady}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){statistic}<LSEP>[](symbol){rate_steady}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){statistic}<LSEP>[](symbol){t_outflow}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){statistic}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){statistic}<LEND>[argument 1; call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zoning}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zoning}<LSEP>[](symbol){zone}<LEND>[](symbol){sum}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){zoning}<LSEP>[](symbol){log}<LSEP>[](symbol){temp}<LSEP>[](symbol){statistic}<LEND>[argument 1; litteral](str){zoning}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.RepAvg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){threshold}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: This function will be...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Threshold value for r...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.990000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){Reproducibility}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Dataset does not ...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){RepAvg}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Dataset does not ...}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){na.counter}<LSEP>[litteral](real){0.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Identifying loci with repeat...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repeatability}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){Reproducibility}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repeatability}<LSEP>[](symbol){i}<LEND>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repeatability}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){RepAvg}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repeatability}<LSEP>[](symbol){i}<LEND>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){loc.list}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){loc.list}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing loci with repeatabi...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.loc}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.list}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No loci with repeatability l...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Summary of filtered dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Retaining loci with repeatab...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original no. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci discarded:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.outflank}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gi}<LSEP>[](symbol){plot}<LSEP>[](symbol){LeftTrimFraction}<LSEP>[](symbol){RightTrimFraction}<LSEP>[](symbol){Hmin}<LSEP>[](symbol){qthreshold}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){qvalue}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){gi}<LSEP>[argument 1; litteral](str){genlight}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gi}<LEND>[call](){}<LSEP>[](symbol){gl2gi}<LSEP>[](symbol){gi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){snpmat}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){gi}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){snpmat}<LEND>[call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){snpmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){snpmat}<LEND>[argument 2; litteral](real){9.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mdfm}<LEND>[call](){}<LSEP>[](symbol){util.outflank.MakeDiploidFSTMat}<LSEP>[](symbol){snpmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){snpmat}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){pop}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){outf}<LEND>[call](){}<LSEP>[](symbol){util.outflank}<LSEP>[](symbol){mdfm}<LSEP>[](symbol){LeftTrimFraction}<LSEP>[](symbol){RightTrimFraction}<LSEP>[](symbol){Hmin}<LEND>[argument 4; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gi}<LSEP>[](symbol){pop}<LEND>[](symbol){qthreshold}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; call](){}<LSEP>[](symbol){util.outflank.plotter}<LSEP>[](symbol){outf}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){index.outflank}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outf}<LSEP>[](symbol){results}<LEND>[](symbol){OutlierFlag}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){index.outflank}<LSEP>[](symbol){outf}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){WC_FST_Diploids_2Alleles}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Sample_Mat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){sample_sizes}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){Sample_Mat}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){n_ave}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){sample_sizes}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){n_pops}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){Sample_Mat}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){r}<LSEP>[](symbol){n_pops}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){n_c}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_pops}<LSEP>[](symbol){n_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sample_sizes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_pops}<LSEP>[](symbol){n_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_pops}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){p_freqs}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sample_Mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sample_Mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){sample_sizes}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){p_ave}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sample_sizes}<LSEP>[](symbol){p_freqs}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_ave}<LSEP>[](symbol){n_pops}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){s2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sample_sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p_freqs}<LSEP>[](symbol){p_ave}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_pops}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n_ave}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){s2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){h_freqs}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sample_Mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){sample_sizes}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){h_ave}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sample_sizes}<LSEP>[](symbol){h_freqs}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_ave}<LSEP>[](symbol){n_pops}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n_ave}<LSEP>[](symbol){n_c}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){s2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_ave}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){r}<LEND>[](symbol){s2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){h_ave}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_ave}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){r}<LEND>[](symbol){s2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n_ave}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){n_ave}<LEND>[](symbol){h_ave}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){h_ave}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){aNoCorr}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n_ave}<LSEP>[](symbol){n_c}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){s2}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){bNoCorr}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){r}<LEND>[](symbol){s2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n_ave}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){n_ave}<LEND>[](symbol){h_ave}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){cNoCorr}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){h_ave}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){He}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p_ave}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p_ave}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){FST}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[](symbol){c}<LEND>[statement 19; assign](){=}<LSEP>[](symbol){FSTNoCorr}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){aNoCorr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){aNoCorr}<LSEP>[](symbol){bNoCorr}<LEND>[](symbol){cNoCorr}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){He}<LSEP>[](symbol){FST}<LSEP>[](symbol){a}<LEND>[argument 3; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[](symbol){c}<LEND>[](symbol){FSTNoCorr}<LSEP>[](symbol){aNoCorr}<LEND>[argument 6; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){aNoCorr}<LSEP>[](symbol){bNoCorr}<LEND>[](symbol){cNoCorr}<LEND>[](symbol){p_ave}<LEND>[assign](){<-}<LSEP>[](symbol){util.outflank.MakeDiploidFSTMat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){SNPmat}<LSEP>[](symbol){locusNames}<LSEP>[](symbol){popNames}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){locusname}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){locusNames}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){popname}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){popNames}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){snplevs}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){SNPmat}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ls}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){snplevs}<LSEP>[argument 1; litteral](str){}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){ls}<LSEP>[argument 1; litteral](str){012}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){ls}<LSEP>[argument 1; litteral](str){0129}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Error: Your snp matrix does no...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){SNPmat}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){popname}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Error: your population names d...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){SNPmat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){locusname}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Error: your locus names do no...}<LEND>[statement 7; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){Calculating FSTs, may take a f...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nloci}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){locusname}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){FSTmat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nloci}<LSEP>[argument 2; litteral](real){8.000000}<LEND>[statement 10; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nloci}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FSTmat}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){getFSTs_diploids}<LSEP>[](symbol){popname}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){SNPmat}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){10000.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](str){done of}<LSEP>[](symbol){nloci}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){outTemp}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){FSTmat}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){outTemp}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){locusname}<LSEP>[](symbol){outTemp}<LEND>[statement 13; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){outTemp}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LocusName}<LSEP>[argument 1; litteral](str){He}<LSEP>[argument 2; litteral](str){FST}<LSEP>[argument 3; litteral](str){T1}<LSEP>[argument 4; litteral](str){T2}<LSEP>[argument 5; litteral](str){FSTNoCorr}<LSEP>[argument 6; litteral](str){T1NoCorr}<LSEP>[argument 7; litteral](str){T2NoCorr}<LSEP>[argument 8; litteral](str){meanAlleleFreq}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){outTemp}<LEND>[assign](){=}<LSEP>[](symbol){getFSTs_diploids}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){popNameList}<LSEP>[](symbol){SNPDataColumn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){popnames}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){popNameList}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){popNameTemp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){popnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){SNPDataColumn}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){snpDataTemp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){SNPDataColumn}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){SNPDataColumn}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){HetCounts}<LEND>[call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){snpDataTemp}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){popNameTemp}<LSEP>[](symbol){snpDataTemp}<LEND>[](symbol){length}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){HetCounts}<LEND>[litteral](real){0.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<LSEP>[argument 6; litteral](logical){NA}<LSEP>[argument 7; litteral](logical){NA}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; litteral](str){}<LEND>[argument 1; litteral](str){01}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){HetCounts}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){HetCounts}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; litteral](str){}<LEND>[argument 1; litteral](str){12}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){HetCounts}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){HetCounts}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){HetCounts}<LEND>[argument 1; litteral](str){}<LEND>[argument 1; litteral](str){02}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){HetCounts}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HetCounts}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HetCounts}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){WC_FST_Diploids_2Alleles}<LSEP>[](symbol){HetCounts}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){backtrack}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gcm}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gcm}<LSEP>[](symbol){stepPattern}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){npat}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){npat}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gcm}<LSEP>[](symbol){costMatrix}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gcm}<LSEP>[](symbol){costMatrix}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){i}<LSEP>[](symbol){n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gcm}<LSEP>[](symbol){jmin}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nullrows}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){nullrows}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){stepsCache}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){stepsCache}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){.extractpattern}<LSEP>[](symbol){tmp}<LSEP>[](symbol){k}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){iis}<LEND>[assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){jjs}<LEND>[assign](){<-}<LSEP>[](symbol){jj}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){j}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ss}<LSEP>[litteral](NULL){NULL}<LEND>[statement 13; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gcm}<LSEP>[](symbol){directionMatrix}<LEND>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){s}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ss}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){s}<LSEP>[](symbol){ss}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){steps}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){stepsCache}<LSEP>[](symbol){s}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ns}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){steps}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){steps}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){ii}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){jj}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){steps}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){jj}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){steps}<LSEP>[](symbol){ns}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){steps}<LSEP>[](symbol){ns}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){iis}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){iis}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){jjs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){j}<LSEP>[](symbol){jjs}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ii}<LSEP>[](symbol){jj}<LSEP>[](symbol){iis}<LSEP>[](symbol){jjs}<LSEP>[](symbol){ss}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mdwt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){h}<LSEP>[](symbol){L}<LEND>[body; block](){}<LSEP>[statement 0; call](){.Call}<LSEP>[call name; litteral](str){do_mdwt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){h}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){L}<LEND>[argument 3; litteral](str){rwt}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){read.mtg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){listdf}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mtgcomplete}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){CLASSES:}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){should contain a line 'CLASSES:'}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){DESCRIPTION:}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){should contain a line 'DESCRIP...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){FEATURES:}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){should contain a line 'FEATURES:'}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){MTG:}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){should contain a line 'MTG:'}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){beginclasses}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){CLASSES:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){begindescription}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){DESCRIPTION:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beginfeatures}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){FEATURES:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){beginmtg}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtgcomplete}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){MTG:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){endclasses}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){begindescription}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){enddescription}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beginfeatures}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){endfeatures}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beginmtg}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){classes1}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){\t}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){endclasses}<LSEP>[](symbol){beginclasses}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beginclasses}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[argument 7; litteral](logical){TRUE}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){colnotna}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){classes1}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){any}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes1}<LSEP>[](symbol){}<LSEP>[](symbol){colnotna}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){classes}<LEND>[](symbol){classes}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){description1}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){\t}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){enddescription}<LSEP>[](symbol){begindescription}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){begindescription}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[argument 7; litteral](logical){TRUE}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){colnotna}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){description1}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){any}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){description}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){description1}<LSEP>[](symbol){}<LSEP>[](symbol){colnotna}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){description}<LEND>[](symbol){description}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){endfeatures}<LSEP>[](symbol){beginfeatures}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){features1}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){\t}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){endfeatures}<LSEP>[](symbol){beginfeatures}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beginfeatures}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){FALSE}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){features1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){features1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){features1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){features1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){colnotna}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){features1}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){any}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){features}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){features1}<LSEP>[](symbol){}<LSEP>[](symbol){colnotna}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){features}<LSEP>[](symbol){features1}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){features}<LEND>[](symbol){features}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){mtg1}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){\t}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beginmtg}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){TRUE}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){colnotna}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){mtg1}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){any}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){mtg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg1}<LSEP>[](symbol){}<LSEP>[](symbol){colnotna}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){features}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coltopo}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){mtg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coltopo}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){features}<LSEP>[](symbol){NAME}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[](symbol){coltopo}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){order}<LSEP>[](symbol){coltopo}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){colmtg.feat}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){coltopo}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){features}<LSEP>[](symbol){NAME}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){colmtg.feat}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Some of the column names of 'm...}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mtg}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n0}<LSEP>[](symbol){y}<LEND>[](symbol){paste}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){Id}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){mtg}<LEND>[](symbol){Id}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){entity}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 1; litteral](str){order}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){vectentity}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){entity}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){paste}<LSEP>[argument 3; litteral](str){}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){entity}<LEND>[](symbol){Id}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){entity}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){entity}<LSEP>[](symbol){vectentity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){norder}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){entity}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){topology}<LEND>[](symbol){entity}<LEND>[statement 42; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){XX}<LSEP>[argument 1; litteral](str){YY}<LSEP>[argument 2; litteral](str){ZZ}<LSEP>[argument 3; litteral](str){AA}<LSEP>[argument 4; litteral](str){BB}<LSEP>[argument 5; litteral](str){CC}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){jcoord}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){XX}<LSEP>[argument 1; litteral](str){YY}<LSEP>[argument 2; litteral](str){ZZ}<LSEP>[argument 3; litteral](str){AA}<LSEP>[argument 4; litteral](str){BB}<LSEP>[argument 5; litteral](str){CC}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){jcoord}<LEND>[call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 43; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){jcoord}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){coordinates}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){}<LSEP>[](symbol){jcoord}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){coordinates}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){coordinates}<LEND>[](symbol){coordinates}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){feat.in.mtg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){features}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){features}<LSEP>[](symbol){NAME}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mtg}<LEND>[](symbol){}<LEND>[statement 46; assign](){<-}<LSEP>[](symbol){feat.string}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feat.in.mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){feat.in.mtg}<LSEP>[](symbol){TYPE}<LEND>[argument 1; litteral](str){STRING}<LEND>[argument 2; litteral](str){NAME}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){warn.string}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){feat.string}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.character}<LEND>[statement 48; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){warn.string}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Features: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){warn.string}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){ should be STRING\n but the co...}<LEND>[statement 49; assign](){<-}<LSEP>[](symbol){feat.num}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feat.in.mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){feat.in.mtg}<LSEP>[](symbol){TYPE}<LEND>[argument 1; litteral](str){REAL}<LEND>[argument 2; litteral](str){NAME}<LEND>[statement 50; assign](){<-}<LSEP>[](symbol){warn.num}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){feat.num}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[statement 51; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){warn.num}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Features: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){warn.num}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){ should be REAL\n but the corr...}<LEND>[statement 52; assign](){<-}<LSEP>[](symbol){feat.int}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){feat.in.mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){feat.in.mtg}<LSEP>[](symbol){TYPE}<LEND>[argument 1; litteral](str){INT}<LEND>[argument 2; litteral](str){NAME}<LEND>[statement 53; assign](){<-}<LSEP>[](symbol){warn.int}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){feat.int}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.integer}<LEND>[statement 54; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){warn.int}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Features: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){warn.int}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){ should be INT\n but the corre...}<LEND>[statement 55; assign](){<-}<LSEP>[](symbol){supprespace}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ }<LEND>[statement 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){a}<LSEP>[argument 1; litteral](str){}<LEND>[statement 56; control flow](){for}<LSEP>[](symbol){feat}<LSEP>[](symbol){feat.string}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){}<LSEP>[](symbol){feat}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){}<LSEP>[](symbol){feat}<LEND>[](symbol){supprespace}<LEND>[statement 57; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mtg}<LSEP>[argument 1; litteral](str){}<LEND>[litteral](logical){NA}<LEND>[statement 58; assign](){<-}<LSEP>[](symbol){vclass}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){classes}<LSEP>[](symbol){SCALE}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){SYMBOL}<LEND>[statement 59; assign](){<-}<LSEP>[](symbol){class.miss}<LEND>[call](){}<LSEP>[](symbol){character}<LEND>[statement 60; control flow](){for}<LSEP>[](symbol){sym}<LSEP>[](symbol){vclass}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i.sc}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[](symbol){sym}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){entity}<LSEP>[](symbol){vertex}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dfsym}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mtg}<LSEP>[](symbol){i.sc}<LSEP>[](symbol){}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dfsym}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class.miss}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){class.miss}<LSEP>[](symbol){sym}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dfsym}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){jomit}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){dfsym}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){jomit}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){dfsym}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.na}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){min}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){jomit}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){norder}<LEND>[](symbol){jcoord}<LSEP>[](symbol){jomit}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){listdf}<LSEP>[](symbol){sym}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dfsym}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){jomit}<LEND>[statement 61; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){class.miss}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The class(es) }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){class.miss}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){ are absent from the plant top...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){classes}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){listdf}<LSEP>[](symbol){classes}<LEND>[](symbol){SYMBOL}<LEND>[](symbol){class.miss}<LEND>[](symbol){}<LEND>[statement 62; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){listdf}<LEND>[litteral](str){foldermtg}<LEND>[statement 63; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){listdf}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){jeffreys}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x2}<LEND>[](symbol){p}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 and x2 must be two vectors,...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){drop}<LSEP>[](symbol){x1}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){drop}<LSEP>[](symbol){x2}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){jeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x2}<LEND>[argument 3; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[](symbol){check}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){jeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x2}<LEND>[argument 3; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[](symbol){check}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){readMeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){progbar}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkFile}<LSEP>[](symbol){file}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){progbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){progbar}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){progbar}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lapply}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fn}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){exdir}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){/}<LSEP>[](symbol){fn}<LEND>[statement 2; call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){f}<LSEP>[](symbol){exdir}<LEND>[statement 3; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fm}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){*.txt}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){fm}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fm}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){fm}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){7.000000}<LEND>[argument 1; litteral](str){produkt}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tabs}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){lapply}<LEND>[](symbol){fm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fi}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){fi}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){nr}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Legende}<LSEP>[argument 1; litteral](str){generie}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){fi}<LSEP>[argument 1; litteral](str){;}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){...}<LEND>[](symbol){tab}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tabs}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){fm}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tabs}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){output}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){output}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){output}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){output}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mean.folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LSEP>[](symbol){na.rm}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fold}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jnum}<LEND>[call](){}<LSEP>[](symbol){logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){jnum}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){notnum}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){jnum}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){notnum}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){There are omitted variables (n...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){notnum}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 2; litteral](str){}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold.num}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold.num}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){jnum}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold.num}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){na.rm}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_history_comment}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){comment_text}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){ticket}<LSEP>[](symbol){ticket_id}<LSEP>[argument 2; litteral](str){comment}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){comment}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){id: %s\nAction: comment\nText: %s}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){comment_text}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){comment}<LEND>[](symbol){...}<LEND>[statement 3; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 4; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){ticket_id}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){lldist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lat}<LSEP>[](symbol){long}<LSEP>[](symbol){data}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){data}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lat}<LEND>[call](){}<LSEP>[](symbol){getColumn}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){lat}<LEND>[](symbol){data}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){long}<LEND>[call](){}<LSEP>[](symbol){getColumn}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){long}<LEND>[](symbol){data}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lat}<LSEP>[](symbol){i}<LEND>[](symbol){pi}<LEND>[argument 1; litteral](real){180.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){long}<LSEP>[](symbol){i}<LEND>[](symbol){pi}<LEND>[argument 1; litteral](real){180.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){y2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){lat}<LSEP>[](symbol){pi}<LEND>[argument 1; litteral](real){180.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){long}<LSEP>[](symbol){pi}<LEND>[argument 1; litteral](real){180.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){cosinusangle}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sin}<LSEP>[](symbol){y1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LSEP>[](symbol){y2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){y1}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){y2}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){cosinusangle}<LEND>[call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){cosinusangle}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){cosinusangle}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){angle}<LEND>[call](){}<LSEP>[](symbol){acos}<LSEP>[](symbol){cosinusangle}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tol}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){samepoint}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x2}<LSEP>[](symbol){x1}<LEND>[](symbol){tol}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y2}<LSEP>[](symbol){y1}<LEND>[](symbol){tol}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){angle}<LSEP>[](symbol){samepoint}<LEND>[litteral](real){0.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){angle}<LEND>[assign](){<-}<LSEP>[](symbol){maxlldist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lat}<LSEP>[](symbol){long}<LSEP>[](symbol){data}<LSEP>[](symbol){r}<LSEP>[](symbol){fun}<LSEP>[](symbol){each}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){data}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lat}<LEND>[call](){}<LSEP>[](symbol){getColumn}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){lat}<LEND>[](symbol){data}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){long}<LEND>[call](){}<LSEP>[](symbol){getColumn}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){long}<LEND>[](symbol){data}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lat}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){d}<LSEP>[litteral](real){0.000000}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){lat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){lldist}<LSEP>[](symbol){lat}<LSEP>[](symbol){long}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){each}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){fun}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){d}<LEND>[statement 4; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){fun}<LSEP>[](symbol){...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matdistl2d}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){varwL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){matdistl2d now applies to an o...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x must be an object of class '...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Non numeric column(s) in the d...}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){varwL}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 9; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fpcat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LSEP>[](symbol){method}<LSEP>[](symbol){ind}<LSEP>[](symbol){nvar}<LSEP>[](symbol){gaussiand}<LSEP>[](symbol){windowh}<LSEP>[](symbol){normed}<LSEP>[](symbol){centered}<LSEP>[](symbol){data.centered}<LSEP>[](symbol){data.scaled}<LSEP>[](symbol){common.variance}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){plot.eigen}<LSEP>[](symbol){plot.score}<LSEP>[](symbol){nscore}<LSEP>[](symbol){filename}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.foldert}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fpcat applies to a data frame ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){as.foldert}<LSEP>[](symbol){xf}<LSEP>[](symbol){method}<LSEP>[](symbol){ind}<LSEP>[](symbol){group.name}<LSEP>[](symbol){nvar}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){group.name}<LSEP>[litteral](str){time}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){times}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){xf}<LEND>[litteral](str){folder}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){fpcad}<LSEP>[](symbol){xf}<LSEP>[](symbol){gaussiand}<LSEP>[](symbol){windowh}<LSEP>[](symbol){normed}<LSEP>[](symbol){centered}<LSEP>[](symbol){data.centered}<LSEP>[](symbol){data.scaled}<LSEP>[](symbol){common.variance}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){plot.eigen}<LSEP>[](symbol){plot.score}<LSEP>[](symbol){nscore}<LSEP>[](symbol){group.name}<LSEP>[](symbol){filename}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){call}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){results}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){times}<LEND>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){results}<LEND>[argument 1; litteral](real){4.000000}<LEND>[litteral](str){times}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){fpcat}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){interpret.mdsdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){mma}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mma}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){mma}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){coor}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){coor}<LEND>[](symbol){group.name}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){matcoor}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coor}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){colnoms}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){colnoms}<LEND>[statement 8; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){mma}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){margins}<LEND>[](symbol){margin1}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){margins}<LEND>[](symbol){margin2}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group.name}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){assocL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){associations}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){matpr}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){assocL}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){nom.col.assoc}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){num.col.assoc}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){num.col.assoc.i}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){q}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){i}<LSEP>[](symbol){q}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){nom.col.assoc.i}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){assoc}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){q}<LEND>[argument 2; litteral](str){.}<LEND>[argument 2; litteral](str){.}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){num.col.assoc}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){num.col.assoc}<LSEP>[](symbol){num.col.assoc.i}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){nom.col.assoc}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){nom.col.assoc}<LSEP>[](symbol){nom.col.assoc.i}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matprob}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matpr}<LSEP>[](symbol){}<LSEP>[](symbol){num.col.assoc}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){matprob}<LEND>[](symbol){group.name}<LEND>[statement 5; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matprob}<LEND>[](symbol){nom.col.assoc}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The association measures canno...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){mmanoms}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matprob}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){pearson.mat}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){matprob}<LSEP>[](symbol){matcoor}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){spearman.mat}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){matprob}<LSEP>[](symbol){matcoor}<LSEP>[argument 2; litteral](str){spearman}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){dev.pdf}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){.Device}<LSEP>[argument 1; litteral](str){pdf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matprob}<LEND>[argument 1; litteral](real){36.000000}<LEND>[statement 13; control flow](){if}<LSEP>[](symbol){dev.pdf}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matprob}<LEND>[argument 1; litteral](str){graphs displayed. Consider pro...}<LEND>[statement 14; control flow](){if}<LSEP>[](symbol){dev.pdf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){namePDF}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){_}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){namePDF}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){namePDF}<LSEP>[argument 1; litteral](str){pdf}<LSEP>[argument 2; litteral](str){.}<LEND>[statement 2; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Due to the high number of vari...}<LSEP>[](symbol){namePDF}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){pdf}<LSEP>[](symbol){namePDF}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){marg1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mmanoms}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){mmanoms}<LSEP>[argument 1; litteral](str){.}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){nPC}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){nom}<LSEP>[](symbol){mmanoms}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cnom}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matprob}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){nom}<LEND>[](symbol){nom}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){matprobnom}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matprob}<LSEP>[](symbol){}<LSEP>[](symbol){cnom}<LEND>[statement 2; call](){}<LSEP>[](symbol){plotframes}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matcoor}<LSEP>[](symbol){}<LSEP>[](symbol){nPC}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){matprobnom}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){marg2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mmanoms}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matprob}<LEND>[argument 1; litteral](str){:}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){nPC}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mmanoms}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mmanom1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mmanoms}<LSEP>[](symbol){i1}<LSEP>[](symbol){}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i2}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mmanoms}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mmanom2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mmanoms}<LSEP>[](symbol){i2}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){matprobnom}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matprob}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){mmanom1}<LSEP>[](symbol){mmanom2}<LSEP>[argument 2; litteral](str){:}<LEND>[statement 2; call](){}<LSEP>[](symbol){plotframes}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matcoor}<LSEP>[](symbol){}<LSEP>[](symbol){nPC}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){matprobnom}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){assoc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plotframes}<LSEP>[](symbol){matcoor}<LSEP>[](symbol){matprob}<LSEP>[argument 2; litteral](real){10.000000}<LSEP>[](symbol){mma}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){margassoc}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[argument 0; litteral](str){probability distributions of e...}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){marg1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[argument 0; litteral](str){probability distributions of e...}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){marg2}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[argument 0; litteral](str){association measures}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){assoc}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){asso.measure}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){(}<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){associations}<LEND>[argument 1; litteral](str){measure}<LEND>[argument 2; litteral](str){)}<LEND>[statement 18; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Pearson correlations between s...}<LSEP>[](symbol){margassoc}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){asso.measure}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){assoc}<LEND>[argument 3; litteral](str){\n}<LEND>[statement 19; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){pearson.mat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 20; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Spearman correlations between ...}<LSEP>[](symbol){margassoc}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){asso.measure}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mma}<LSEP>[argument 1; litteral](str){assoc}<LEND>[argument 3; litteral](str){\n}<LEND>[statement 21; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){spearman.mat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pearson.mat}<LSEP>[](symbol){spearman.mat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){insertPackage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){repodir}<LSEP>[](symbol){commit}<LSEP>[](symbol){pullfirst}<LSEP>[](symbol){action}<LSEP>[](symbol){location}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){file}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){ not found\n}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){dir.exists}<LSEP>[](symbol){repodir}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Directory }<LSEP>[](symbol){repodir}<LSEP>[argument 2; litteral](str){ not found\n}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){.check_location_arg}<LSEP>[](symbol){location}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){haspkg}<LEND>[call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){git2r}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){hascmd}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.which}<LSEP>[argument 0; litteral](str){git}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){curwd}<LEND>[call](){}<LSEP>[](symbol){getwd}<LEND>[statement 6; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){curwd}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){pkg}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){msg}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){commit}<LEND>[true branch; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Adding %s to drat}<LSEP>[](symbol){pkg}<LEND>[false branch; litteral](str){}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){commit}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LSEP>[](symbol){commit}<LEND>[argument 1; litteral](str){character}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){commit}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){msg}<LSEP>[](symbol){commit}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){commit}<LSEP>[litteral](logical){TRUE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){branch}<LSEP>[](symbol){location}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){commit}<LSEP>[](symbol){haspkg}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repo}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){repository}<LEND>[](symbol){repodir}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){pullfirst}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){pull}<LEND>[](symbol){repo}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){branch}<LSEP>[argument 1; litteral](str){gh-pages}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){checkout}<LEND>[](symbol){repo}<LSEP>[](symbol){branch}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){commit}<LSEP>[](symbol){hascmd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){repodir}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){pullfirst}<LEND>[true branch; call](){}<LSEP>[](symbol){system}<LSEP>[argument 0; litteral](str){git pull}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){branch}<LSEP>[argument 1; litteral](str){gh-pages}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){system2}<LSEP>[argument 0; litteral](str){git}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){checkout}<LSEP>[](symbol){branch}<LEND>[statement 1; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){curwd}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](str){docs}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){repodir}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){repodir}<LSEP>[](symbol){location}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){repodir}<LSEP>[argument 1; litteral](str){index.html}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){The repository '}<LSEP>[](symbol){repodir}<LSEP>[argument 2; litteral](str){' does not have a top-level 'i...}<LSEP>[argument 3; litteral](str){Consider adding a simple file\...}<LSEP>[argument 4; litteral](str){example is '<!doctype html><ti...}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){pkginfo}<LEND>[call](){}<LSEP>[](symbol){getPackageInfo}<LSEP>[](symbol){file}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pkgtype}<LEND>[call](){}<LSEP>[](symbol){identifyPackageType}<LSEP>[](symbol){file}<LSEP>[](symbol){pkginfo}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){pkgdir}<LEND>[call](){}<LSEP>[](symbol){normalizePath}<LEND>[argument 0; call](){}<LSEP>[](symbol){contrib.url2}<LSEP>[](symbol){repodir}<LSEP>[](symbol){pkgtype}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){Rmajor}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){pkgdir}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){pkgdir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Directory }<LSEP>[](symbol){pkgdir}<LSEP>[argument 2; litteral](str){ couldn't be created\n}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.copy}<LSEP>[](symbol){file}<LSEP>[](symbol){pkgdir}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){ can not be copied to }<LSEP>[](symbol){pkgdir}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){.norm_tools_package_args}<LSEP>[](symbol){...}<LEND>[statement 20; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){write_PACKAGES}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pkgdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){.get_write_PACKAGES_type}<LSEP>[](symbol){pkgtype}<LEND>[](symbol){args}<LEND>[statement 21; control flow](){if}<LSEP>[](symbol){commit}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){haspkg}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repo}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){repository}<LEND>[](symbol){repodir}<LEND>[statement 1; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){pkgdir}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){add}<LEND>[](symbol){repo}<LSEP>[](symbol){pkg}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){add}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){PACKAGES}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){add}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){PACKAGES.gz}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){add}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){PACKAGES.rds}<LEND>[statement 6; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){commit}<LEND>[](symbol){repo}<LSEP>[](symbol){msg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; call](){}<LSEP>[](symbol){warning}<LSEP>[](symbol){e}<LEND>[statement 7; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Added and committed }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ plus PACKAGES files. Still ne...}<LEND>[false branch; control flow](){if}<LSEP>[](symbol){hascmd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){pkgdir}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pkgfs}<LSEP>[litteral](str){PACKAGES PACKAGES.gz PACKAGES.rds}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cmd}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){git add %s %s;}<LSEP>[argument 1; litteral](str){git commit -m"%s";}<LSEP>[argument 2; litteral](str){git push}<LEND>[](symbol){pkg}<LSEP>[](symbol){pkgfs}<LSEP>[](symbol){msg}<LEND>[statement 3; call](){}<LSEP>[](symbol){system}<LSEP>[](symbol){cmd}<LEND>[statement 4; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Added, committed and pushed }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ plus PACKAGES files.\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Commit skipped as both git2r p...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){action}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){action}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){pkgname}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.tar\\..*$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){pkg}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){pkgname}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){pkgname}<LSEP>[argument 1; litteral](str){_}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](integer){1}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){action}<LSEP>[argument 1; litteral](str){prune}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){pruneRepo}<LSEP>[](symbol){repodir}<LSEP>[](symbol){pkgtype}<LSEP>[](symbol){pkgname}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){Rmajor}<LEND>[argument 4; litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){action}<LSEP>[argument 1; litteral](str){archive}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){archivePackages}<LSEP>[](symbol){repodir}<LSEP>[](symbol){pkgtype}<LSEP>[](symbol){pkgname}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){Rmajor}<LEND>[statement 26; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){.norm_tools_package_args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[argument 1; litteral](str){latestOnly}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[argument 1; litteral](str){latestOnly}<LEND>[litteral](logical){FALSE}<LEND>[](symbol){args}<LEND>[assign](){<-}<LSEP>[](symbol){.get_write_PACKAGES_type}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pkgtype}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){split_pkgtype}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){pkgtype}<LSEP>[argument 1; litteral](str){\\.}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){write_pkgtype}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){split_pkgtype}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](integer){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){split_pkgtype}<LEND>[argument 1; litteral](str){.}<LEND>[](symbol){write_pkgtype}<LEND>[assign](){<-}<LSEP>[](symbol){insertPackages}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){file}<LSEP>[](symbol){insertPackage}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){insert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[argument 1; litteral](str){file}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){insertPackages}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){insertPackage}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){identifyPackageType}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){pkginfo}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){_.*\\.tar\\..*$}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){source}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){_.*\\.tgz$}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){mac.binary}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){_.*\\.zip$}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){win.binary}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Unknown package type}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){mac.binary}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){osxFolder}<LEND>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){Rmajor}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.mavericks}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.mavericks}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.el-capitan}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.el-capitan}<LEND>[argument 5; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.el-capitan}<LEND>[](symbol){ret}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){osxFolder}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mavericks}<LSEP>[argument 1; litteral](str){el-capitan}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){.}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkginfo}<LSEP>[argument 1; litteral](str){osxFolder}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){mac.binary subtype couldn't be...}<LSEP>[argument 1; litteral](str){happen. Please report it with ...}<LSEP>[argument 2; litteral](str){provide the binary, if you can...}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){getPackageInfo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){file}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){ not found!}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){td}<LEND>[call](){}<LSEP>[](symbol){tempdir}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.zip$}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){file}<LSEP>[](symbol){td}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.tgz$}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){untar}<LSEP>[](symbol){file}<LSEP>[](symbol){td}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fields}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pkgname}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){^([a-zA-Z0-9.]*)_.*}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){td}<LSEP>[](symbol){pkgname}<LSEP>[argument 2; litteral](str){DESCRIPTION}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){path}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){DESCRIPTION file cannot be ope...}<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){'. It is expected }<LSEP>[argument 3; litteral](str){to be located in the base dire...}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){builtstring}<LEND>[call](){}<LSEP>[](symbol){read.dcf}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){Built}<LEND>[statement 7; call](){}<LSEP>[](symbol){unlink}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){td}<LSEP>[](symbol){pkgname}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fields}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){builtstring}<LSEP>[argument 1; litteral](str){; }<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Rversion}<LSEP>[argument 1; litteral](str){OSflavour}<LSEP>[argument 2; litteral](str){Date}<LSEP>[argument 3; litteral](str){OS}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){rmajor}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){^R (\\d\\.\\d)\\.\\d.*}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fields}<LSEP>[argument 1; litteral](str){Rversion}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){osxFolder}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fields}<LSEP>[argument 1; litteral](str){OSflavour}<LEND>[argument 1; litteral](str){mavericks}<LSEP>[argument 2; litteral](str){el-capitan}<LSEP>[argument 3; litteral](str){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fields}<LEND>[argument 1; call](){}<LSEP>[](symbol){unname}<LSEP>[](symbol){rmajor}<LEND>[](symbol){osxFolder}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fields}<LEND>[assign](){<-}<LSEP>[](symbol){contrib.url2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){repos}<LSEP>[](symbol){type}<LSEP>[](symbol){version}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){FUN}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){contrib_url}<LEND>[call](){}<LSEP>[](symbol){contrib.url}<LSEP>[](symbol){repos}<LSEP>[](symbol){t}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){version}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){contrib_url}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){version}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](str){source}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){contrib_url}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){contrib_url}<LEND>[argument 1; call](){}<LSEP>[](symbol){list.dirs}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){DRAT_CONTRIB_VERSION_REGEX}<LSEP>[argument 1; litteral](str){contrib}<LSEP>[](symbol){contrib_url}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){contrib_url}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){contrib_url}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){version}<LEND>[call](){}<LSEP>[](symbol){package_version}<LSEP>[](symbol){version}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){contrib_url}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){DRAT_CONTRIB_VERSION_REGEX}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[argument 0; litteral](str){contrib}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){version}<LSEP>[](symbol){major}<LEND>[argument 1; litteral](str){.}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){version}<LSEP>[](symbol){minor}<LEND>[](symbol){contrib_url}<LEND>[](symbol){contrib_url}<LEND>[](symbol){contrib_url}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){urls}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){type}<LSEP>[](symbol){FUN}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){rep}<LSEP>[](symbol){type}<LEND>[argument 2; call](){}<LSEP>[](symbol){lengths}<LSEP>[](symbol){urls}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){urls}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){urls}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){urls}<LEND>[](symbol){names}<LEND>[](symbol){urls}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ata_lpsolve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){time_limit}<LSEP>[](symbol){message}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lp}<LEND>[call](){}<LSEP>[](symbol){make.lp}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 2; call](){}<LSEP>[](symbol){lp.control}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max}<LEND>[argument 1; litteral](str){max}<LSEP>[argument 2; litteral](str){min}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){negative}<LEND>[true branch; call](){}<LSEP>[](symbol){set.bounds}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[argument 2; litteral](real){0.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){set.objfn}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq_along}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){types}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){types}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){binary}<LSEP>[argument 2; litteral](str){integer}<LSEP>[argument 3; litteral](str){real}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){types}<LEND>[body; call](){}<LSEP>[](symbol){set.type}<LSEP>[](symbol){lp}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){types}<LSEP>[](symbol){i}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[true branch; call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[argument 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){idx}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.bounds}<LSEP>[](symbol){lp}<LEND>[argument 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lb}<LSEP>[](symbol){i}<LEND>[true branch; assign](){=}<LSEP>[](symbol){lower}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lb}<LSEP>[](symbol){i}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ub}<LSEP>[](symbol){i}<LEND>[true branch; assign](){=}<LSEP>[](symbol){upper}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ub}<LSEP>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){idx}<LSEP>[](symbol){i}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LEND>[body; call](){}<LSEP>[](symbol){add.constraint}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LEND>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dir}<LEND>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){rhs}<LEND>[](symbol){i}<LEND>[statement 9; call](){}<LSEP>[](symbol){lp.control}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.010000}<LSEP>[argument 1; litteral](real){0.010000}<LEND>[argument 2; litteral](real){0.001000}<LSEP>[argument 3; litteral](real){0.001000}<LSEP>[argument 4; litteral](real){0.001000}<LEND>[statement 10; call](){}<LSEP>[](symbol){lp.control}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lindep}<LSEP>[argument 1; litteral](str){probefix}<LEND>[](symbol){time_limit}<LEND>[statement 11; call](){}<LSEP>[](symbol){lp.control}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LSEP>[](symbol){message}<LSEP>[argument 1; litteral](str){normal}<LSEP>[argument 2; litteral](str){neutral}<LEND>[statement 12; call](){}<LSEP>[](symbol){lp.control}<LSEP>[](symbol){lp}<LSEP>[](symbol){...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){start_time}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){code}<LEND>[call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){lp}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){solve_time}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[](symbol){start_time}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){status}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){code}<LEND>[argument 1; litteral](str){optimal solution found}<LSEP>[argument 2; litteral](str){the model is sub-optimal}<LSEP>[argument 3; litteral](str){the model is infeasible}<LSEP>[argument 4; litteral](str){the model is unbounded}<LSEP>[argument 5; litteral](str){the model is degenerate}<LSEP>[argument 6; litteral](str){numerical failure encountered}<LSEP>[argument 7; litteral](str){process aborted}<LSEP>[argument 8; litteral](str){timeout}<LSEP>[argument 9; litteral](str){the model was solved by presolve}<LSEP>[argument 10; litteral](str){the branch and bound routine f...}<LSEP>[argument 11; litteral](str){the branch and bound was stopp...}<LSEP>[argument 12; litteral](str){a feasible branch and bound so...}<LSEP>[argument 13; litteral](str){no feasible branch and bound s...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){optimum}<LEND>[call](){}<LSEP>[](symbol){get.objective}<LSEP>[](symbol){lp}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get.variables}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){obj_vars}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get.variables}<LSEP>[](symbol){lp}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){code}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){9.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){result}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){result}<LEND>[statement 21; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){code}<LSEP>[](symbol){status}<LSEP>[](symbol){optimum}<LSEP>[](symbol){result}<LSEP>[](symbol){obj_vars}<LSEP>[](symbol){start_time}<LSEP>[](symbol){solve_time}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dr.fit.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){psave}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[](symbol){numdir}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[litteral](str){psave}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){psave}<LSEP>[argument 1; litteral](str){save}<LSEP>[argument 2; litteral](str){dr}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){group.names}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nG}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group.names}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){numeric}<LSEP>[](symbol){n}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){j}<LEND>[](symbol){j}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){wt.cov}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){w}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){sweep}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){w}<LEND>[argument 3; litteral](str){*}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){slice}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nslices}<LEND>[](symbol){nG}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){nslices}<LSEP>[](symbol){nG}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){info}<LSEP>[litteral](NULL){NULL}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){Sigma.pool}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){nG}<LEND>[statement 15; assign](){<-}<LSEP>[variable; litteral](str){%^%}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){A}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){A}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){A}<LSEP>[](symbol){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eg}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){A}<LEND>[statement 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){values}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){vectors}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){info}<LEND>[assign](){<-}<LSEP>[](symbol){numslices}<LSEP>[litteral](NULL){NULL}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){slice.function}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){slice}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){numslices}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){numslices}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[](symbol){nslices}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){wt.cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){sel}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Sigma.pool}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sigma.pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[](symbol){n}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){numslices}<LEND>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){slice.info}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LSEP>[](symbol){info}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){psave1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LSEP>[](symbol){slices}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){h}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){slice.ind}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){IminusC}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice.ind}<LEND>[argument 1; litteral](real){3.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[false branch; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){wt.cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){slice.ind}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){slice.ind}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice.ind}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){IminusC}<LSEP>[](symbol){IminusC}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){slice.ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[](symbol){IminusC}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){M}<LSEP>[](symbol){A}<LEND>[statement 21; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){group.ind}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){G}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){group.ind}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numslices}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LSEP>[](symbol){numslices}<LEND>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Scale}<LEND>[control flow](){if}<LSEP>[](symbol){pool}<LSEP>[](symbol){Sigma.pool}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){group.ind}<LEND>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){group.ind}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){group.ind}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){group.ind}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){psave1}<LSEP>[](symbol){Z}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){group.ind}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){group.ind}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){group.ind}<LEND>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LEND>[](symbol){}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){group.ind}<LEND>[](symbol){n}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){M}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){values}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Sigma.pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){vectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](str){dimnames}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){evectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){test.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){H}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){H}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){st}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){numslices}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){st}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[](symbol){H}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[](symbol){nG}<LEND>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pv}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LSEP>[](symbol){pv}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){coordinate.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gamma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Sigma.pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){test.psave}<LSEP>[](symbol){H}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[body; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){tp}<LEND>[argument 1; call](){}<LSEP>[](symbol){test.psave}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){vectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){i}<LEND>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df}<LSEP>[argument 2; litteral](str){p-values}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tp}<LEND>[statement 29; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){values}<LEND>[](symbol){or}<LEND>[](symbol){slice.info}<LSEP>[](symbol){test}<LSEP>[](symbol){coordinate.test}<LSEP>[](symbol){M}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){test}<LEND>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coordinate.test}<LEND>[](symbol){gamma}<LEND>[assign](){<-}<LSEP>[](symbol){summary.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){summary.psir}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[litteral](str){psave}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){drop1.psave}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){drop1.dr}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.callrate}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){threshold}<LSEP>[](symbol){mono.rm}<LSEP>[](symbol){recalc}<LSEP>[](symbol){recursive}<LSEP>[](symbol){plot}<LSEP>[](symbol){bins}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Dataset contains mo...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Recalculating Call Rate\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){plot}<LSEP>[litteral](logical){FALSE}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){loc}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){pop}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: method must be ei...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){loc}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: threshold must be...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.950000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){loc}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing loci based on Call ...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Initial no. of loci =}<LSEP>[](symbol){n0}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){glNA}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){threshold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){glNA}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){threshold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[](symbol){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci deleted =}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n0}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by locus\n[pre-filte...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by locus\n[pre-filte...}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){m}<LEND>[statement 1; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[](symbol){title}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bins}<LEND>[statement 2; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](str){[post-filtering]}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bins}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){AvgPIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHets}<LEND>[litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing individuals based o...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Initial no. of individuals =}<LSEP>[](symbol){n0}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ind.call.rate}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){hold2}<LSEP>[](symbol){ind.call.rate}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Maximum individual call rate =}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 2; litteral](str){. Nominated threshold of}<LSEP>[](symbol){threshold}<LSEP>[argument 4; litteral](str){too stringent.\n No individual...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recursive}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Filtering a genlight object\n ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n0}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\nIndividuals retained =}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x3}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of individuals deleted (...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x3}<LEND>[argument 1; litteral](str){[}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x3}<LEND>[argument 3; litteral](str){],}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){AvgPIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHets}<LEND>[litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ind.call.rate}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Recursively removing individua...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){, recalculating Call Rate afte...}<LSEP>[](symbol){threshold}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.call.rate}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[](symbol){}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ITERATION}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){\n No. of individuals deleted =}<LEND>[argument 3; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n0}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 4; litteral](str){\n No. of individuals retained =}<LEND>[argument 5; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 6; litteral](str){\n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ind.call.rate}<LSEP>[](symbol){threshold}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x3}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ List of individuals deleted ...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x3}<LEND>[argument 1; litteral](str){[}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x3}<LEND>[argument 3; litteral](str){],}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){AvgPIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHets}<LEND>[litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x}<LSEP>[](symbol){x2}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by individual\n[pre-...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by individual\n[pre-...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){m}<LEND>[statement 1; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){hold2}<LSEP>[](symbol){title}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LSEP>[](symbol){bins}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){hold2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){ind.call.rate}<LSEP>[argument 1; litteral](str){[post-filtering]}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LSEP>[](symbol){bins}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){ind.call.rate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){pop}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing loci based on Call ...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){in all populations\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){seppop}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ll}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){pops}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){locNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl.filter.callrate}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){loc}<LSEP>[](symbol){threshold}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){locall}<LEND>[call](){}<LSEP>[](symbol){Reduce}<LSEP>[](symbol){intersect}<LSEP>[](symbol){ll}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){locall}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){locall}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){locall}<LSEP>[](symbol){}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by population\n[pre-...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LSEP>[litteral](str){Call Rate by population\n[pre-...}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){m}<LEND>[statement 1; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){hold}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[](symbol){title}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){hold}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bins}<LEND>[statement 2; call](){}<LSEP>[](symbol){hist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](str){[post-filtering]}<LSEP>[argument 2; litteral](str){Call Rate}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bins}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x2}<LSEP>[](symbol){x}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 12; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){AvgPIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){OneRatioSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHets}<LEND>[litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){FreqHomSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Summary of filtered dataset\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){pop}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Call Rate in any one populat...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Call Rate for individuals >}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Call Rate for loci >}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of loci :}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){hold}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: Locus metrics not reca...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: Locus metrics recalcul...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: Resultant monomorphic ...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: Resultant monomorphic ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recursive}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Some individuals wi...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){may have a final CallRate lowe...}<LSEP>[](symbol){threshold}<LSEP>[argument 4; litteral](str){when call rate is recalculated...}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.hwe.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pvalue}<LSEP>[](symbol){plot}<LSEP>[](symbol){HWformat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){HardyWeinberg}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){genlight}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Provided object is not a genli...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No population definintion is p...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){adegenet}<LSEP>[](symbol){seppop}<LEND>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){pops}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pp}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){T}<LEND>[statement 2; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){HardyWeinberg}<LSEP>[](symbol){HWExactStats}<LEND>[](symbol){xx}<LEND>[](symbol){pvalue}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pops}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ggp}<LSEP>[litteral](logical){NA}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){loci}<LEND>[assign](){<-}<LSEP>[](symbol){counts}<LSEP>[litteral](logical){NA}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Var1}<LEND>[assign](){<-}<LSEP>[](symbol){Var2}<LEND>[assign](){<-}<LSEP>[](symbol){value}<LSEP>[litteral](logical){NA}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){longData}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){reshape2}<LSEP>[](symbol){melt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){output}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ggp}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){longData}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){Var2}<LSEP>[](symbol){Var1}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_raster}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lightgrey}<LSEP>[argument 1; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_fill_identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){loci}<LSEP>[argument 1; litteral](str){population}<LSEP>[argument 2; litteral](str){HWE over population and loci}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](real){90.000000}<LSEP>[argument 2; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){9.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){11.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){ggp}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){out}<LSEP>[litteral](NULL){NULL}<LEND>[statement 13; control flow](){if}<LSEP>[](symbol){HWformat}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){pops}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pp}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[argument 2; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){T}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){xx}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){output}<LSEP>[](symbol){ggp}<LSEP>[](symbol){out}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.define.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.list}<LSEP>[](symbol){new}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Population assignments not d...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](str){pop1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){case}<LSEP>[](symbol){ind.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){case}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Listed individual}<LSEP>[](symbol){case}<LSEP>[argument 2; litteral](str){not present in the dataset -- ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ind.list}<LSEP>[](symbol){case}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.list}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: no individuals li...}<LSEP>[](symbol){new}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Processing}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){object\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Assigned listed individuals}<LSEP>[](symbol){ind.list}<LSEP>[argument 2; litteral](str){to new population}<LSEP>[](symbol){new}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){case}<LSEP>[](symbol){ind.list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){case}<LEND>[](symbol){new}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){tmp}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 19; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){interpret}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){interpret}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){lmm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LSEP>[](symbol){n.burn}<LSEP>[](symbol){n.sample}<LSEP>[](symbol){tol}<LSEP>[](symbol){method}<LSEP>[](symbol){dta}<LSEP>[](symbol){print.time}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){print.time}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){em}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.iter}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tol.t}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta.trace}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){A.trace}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v.min}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v.min}<LSEP>[](symbol){v}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta.trace}<LEND>[assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){beta}<LSEP>[](symbol){A}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){beta}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){A}<LSEP>[](symbol){v}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){loglik.t}<LEND>[call](){}<LSEP>[](symbol){loglik}<LSEP>[](symbol){beta.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[statement 5; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tol.t}<LSEP>[](symbol){tol}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.iter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n.iter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){v}<LSEP>[](symbol){A.t}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu0}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){beta.t}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu.ast}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){B}<LEND>[](symbol){mu0}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v.ast}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){v.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){v}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){v.ast}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu.ast}<LSEP>[](symbol){mu0}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){v.min}<LEND>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu.ast}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){B}<LSEP>[](symbol){mu0}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v.ast}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){v}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){v.ast}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu.ast}<LSEP>[](symbol){mu0}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){A.trace}<LSEP>[](symbol){A.t}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){mu.ast}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.trace}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){beta.trace}<LSEP>[](symbol){beta.t}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){mu.ast}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){beta.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){beta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){loglik.temp}<LEND>[call](){}<LSEP>[](symbol){loglik}<LSEP>[](symbol){beta.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tol.t}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){loglik.temp}<LSEP>[](symbol){loglik.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){loglik.t}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){loglik.t}<LSEP>[](symbol){loglik.temp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m}<LSEP>[litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[](symbol){k}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v.eigen}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){values}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v.min}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){v.eigen}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){v.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[argument 3; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){A.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){A.t}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){beta.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){beta.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){beta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){log.dmvnorm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){mean}<LSEP>[](symbol){sigma}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LSEP>[](symbol){mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LSEP>[](symbol){mean}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){beta}<LSEP>[](symbol){A}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){log.dmvnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){beta}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){loglik.t}<LEND>[call](){}<LSEP>[](symbol){loglik}<LSEP>[](symbol){beta.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[statement 9; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tol.t}<LSEP>[](symbol){tol}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.iter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n.iter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[](symbol){A.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu0}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){beta.t}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu0}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){v.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu0}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){z.mean}<LSEP>[](symbol){mu0}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){A.t.rowmean}<LEND>[call](){}<LSEP>[](symbol){rowMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){res.temp}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){res.temp}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.var}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[](symbol){A.t.rowmean}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[](symbol){v.min}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){A.temp}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.t}<LSEP>[](symbol){A.temp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){A.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){A.temp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){A.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){A.t}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[](symbol){A.t.rowmean}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){A.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){A.trace}<LSEP>[](symbol){A.t.rowmean}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){beta.t1}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta.t2}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.mean}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){beta.t1}<LEND>[](symbol){beta.t2}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){beta.trace}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){beta.trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){beta.t}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){loglik.temp}<LEND>[call](){}<LSEP>[](symbol){loglik}<LSEP>[](symbol){beta.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){y}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tol.t}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){loglik.temp}<LSEP>[](symbol){loglik.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){loglik.t}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){loglik.t}<LSEP>[](symbol){loglik.temp}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){beta.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){n.iter}<LSEP>[](symbol){A.trace}<LSEP>[](symbol){beta.trace}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.total}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n.burn}<LSEP>[](symbol){n.sample}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.out}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LSEP>[](symbol){m}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){V.min}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){v}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){V.min}<LSEP>[](symbol){v}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.total}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){v}<LSEP>[](symbol){A.t}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){W}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){W}<LSEP>[](symbol){B}<LEND>[](symbol){beta.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){W}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){V.min}<LSEP>[](symbol){W}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){k}<LSEP>[](symbol){z.mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){z.var}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){z.t}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){z.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){z.t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){inv.gamma.scale}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){res.temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 7; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.gamma.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){rgamma}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){V.min}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){i}<LEND>[assign](){<-}<LSEP>[](symbol){A.t}<LSEP>[](symbol){A}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){beta.var}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){V.min}<LSEP>[](symbol){A.t}<LEND>[](symbol){k}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){beta.hat}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){beta.var}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta.mean}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){B}<LSEP>[](symbol){beta.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta.var}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){v}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){k}<LSEP>[](symbol){theta.mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){theta.var}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){theta.t}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){A.scale}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){theta.t}<LSEP>[](symbol){beta.hat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){A.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){rgamma}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){i}<LEND>[](symbol){A.t}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){beta.var}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){A.t}<LSEP>[](symbol){k}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LEND>[assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){beta.hat}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){beta.var}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.total}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu0}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){beta.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){v}<LSEP>[](symbol){A.t}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){W}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){W}<LSEP>[](symbol){B}<LEND>[](symbol){mu0}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){W}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){V.min}<LSEP>[](symbol){W}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){k}<LSEP>[](symbol){z.mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){z.var}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){XX.inv}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){XX.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){z.t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){z.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){beta.hat}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){inv.gamma.scale}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){res.temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 8; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.gamma.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){rgamma}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){V.min}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){i}<LEND>[](symbol){A}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){beta.var}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){V.min}<LSEP>[](symbol){A.t}<LEND>[](symbol){XX.inv}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){beta.hat}<LSEP>[](symbol){beta.var}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta.mean}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){B}<LSEP>[](symbol){mu0}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta.var}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){B}<LEND>[](symbol){v}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){k}<LSEP>[](symbol){theta.mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){theta.var}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){XX.inv}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){XX.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[](symbol){theta.t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){theta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){beta.hat}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){inv.gamma.scale}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){res.temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 8; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.gamma.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){rgamma}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){i}<LEND>[](symbol){A}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){beta.var}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){A.t}<LEND>[](symbol){XX.inv}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){beta.hat}<LSEP>[](symbol){beta.var}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.burn}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.burn}<LEND>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[argument 3; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){A.out}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){n.total}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p}<LSEP>[](symbol){m}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v.eigen}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){values}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v.min}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){v.eigen}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){v.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mean.beta.given.z}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Y}<LSEP>[](symbol){X}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){var.beta}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mean.beta}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){var.beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){mean.beta}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mean.var.beta.given.z.A.dta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Y}<LSEP>[](symbol){V}<LSEP>[](symbol){A}<LSEP>[](symbol){X}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){VA.inv}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){V}<LSEP>[](symbol){A}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var.beta}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){VA.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mean.beta}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){var.beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){VA.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[statement 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mean.beta}<LSEP>[](symbol){var.beta}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mean.var.beta.given.z.A.da}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Y}<LSEP>[](symbol){A}<LSEP>[](symbol){X}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.inv}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){A}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var.beta}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){A.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mean.beta}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){var.beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){A.inv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[statement 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mean.beta}<LSEP>[](symbol){var.beta}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.total}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[](symbol){A.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dta}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){beta.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){v.min}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z.t}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.mean}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.var}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){mean.beta.given.z}<LSEP>[](symbol){z.t}<LSEP>[](symbol){X}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.t}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){beta.hat}<LEND>[statement 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){res.temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){res.temp}<LEND>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 6; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){dt}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){riwish}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[](symbol){p}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){S}<LEND>[](symbol){v.min}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){A.t}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){A.t}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta.temp}<LEND>[call](){}<LSEP>[](symbol){mean.var.beta.given.z.A.dta}<LSEP>[](symbol){z.t}<LSEP>[](symbol){v.min}<LSEP>[](symbol){A.t}<LSEP>[](symbol){X}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){beta.temp}<LSEP>[](symbol){mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){beta.temp}<LSEP>[](symbol){var}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z.mean}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){l}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){beta.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z.var}<LEND>[call](){}<LSEP>[](symbol){array}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z.t}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.mean}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.var}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){beta.hat}<LEND>[call](){}<LSEP>[](symbol){mean.beta.given.z}<LSEP>[](symbol){z.t}<LSEP>[](symbol){X}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res.temp}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z.t}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){l}<LEND>[](symbol){beta.hat}<LEND>[statement 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){res.temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){res.temp}<LEND>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){A.t}<LEND>[call](){}<LSEP>[](symbol){riwish}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[](symbol){p}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){S}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){A.t}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){beta.temp}<LEND>[call](){}<LSEP>[](symbol){mean.var.beta.given.z.A.da}<LSEP>[](symbol){z.t}<LSEP>[](symbol){A.t}<LSEP>[](symbol){X}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta.t}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){beta.temp}<LSEP>[](symbol){mean}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){beta.temp}<LSEP>[](symbol){var}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A.out}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.burn}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.burn}<LEND>[](symbol){}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){A}<LSEP>[](symbol){beta}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){print.time}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){getRepoInfo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){pkg}<LSEP>[](symbol){version}<LSEP>[](symbol){location}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.check_location_arg}<LSEP>[](symbol){location}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](str){docs}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){docs$}<LSEP>[](symbol){repopath}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){repopath}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){repopath}<LSEP>[](symbol){location}<LEND>[statement 2; call](){}<LSEP>[](symbol){.check_path}<LSEP>[](symbol){repopath}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){.norm_type}<LSEP>[](symbol){type}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pkg}<LEND>[call](){}<LSEP>[](symbol){.norm_pkg}<LSEP>[](symbol){pkg}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){repodir}<LEND>[call](){}<LSEP>[](symbol){contrib.url2}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){version}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){types}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){repodir}<LEND>[](symbol){type}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ext}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){types}<LSEP>[](symbol){.get_file_extension_from_package_type}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){infos}<LEND>[call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){.get_repoinfo_per_package_type}<LSEP>[](symbol){types}<LSEP>[](symbol){ext}<LSEP>[](symbol){repodir}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pkg}<LEND>[argument 5; litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){infos}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){infos}<LEND>[argument 1; call](){}<LSEP>[](symbol){vapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){infos}<LSEP>[](symbol){nrow}<LEND>[argument 2; call](){}<LSEP>[](symbol){integer}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){>}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](integer){0}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){infos}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){unname}<LSEP>[](symbol){infos}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){infos}<LEND>[litteral](NULL){NULL}<LEND>[statement 12; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){infos}<LEND>[assign](){<-}<LSEP>[](symbol){.get_file_extension_from_package_type}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ext}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){source}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){\\.tar\\..*$}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){mac.binary}<LSEP>[](symbol){type}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){\\.tgz$}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){win.binary}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){\\.zip$}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Unknown package type}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](symbol){ext}<LEND>[assign](){<-}<LSEP>[](symbol){.get_repoinfo_per_package_type}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){t}<LSEP>[](symbol){e}<LSEP>[](symbol){rd}<LSEP>[](symbol){pkg}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){files}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){rd}<LSEP>[](symbol){e}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){files}<LEND>[argument 1; litteral](integer){0}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){R_version}<LSEP>[](symbol){t}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](str){source}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R_version}<LEND>[call](){}<LSEP>[](symbol){regmatches}<LSEP>[](symbol){rd}<LEND>[argument 1; call](){}<LSEP>[](symbol){regexpr}<LSEP>[](symbol){DRAT_VERSION_REGEX}<LSEP>[](symbol){rd}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){noextfiles}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){e}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){files}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){noextfiles}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){noextfiles}<LSEP>[argument 1; litteral](str){_}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pkgs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){noextfiles}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](integer){1}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){verstxt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){noextfiles}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](integer){2}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){vers}<LEND>[call](){}<LSEP>[](symbol){package_version}<LSEP>[](symbol){verstxt}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){files}<LSEP>[](symbol){pkgs}<LSEP>[](symbol){vers}<LSEP>[](symbol){t}<LSEP>[](symbol){rd}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){package}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){version}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){newest}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){package}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){package}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){version}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){pkg}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){package}<LEND>[](symbol){pkg}<LEND>[](symbol){}<LEND>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pruneRepo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){pkg}<LSEP>[](symbol){version}<LSEP>[](symbol){remove}<LSEP>[](symbol){location}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.check_location_arg}<LSEP>[](symbol){location}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](str){docs}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){docs$}<LSEP>[](symbol){repopath}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){repopath}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){repopath}<LSEP>[](symbol){location}<LEND>[statement 2; call](){}<LSEP>[](symbol){.check_path}<LSEP>[](symbol){repopath}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){.norm_type}<LSEP>[](symbol){type}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pkg}<LEND>[call](){}<LSEP>[](symbol){.norm_pkg}<LSEP>[](symbol){pkg}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){repoinfo}<LEND>[call](){}<LSEP>[](symbol){getRepoInfo}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){pkg}<LSEP>[](symbol){version}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rmfiles}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repoinfo}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repoinfo}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){newest}<LEND>[](symbol){}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){remove}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){rmfiles}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){remove}<LSEP>[argument 1; litteral](str){git}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){haspkg}<LEND>[call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){git2r}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){haspkg}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'pruneRepo' function requi...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){git_repo}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){repository}<LEND>[](symbol){repopath}<LEND>[statement 3; call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){.prune_git}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rmfiles}<LSEP>[](symbol){contrib.url}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rmfiles}<LSEP>[](symbol){file}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){git_repo}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){.prune_cmd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rmfiles}<LSEP>[](symbol){contrib.url}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rmfiles}<LSEP>[](symbol){file}<LEND>[statement 1; call](){}<LSEP>[](symbol){updateRepo}<LSEP>[](symbol){repopath}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rmfiles}<LSEP>[](symbol){type}<LEND>[](symbol){version}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){repoinfo}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repoinfo}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repoinfo}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){newest}<LEND>[](symbol){}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){repoinfo}<LEND>[assign](){<-}<LSEP>[](symbol){.prune_git}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rd}<LSEP>[](symbol){f}<LSEP>[](symbol){git_repo}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fullfile}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){rd}<LSEP>[](symbol){f}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){rm_file}<LEND>[](symbol){git_repo}<LSEP>[](symbol){fullfile}<LEND>[assign](){<-}<LSEP>[](symbol){.prune_cmd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rd}<LSEP>[](symbol){f}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fullfile}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){rd}<LSEP>[](symbol){f}<LEND>[statement 1; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){fullfile}<LEND>[assign](){<-}<LSEP>[](symbol){pruneRepoForAllRversions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){pkg}<LSEP>[](symbol){remove}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){pruneRepo}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){pkg}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[](symbol){remove}<LEND>[assign](){<-}<LSEP>[](symbol){updateRepo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){version}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.check_path}<LSEP>[](symbol){repopath}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){.norm_type}<LSEP>[](symbol){type}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){repodir}<LEND>[call](){}<LSEP>[](symbol){contrib.url2}<LSEP>[](symbol){repopath}<LSEP>[](symbol){type}<LSEP>[](symbol){version}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){repodir}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){repodir}<LEND>[argument 1; call](){}<LSEP>[](symbol){dir.exists}<LSEP>[](symbol){repodir}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){.norm_tools_package_args}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){.update_packages_index}<LSEP>[](symbol){repodir}<LSEP>[](symbol){args}<LEND>[assign](){<-}<LSEP>[](symbol){.update_packages_index}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){contrib.url}<LSEP>[](symbol){args}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){update_pkgtype}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){contrib.url}<LEND>[](symbol){.get_write_PACKAGES_type}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){update}<LEND>[call](){}<LSEP>[](symbol){mapply}<LSEP>[](symbol){update_PACKAGES}<LSEP>[](symbol){contrib.url}<LSEP>[](symbol){update_pkgtype}<LSEP>[](symbol){args}<LEND>[statement 2; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2bayescan}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Extacting SNP data and creatin...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){gl.percent.freq}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){popn}<LEND>[](symbol){}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){popn}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){popn}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Writing text input file for Ba...}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfilespec}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){[loci]=}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){\n\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){[populations]=}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){\n\n}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){pop_id}<LSEP>[litteral](real){0.000000}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pop_id}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pop_id}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){[pop]=}<LSEP>[](symbol){pop_id}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){popi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){popn}<LEND>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){popi}<LSEP>[](symbol){popn}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){popi}<LSEP>[](symbol){nobs}<LEND>[](symbol){j}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){popi}<LSEP>[](symbol){sum}<LEND>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){popi}<LSEP>[](symbol){nobs}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){popi}<LSEP>[](symbol){sum}<LEND>[](symbol){j}<LEND>[argument 5; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){sink}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Records written to}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 21; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddhellingerpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must have the same n...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must be vectors with...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){p2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){dd}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){dd}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){cmd_check}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){share}<LSEP>[argument 1; litteral](str){create}<LSEP>[argument 2; litteral](str){sync}<LSEP>[argument 3; litteral](str){clone}<LSEP>[argument 4; litteral](str){pull}<LSEP>[argument 5; litteral](str){sync}<LSEP>[argument 6; litteral](str){log}<LSEP>[argument 7; litteral](str){status}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Unknown Dat command. Please ch...}<LEND>[assign](){<-}<LSEP>[](symbol){dat_install}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){os}<LSEP>[](symbol){path}<LSEP>[](symbol){ver}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){os}<LSEP>[argument 1; litteral](str){win}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){os}<LSEP>[argument 1; litteral](str){macos}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){os}<LSEP>[argument 1; litteral](str){linux}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please specify operating syste...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){normalizedPath}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){\\}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){os}<LSEP>[argument 1; litteral](str){win}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dest}<LSEP>[litteral](str){\\dat.zip}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){destpath}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){\\dat-%s-%s-x64}<LSEP>[](symbol){ver}<LSEP>[](symbol){os}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dest}<LSEP>[litteral](str){/dat.zip}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){destpath}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){/dat-%s-%s-x64}<LSEP>[](symbol){ver}<LSEP>[](symbol){os}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){normalizedDest}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){normalizedPath}<LSEP>[](symbol){dest}<LEND>[statement 4; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){normalizedPath}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){https://github.com/datproject/...}<LSEP>[](symbol){ver}<LSEP>[](symbol){ver}<LSEP>[](symbol){os}<LEND>[statement 6; call](){}<LSEP>[](symbol){download.file}<LSEP>[](symbol){url}<LSEP>[](symbol){normalizedDest}<LEND>[statement 7; call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){normalizedDest}<LSEP>[](symbol){normalizedPath}<LEND>[statement 8; call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){normalizedDest}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){os}<LSEP>[argument 1; litteral](str){win}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){system}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SETX /M PATH "%PATH%;}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){normalizedPath}<LSEP>[](symbol){destpath}<LEND>[argument 2; litteral](str){"}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){system}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){echo 'export PATH=$PATH:%s' >>...}<LSEP>[](symbol){normalizedPath}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.costdistances}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){landscape}<LSEP>[](symbol){locs}<LSEP>[](symbol){method}<LSEP>[](symbol){NN}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){gdistance}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){locs}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){locs}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){no locations were provided in ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){locs}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){No population definition provi...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){locs}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){locs}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){locs}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){locs}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){locs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){locs}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){locs}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){locs}<LEND>[](symbol){mean}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){locs}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){locs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fric.mat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gdistance}<LSEP>[](symbol){transition}<LEND>[](symbol){landscape}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){NN}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){@}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){fric.mat}<LSEP>[](symbol){crs}<LEND>[](symbol){projargs}<LEND>[litteral](str){+proj=merc +units=m}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){fric.mat.cor}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gdistance}<LSEP>[](symbol){geoCorrection}<LEND>[](symbol){fric.mat}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){leastcost}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cd.mat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gdistance}<LSEP>[](symbol){costDistance}<LEND>[](symbol){fric.mat.cor}<LSEP>[](symbol){locs}<LSEP>[](symbol){locs}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){rSPDistance}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cd.mat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gdistance}<LSEP>[](symbol){rSPDistance}<LEND>[](symbol){fric.mat.cor}<LSEP>[](symbol){locs}<LSEP>[](symbol){locs}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){commute}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cd.mat}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gdistance}<LSEP>[](symbol){commuteDistance}<LEND>[](symbol){fric.mat.cor}<LSEP>[](symbol){locs}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){cd.mat}<LEND>[call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){locs}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){cd.mat}<LEND>[call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){locs}<LEND>[statement 11; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){cd.mat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){distl2dpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mean1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){ata_check_item_pool}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pool}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){pool}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){pool needs to be a list of 3pl...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){3pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){3pl}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){3pl}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){3pl}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){3pl}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){a-, b-, and c-parameters are n...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){gpcm}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nc_gpcm}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){(d[0-9]{1,2})}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nc_gpcm}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nc_gpcm}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nc_gpcm}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){No d-parameters are found in t...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){a-, and b-parameters are not a...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){grm}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){grm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){grm}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){grm}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nc_grm}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){(b[0-9]{1,2})}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){grm}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nc_grm}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nc_grm}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nc_grm}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){No b-parameters are found in t...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){pool}<LSEP>[argument 1; litteral](str){grm}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){a-parameters are not all found...}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){ata_item_set_groups}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pool}<LSEP>[](symbol){opts}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){group}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){groups}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){integer}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[false branch; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x}<LEND>[](symbol){pool}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){groups}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){integer}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[false branch; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){group}<LEND>[](symbol){pool}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){group_max}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){groups}<LSEP>[](symbol){max}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){group_max}<LEND>[call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group_max}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_max}<LEND>[statement 3; call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[](symbol){groups}<LSEP>[](symbol){group_max}<LEND>[assign](){<-}<LSEP>[](symbol){ata_form_map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n_forms}<LSEP>[](symbol){opts}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){form_map}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n_forms}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){form_map}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_forms}<LEND>[](symbol){n_forms}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_forms}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_forms}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n_forms}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){form_map}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){form_map}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){form_map}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){form_map}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_forms}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){form_map}<LEND>[assign](){<-}<LSEP>[](symbol){ata_get_form_index}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){internal_index}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){forms}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid form indices}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){forms}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){forms}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid form indices}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[](symbol){forms}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){collapse}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){forms}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){forms}<LEND>[assign](){<-}<LSEP>[](symbol){ata_get_obj_coef}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[](symbol){compensate}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pool}<LEND>[](symbol){nrow}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){coef}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){model_mixed_info}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pool}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){opts}<LEND>[](symbol){D}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){coef}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){g}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){g}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pool}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){Reduce}<LSEP>[](symbol){rbind}<LSEP>[](symbol){coef}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid coefficients}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){compensate}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ata_append}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LEND>[](symbol){mat}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dir}<LEND>[](symbol){dir}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){rhs}<LEND>[](symbol){rhs}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){ata_extract_items}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ix}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[](symbol){}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){any}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ix}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[](symbol){ix}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ix}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){g}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){itm}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){g}<LSEP>[](symbol){ix}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){itm}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 2; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){itm}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pool}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){items}<LSEP>[](symbol){i}<LEND>[](symbol){ix}<LEND>[](symbol){items}<LEND>[assign](){<-}<LSEP>[](symbol){ata_results_to_model}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){items}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Reduce}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){3pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){3pl}<LEND>[argument 1; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){gpcm}<LEND>[argument 2; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){grm}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](str){grm}<LEND>[](symbol){items}<LEND>[assign](){<-}<LSEP>[](symbol){ata_results_to_dataframe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){items}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){x}<LSEP>[](symbol){m}<LEND>[statement 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^(a|b[0-9]{0,2}|c|d[0-9]{0,2})$}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[](symbol){items}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){items}<LEND>[statement 1; call](){}<LSEP>[](symbol){Reduce}<LSEP>[](symbol){rbind}<LSEP>[](symbol){items}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2related}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){save}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gd}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){gd}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){gd}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mm}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[](symbol){gd}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mm}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){mm}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mm}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[](symbol){gd}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mm}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mm}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mm}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){mm}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){mm}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gtd}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){mm}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gtd}<LSEP>[](symbol){V1}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gtd}<LSEP>[](symbol){V1}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){fn}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){save}<LEND>[true branch; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){gtd}<LSEP>[](symbol){fn}<LSEP>[argument 2; litteral](str){\t}<LSEP>[](symbol){F}<LSEP>[](symbol){F}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gtd}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.pcoa.plot.3d}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){glPca}<LSEP>[](symbol){x}<LSEP>[](symbol){xaxis}<LSEP>[](symbol){yaxis}<LSEP>[](symbol){zaxis}<LSEP>[](symbol){radius}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){dplyr}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){plotly}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){fd}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){gl}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Population assignments not d...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](str){pop1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gg_color_hue}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){hues}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){15.000000}<LSEP>[argument 1; litteral](real){375.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){hcl}<LSEP>[](symbol){hues}<LSEP>[argument 1; litteral](real){65.000000}<LSEP>[argument 2; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){colors_pop}<LEND>[call](){}<LSEP>[](symbol){gg_color_hue}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){colors_pop}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){PCOA_scores}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){PCOA_scores}<LSEP>[](symbol){pop}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){plot_ly}<LEND>[](symbol){PCOA_scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){PCOA_scores}<LSEP>[](symbol){}<LSEP>[](symbol){xaxis}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){PCOA_scores}<LSEP>[](symbol){}<LSEP>[](symbol){yaxis}<LEND>[argument 3; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){PCOA_scores}<LSEP>[](symbol){}<LSEP>[](symbol){zaxis}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){radius}<LEND>[](symbol){colors_pop}<LEND>[argument 6; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){add_markers}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){Populations}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){PC }<LSEP>[](symbol){xaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){25.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){PC }<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){25.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){PC }<LSEP>[](symbol){zaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){25.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fdiscd.predict}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){class.var}<LSEP>[](symbol){gaussiand}<LSEP>[](symbol){distance}<LSEP>[](symbol){crit}<LSEP>[](symbol){windowh}<LSEP>[](symbol){misclass.ratio}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folderh}<LSEP>[](symbol){xf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fdiscd.predict applies to a fo...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fdiscd.predict applies to a fo...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The 1st data frame of xf must ...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){crit must be 1, 2 or 3.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){j.group}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){j.group}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[](symbol){class.var}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The 2nd data frame of xf inclu...}<LSEP>[argument 1; litteral](str){Only the grouping variable sho...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){nb.classe}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){classe.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The names of the groups in the...}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distance}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hellinger}<LSEP>[argument 1; litteral](str){jeffreys}<LSEP>[argument 2; litteral](str){wasserstein}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){distance='}<LSEP>[](symbol){distance}<LSEP>[argument 2; litteral](str){' is not avalaible for non-Gau...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The argument windowh is not ta...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hellinger}<LSEP>[argument 1; litteral](str){jeffreys}<LSEP>[argument 2; litteral](str){wasserstein}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){If distance=}<LSEP>[](symbol){distance}<LSEP>[argument 2; litteral](str){, crit cannot be 2 or 3.\n cri...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 24; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](str){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 25; control flow](){if}<LSEP>[](symbol){misclass.ratio}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.pred}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){group.pred}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){nb.pred}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group.pred}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){pred.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group.pred}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){moy.x}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){colMeans}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){var.x}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){var}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){moy.pred}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){colMeans}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){var.pred}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){var}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){moy.cl}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){colMeans}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){var.cl}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var}<LEND>[statement 35; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){gauss}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){}<LEND>[statement 36; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l2norm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){FALSE}<LEND>[statement 37; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LSEP>[litteral](str){m..}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LSEP>[litteral](str){u..}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.pred}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wf}<LEND>[](symbol){pred.name}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.classe}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wg}<LEND>[](symbol){classe.name}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){pred.name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){classe.name}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){classe.name}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){pred.name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){classe.name}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){classe.name}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Singular covariance matrix (gr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){var.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 2; litteral](str){)}<LEND>[argument 1; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Singular covariance matrix (gr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){var.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 2; litteral](str){)}<LEND>[argument 1; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 4; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Wf.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[](symbol){Wg.tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Wf.tmp}<LSEP>[](symbol){Wg.tmp}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Tj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nj}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wij}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nr}<LSEP>[](symbol){Wij}<LEND>[](symbol){nj}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){nr}<LEND>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){nr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){hellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){jeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){wassersteinpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){m}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){u}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kern}<LSEP>[argument 1; litteral](str){gauss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){g}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){.}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){.}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){a}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){windowh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](str){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.pred}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wf}<LEND>[](symbol){pred.name}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.classe}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wg}<LEND>[](symbol){classe.name}<LEND>[statement 5; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL.f}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){nrow}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wL.g}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.g}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.pred}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.pred}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.f}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.g}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL.f}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){NROW}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wL.g}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.g}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.pred}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.pred}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.f}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.g}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One variance or more is equal ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){nrow}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.pred}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.pred}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.pred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){NROW}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.pred}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.pred}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One variance or more is equal ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){group}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 8; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Wf.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[](symbol){Wg.tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Wf.tmp}<LSEP>[](symbol){Wg.tmp}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Tj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nj}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wij}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nr}<LSEP>[](symbol){Wij}<LEND>[](symbol){nj}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){nr}<LEND>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){nr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){distances}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){which.min}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 1; litteral](str){.}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){head}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){prediction}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){prior.class}<LSEP>[argument 1; litteral](str){predicted.class}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 44; assign](){<-}<LSEP>[](symbol){lev.class}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prediction}<LSEP>[](symbol){predicted.class}<LEND>[call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){lev.class}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 2; litteral](str){predicted.class}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev.class}<LSEP>[](symbol){group.calc}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){inv.distances}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){distances}<LEND>[statement 48; assign](){<-}<LSEP>[](symbol){sum.inv.distances}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){inv.distances}<LEND>[statement 49; assign](){<-}<LSEP>[](symbol){prox}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.distances}<LSEP>[](symbol){sum.inv.distances}<LEND>[statement 50; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){distance}<LSEP>[](symbol){prediction}<LSEP>[](symbol){distances}<LEND>[argument 3; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){prox}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 51; control flow](){if}<LSEP>[](symbol){misclass.ratio}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){confusion.mat}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){class.ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){confusion.mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){confusion.mat}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){class.ratio}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){class.ratio}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){misclassed}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){results}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){confusion.mat}<LSEP>[](symbol){misclassed}<LEND>[statement 52; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){fdiscd.predict}<LEND>[statement 53; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[litteral](str){metadata_example}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_attachments}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){ticket}<LSEP>[](symbol){ticket_id}<LSEP>[argument 2; litteral](str){attachments}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){rt_GET}<LSEP>[](symbol){url}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){out}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){location}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_locate}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){body}<LEND>[argument 1; litteral](str){Attachments: }<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){location}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error while processing respons...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rest}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_sub}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){body}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){body}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){attachments}<LEND>[call](){}<LSEP>[](symbol){parse_rt_properties}<LSEP>[](symbol){rest}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){attachments}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){attachment}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){props}<LEND>[call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_match}<LEND>[](symbol){attachment}<LSEP>[argument 1; litteral](str){\\(?(.+)\\) \\((.+) \\/ (.+)\\)}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){props}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Name}<LSEP>[argument 1; litteral](str){Type}<LSEP>[argument 2; litteral](str){Size}<LEND>[](symbol){props}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){try_tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 9; call](){}<LSEP>[](symbol){try_tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){result}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){kurtosis.folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x must be an object of class '...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fold}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jnum}<LEND>[call](){}<LSEP>[](symbol){logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){jnum}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){notnum}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){jnum}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){notnum}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){There are omitted variables (n...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){notnum}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 2; litteral](str){}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold.num}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold.num}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){jnum}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold.num}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){kurtosis}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){type}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2treemix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){freq}<LEND>[call](){}<LSEP>[](symbol){gl.percent.freq}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){ref}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){nobs}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){sum}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){alt}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){sum}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){sum}<LEND>[litteral](NULL){NULL}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){nobs}<LEND>[litteral](NULL){NULL}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){nmissing}<LEND>[litteral](NULL){NULL}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){frequency}<LEND>[litteral](NULL){NULL}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){n}<LEND>[litteral](NULL){NULL}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Writing results to treemix...}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){sink}<LEND>[argument 0; call](){}<LSEP>[](symbol){gzfile}<LSEP>[](symbol){outfilespec}<LEND>[statement 19; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){popn}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){k}<LSEP>[litteral](real){1.000000}<LEND>[statement 21; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){ref}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){,}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){freq}<LSEP>[](symbol){alt}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){ }<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[statement 22; call](){}<LSEP>[](symbol){sink}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Records written to}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){:}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Output file has been gzipped f...}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.collapse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fd}<LSEP>[](symbol){tpop}<LSEP>[](symbol){tloc}<LSEP>[](symbol){pb}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fd}<LEND>[argument 1; litteral](str){fd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: fd must be a list...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tloc}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tloc}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Parameter tloc sh...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tpop}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Parameter tpop sh...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tloc}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Comparing populations for fi...}<LSEP>[](symbol){tloc}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tloc}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Comparing populations for ab...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tpop}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Amalgamating populations wit...}<LSEP>[](symbol){tpop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tpop}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Amalgamating populations wit...}<LSEP>[](symbol){tpop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tpop}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Amalgamating populations wit...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){npops}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){variable.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npops}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[](symbol){i}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npops}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){tpop}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){zero.list}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){intersect}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){zero.list}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){zero.list.hold}<LSEP>[](symbol){zero.list}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nInitial Populations\n}<LSEP>[](symbol){pops}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nNew population groups\n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[statement 18; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){replacement}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){replacement}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){+}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Group:}<LSEP>[](symbol){replacement}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.merge.pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[](symbol){replacement}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){fd2}<LEND>[call](){}<LSEP>[](symbol){gl.fixed.diff}<LSEP>[](symbol){x}<LSEP>[](symbol){tloc}<LSEP>[](symbol){pb}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){setequal}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){\nNo further amalgamation of p...}<LSEP>[](symbol){tpop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Analysis complete\n\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){fd}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pcfd}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nobs}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nloc}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){expfpos}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){sdfpos}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pval}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){l}<LEND>[litteral](str){fd}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nRaw Fixed Difference Matrix\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){fd}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Sample sizes}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){fd}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pcfd}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nobs}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nloc}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){expfpos}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){sdfpos}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pval}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){l}<LEND>[litteral](str){fd}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){pb}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Returning a list of class 'fd'...}<LSEP>[argument 1; litteral](str){ [[1]] $gl -- input ge...}<LSEP>[argument 2; litteral](str){ [[2]] $fd -- raw fixe...}<LSEP>[argument 3; litteral](str){ [[3]] $pcfd -- percen...}<LSEP>[argument 4; litteral](str){ [[4]] $nobs -- mean n...}<LSEP>[argument 5; litteral](str){ [[5]] $nloc -- total ...}<LSEP>[argument 6; litteral](str){ [[6]] $expfpos -- NAs...}<LSEP>[argument 7; litteral](str){ [[7]] $sdfpos -- NAs,...}<LSEP>[argument 8; litteral](str){ [[8]] $prob -- NAs, p...}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){l}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.locmetric}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){metric}<LSEP>[](symbol){upper}<LSEP>[](symbol){lower}<LSEP>[](symbol){keep}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The number of rows in the loc....}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Population assignments not d...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](str){pop1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){metric}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: name of the met...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){field}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){metric}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](str){within}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){}<LSEP>[](symbol){field}<LEND>[](symbol){lower}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){}<LSEP>[](symbol){field}<LEND>[](symbol){upper}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](str){outside}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){}<LSEP>[](symbol){field}<LEND>[](symbol){lower}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){}<LSEP>[](symbol){field}<LEND>[](symbol){upper}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Initial number of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of loci deleted:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Final number of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){metaInfo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){id}<LSEP>[](symbol){hasfileonly}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){Stations_id}<LEND>[](symbol){id}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){sel}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rdwd::metaIndex contains no en...}<LSEP>[](symbol){id}<LSEP>[argument 2; litteral](str){. This ID probably does not ex...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nonpubmes}<LSEP>[litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nonpub}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){sel}<LSEP>[argument 2; litteral](str){hasfile}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){nonpub}<LEND>[](symbol){hasfileonly}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nonpubmes}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){\nAdditionally, there are }<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){nonpub}<LEND>[argument 2; litteral](str){ non-public files. Display all...}<LSEP>[](symbol){id}<LSEP>[argument 4; litteral](str){,FALSE)}<LSEP>[argument 5; litteral](str){\nTo request those datasets, p...}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){hasfileonly}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){hasfile}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){metaIndex}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){p_id}<LEND>[call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){Stations_id}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){p_sn}<LEND>[call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){Stationsname}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){p_bl}<LEND>[call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){Bundesland}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){p_nf}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){res}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){var}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){per}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p_id}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){p_id}<LSEP>[](symbol){id}<LEND>[statement 13; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){rdwd station id }<LSEP>[](symbol){p_id}<LSEP>[argument 2; litteral](str){ with }<LSEP>[](symbol){p_nf}<LSEP>[argument 4; litteral](str){ files.\nName: }<LSEP>[](symbol){p_sn}<LSEP>[argument 6; litteral](str){, State: }<LSEP>[](symbol){p_bl}<LSEP>[](symbol){nonpubmes}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){p_out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){von_datum}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){bis_datum}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){geoBreite}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){geoLaenge}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){Stationshoehe}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){p_out}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){res}<LSEP>[argument 1; litteral](str){var}<LSEP>[argument 2; litteral](str){per}<LSEP>[argument 3; litteral](str){hasfile}<LEND>[](symbol){p_out}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){p_out}<LSEP>[](symbol){from}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){p_out}<LSEP>[](symbol){from}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){p_out}<LEND>[call](){}<LSEP>[](symbol){sortDF}<LSEP>[](symbol){p_out}<LSEP>[argument 1; litteral](str){var}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){p_out}<LEND>[call](){}<LSEP>[](symbol){sortDF}<LSEP>[](symbol){p_out}<LSEP>[argument 1; litteral](str){res}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){p_out}<LEND>[call](){}<LSEP>[](symbol){sortDF}<LSEP>[](symbol){p_out}<LSEP>[argument 1; litteral](str){per}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){p_out}<LEND>[litteral](NULL){NULL}<LEND>[statement 22; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){p_out}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 23; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){out}