[R] How to plot Geohash on a Map using R

2016-02-29 Thread Ravi Teja
Hi, I want to plot the following Geo-hashes on a map with labels as the percentage against each Geohash. Geohash % distribution ttngh 26.14% ttnfu 17.67% ttng5 12.31% ttnfg 11.50% ttnfv 14.10% ttngk 7.33% ttngm 2.14% ttngj 6.06% ttnft 1.32% ttngs 0.75% ttngn 0.27% ttng7 0.20% ttnge 0.15% ttnfe 0.

[R] what is the effective method to apply the below logic for ~1.2 million records in R

2015-09-19 Thread Ravi Teja
Hi, I am trying to apply the below logic to generate flag_1 column on a data set consisting of ~1.2 million records in R. Code : for(i in 1: nrows) { if(A$customer[i]==A$customer[i+1]) { if(is.na(A$Time_Diff[i])) A$flag_1[i]