Assume 3 df
:
d1 <- data.frame(replicate(10,sample(0:1,1000,rep=TRUE)))
d2 <- data.frame(replicate(10,sample(0:1,1000,rep=TRUE)))
d3 <- data.frame(replicate(10,sample(0:1,1000,rep=TRUE)))
in R you can view the head of a dataframe with:
head(d1)
Now How can I write function/loop to see the head
of all dataframes ?