I have uploaded a raster file and polyline shapefile into R and use the `extract` function to to extract the data from every pixel along the polyline. How do I turn the list output by `extract` into a CSV file?