demo/dspl.R

################################################################################
# googlePublicData demo
# In this demo, we'll use the Public Data Explorer tutorial data available at:
#   https://developers.google.com/public-data/docs/tutorial
#
################################################################################
pause <- function() {  
  invisible(readline("\nPress <return> to continue: ")) 
}

# Complete directory path where the data is saved (in this case, where the
# package is installed)
data.path <- system.file("dspl-tutorial", package="googlePublicData")
pause()

# First Simplest example, 
mydspl <- dspl(path=data.path, sep=";")

# Printing the data
pause()
mydspl

# Summary of the dspl class object
pause()
summary(mydspl)

# End of the demo

Try the googlePublicData package in your browser

Any scripts or data that you put into this service are public.

googlePublicData documentation built on May 2, 2019, 3:45 a.m.