Dear Feng Shu, Thanks very much for your help. I am not familiar with R, but I will test it later. Best regards!