Four people are to be arranged in a row to have their picture taken. In how many ways can this be done?
Position 1 can be taken by all 4 persons, position 2 by 3, position 3 by 2 person and position 4 by 1 person.
factorial(4)
## [1] 24
This can be done in 24 ways.