Re: [R-sig-Geo] Binding columns of pixel values

2021-09-09 Thread Ben Tupper
Hi, In general you won't be happy with column (or row) binding if you are starting out with vectors of varying lengths. That's cbind and rbind are what I call rectangle-centric. They want to produce rectangular data, like matrices and data.frames. How do they make a rectangle from 6 vectors of

[R-sig-Geo] Binding columns of pixel values

2021-09-09 Thread Enoch Gyamfi Ampadu
Dear List, I hope you are all well. Please I did an extraction of pixel values for 6 land cover classes using *extract()*. Now I want to bind them into a single *data frame* but it is not working due to different lengths of columns. I have tried some *cbind* and at some point *rbind* but have stil