Let's say I have a list of 3 elements x, y and z. The cols in each of these lists are of type double. Is there a quick way to convert the all the cols to strings?
dput(mylist)
list(structure(list(Age = c(1L, 1L, 2L, 3L, 4L, 5L), Year = c(10L,
11L, 10L, 11L, 10L, 12L)), class = "data.frame", row.names = c(NA,
-6L)), structure(list(Age = c(1L, 1L, 2L, 3L, 4L, 5L), Year = c(12L,
14L, 10L, 11L, 5L, 12L)), class = "data.frame", row.names = c(NA,
-6L)), structure(list(Age = c(1L, 1L, 2L, 3L, 4L, 5L), Year = c(12L,
14L, 10L, 11L, 5L, 12L)), class = "data.frame", row.names = c(NA,
-6L)))
I've tried various ways with lapply but just can't get it right.