I have a data set, dat, which was got from a model run.
The head of the dataset looks like this:
[[1]]
[1] -1
[[2]]
[2] -2
[[3]]
[3] -1
[[4]]
[4] 0
[[5]]
[5] -6
[[6]]
[6] -7
How can I convert dat to a simple data frame with a single column like this
-1
-2
-1
0
-6
-7
Thanks
Dan
You probably want to use the
unlistfunction. For example:And you can turn it into a column by
cbinding the results