Re: [R-sig-Geo] help for select two columns in a data frame

2009-03-05 Thread Kamran Safi
Hi, sample_real <- sample[, c(2,4)] writeOGR(sample_real, ".", "sample_real", driver="ESRI Shapefile") should do the job. Kami gianni lavaredo wrote: sorry for the easy questions but I have this problem. I had read Help but I didn't find this question. Sorry for desturbing but I am a brand n

[R-sig-Geo] help for select two columns in a data frame

2009-03-05 Thread gianni lavaredo
sorry for the easy questions but I have this problem. I had read Help but I didn't find this question. Sorry for desturbing but I am a brand new in R, sorry again # I have a shape file with 4 column (soil, ID, country, pH) sample <- readOGR(".", "sample") summary("sample") # I wish select only th