Some R programming experiments