powered by
This function produces a serpentine array of integers beginning by one
serpentine(n, times, m = 1)
vector containing the serpentine sequence
integer value indicating the upper cap of a numeric sequence
integer number of replications
integer value indicating the lower cap of a numeric sequence
serpentine(n=20,times = 15) serpentine(n=20,times = 15,m=4)
Run the code above in your browser using DataLab