Subdivide square into mini squares

0

I have a random square (can be generated randomly) and I want to divide it into% w /% smaller squares without intersecting them, and save% w /% of smaller squares. In case the scope of the function would be

funcao = function(n, dataset){

 return(list(quadradosMenores)) #O id ficaria guardado no endereço da lista
} 

Does anyone have any idea how to get started?

Thank you in advance!

    
asked by anonymous 16.04.2016 / 06:41

0 answers