Skip to content
Prev 315416 / 398503 Next

removing loops from code in making data.frame

Hi,

In my first solution, you would get FALSE for identical(res,tutu) if you don't convert `res` columns to numeric.
Both res1, and tutu were matrix.? 
You can check the column class by:
? apply(res1,2,class)
Also try:
?all.equal(res1,tutu)
#[1] TRUE

A.K.