Table of Contents
  
    
      This file contains hidden or 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
    
  
  
    
  | license: mit | 
  
    
      This file contains hidden or 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
    
  
  
    
  | -- Create the table | |
| CREATE TABLE IF NOT EXISTS `StateBoundaries` ( | |
| `State` varchar(10) DEFAULT NULL, | |
| `Name` varchar(255) DEFAULT NULL, | |
| `MinLat` varchar(50) DEFAULT NULL, | |
| `MaxLat` varchar(50) DEFAULT NULL, | |
| `MinLon` varchar(50) DEFAULT NULL, | |
| `MaxLon` varchar(50) DEFAULT NULL | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Examples | |
| library(dplyr) | |
| source("s_dplyr.R"); | |
| # Original usage of dplyr | |
| mtcars %>% | |
| filter(gear == 3,cyl == 8) %>% | |
| select(mpg, cyl, hp:vs) | |
| # Select user specified cols. | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var fs = require('fs'); | |
| var path = require('path'); | |
| function base64ToPNG(data) { | |
| data = data.replace(/^data:image\/png;base64,/, ''); | |
| fs.writeFile(path.resolve(__dirname, '../tmp/image.png'), data, 'base64', function(err) { | |
| if (err) throw err; | |
| }); | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | license: gpl-3.0 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Example code for exporting data in a table to a csv file. | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Helper functions that allow string arguments for dplyr's data modification functions like arrange, select etc. | |
| # Author: Sebastian Kranz | |
| # Examples are below | |
| #' Modified version of dplyr's filter that uses string arguments | |
| #' @export | |
| s_filter = function(.data, ...) { | |
| eval.string.dplyr(.data,"filter", ...) | |
| } | 
NewerOlder