I'm extracting data using a point shapefile and currently am able to write an output file for only one point shapefile using the below code.
file<- "soil.sil"
write.table("[thickness]\nunit=m",file, append = TRUE, row.names=FALSE, quote=FALSE, col.names=FALSE)
write.table(paste0("1=",L1), file, append = TRUE, row.names=FALSE, quote=FALSE, col.names=FALSE)
write.table(paste0("2=",L2), file, append = TRUE, row.names=FALSE, quote=FALSE, col.names=FALSE)
I would however want to write separate output files given several points. How can I accomplish this?
The file structure is such that details are listed down, here is a sample
[soil]
[thickness]
unit=m
1=0.05
2=0.1