R processing ijm and miji