The generic function marks is imported from package spatstat.geom. See spatstat.geom::marks for spatstat.geom's own methods, and marks.epidataCS for the "epidataCS"-specific method.