R での XML に関するこのチュートリアルに取り組んでいるときに、次のコードに出くわしました。
xml.url <- "http://www.w3schools.com/xml/plant_catalog.xml"
xmlfile <- xmlTreeParse(xml.url)
xmltop <- xmlRoot(xmlfile)
plantcat <- xmlSApply(xmltop, function(x) xmlSApply(x, xmlValue))
最初の 3 行は理解できますが、私の人生では、最後の行は理解できません。誰かが私にそれを説明できますか?関数(x)があるのはなぜですか?