R/readSimResultFile.R

Defines functions readSimResultFile

Documented in readSimResultFile

readSimResultFile <-
function(resultFolder,resultFileType,timePoint)
{
	opSys<-.Platform$OS.type
	if(opSys=="windows")
	{
		# REPLACE THE SLASH IN THE FILEPATH IF PRESENT
		resultFolder<-gsub("\\\\","/",resultFolder)
		
	}

	#### READ IN THE XML FILE
	doc <- xmlTreeParse(paste(resultFolder,"/",resultFileType,"/",resultFileType,"(",timePoint,").xml",sep=""))
	#### GET THE DATA
	xmlResultData<-xmlRoot(doc)

	return(xmlResultData)
}

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.