Created
March 25, 2019 09:02
-
-
Save kkprakasa/26dfbd6cfe694d9e6d2cc48cb0606980 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script untuk menarik data per blok di PODES | |
head(read.dbf('podes2018_desa_part1_revisi.dbf')[,c(1:8,which(grepl("R404",colnames(read.dbf('podes2018_desa_part1_revisi.dbf')))))]) | |
fungsi which akan mengembalikan nilai posisi kolom, | |
fungsi grepl akan mencari karakter yang terkandung pada variabel 1 ('R404') didalam list variabel 2 (colnames( ...)) | |
jalankan tanpa *head* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment