Displaying 2 results from an estimated 2 matches for "gebregiorgis".
2012 May 19
3
converting csv to image file
Hello everyone,
I want to get a 1km by lkm grid raster image using my csv data. If I call
latitude=a, longitude=b and preciptation=c.
a<-(1,2,3,4,5)
b<-(6,7,8,9,10)
c<-(10,20, 30,40, 50)
Then I found an example in r help which goes like
pts = read.table("file.csv",......)
library(sp)
library(rgdal)
proj4string(pts)=CRS("+init=epsg:4326") # set it to lat-long
pts =
2012 May 21
1
merging unbalanced rows
Hi Everyone,
I am merging two data frames that have different number of rows. But I end
up having rows a lot more than both rows combined. I tried the following
but the duplicate bit does not change anything. Can anyone suggest to me
how I can handle this?
Regards,
Belay
x <-c(1, 2, 3, 4,5, NA, NA,NA,NA,10)
y <-c( NA, 4,NA,5,2, 10, 7, 1, 8, 9)
d<-1:10 #### this one belongs to the