# Extract 3 consecutive rows starting from a random position in the dataset
folrows(esmdata_sim, n = 3)
# Extract 4 consecutive rows starting from 2 random positions in a custom dataframe
folrows(esmdata_sim, n = 4, nb_sample = 2)
Run the code above in your browser using DataLab