Описание тега sapply

NoneSapply is a command in the R language that applies a function to each element of a vector (atomic or list). It may also accept other classes if they are coercible by the function base::as.list. The sapply function returns a vector by default, however will return a list when more suitable or an array if argument simplify = "array" is specified.

Sapply is a command in the R language that applies a function to each element of a list. The sapply function returns a vector, rather than a list.