r spread syntax code example Example: r spread syntax spread(data, key, value, fill = NA, convert = FALSE, drop = TRUE, sep = NULL)