R&D has no cost. They pay minimum wages to employees to research and develop new technology. There are no extra expenses to this.
R&D is a major cost. Apple does not pay minimum wage for these employees. You may be confusing R&D (Research and Developement) for manufacturing cost employees.