R/env_returnConcentrationAndRateChange.R

Defines functions env_returnConcentrationAndRateChange

Documented in env_returnConcentrationAndRateChange

env_returnConcentrationAndRateChange <-
function(xmlResultFile)
{
	allBulkSolutes<-list()
	for(element in 1:xmlSize(xmlResultFile[[1]][[3]]))
	{
		if(xmlName(xmlResultFile[[1]][[3]][[element]])=="solute")
		{
			soluteName<-paste(xmlAttrs(xmlResultFile[[1]][[3]][[element]])[[1]],"_Concentration",sep="")
		}
		else
		{
			soluteName<-paste(xmlAttrs(xmlResultFile[[1]][[3]][[element]])[[1]],"_UptakeRate",sep="")
		}

		gprlist <- list()
		gprlist[[soluteName]]<-xmlResultFile[[1]][[3]][[element]][[1]]
		# Add to the overall array
		allBulkSolutes<-append(allBulkSolutes,gprlist)
	}

	return(allBulkSolutes)
}

Try the iDynoR package in your browser

Any scripts or data that you put into this service are public.

iDynoR documentation built on May 2, 2019, 5:56 a.m.