How do I get percentage changes instead of absolute levels in my R data download?

To change absolute levels to percentage changes, do this:

mydata = Quandl("NSE/OIL", transform="rdiff")
Other transformations available include raw changes, normalized growth from 100, and cumulative sums:
mydata = Quandl("NSE/OIL") 					# raw data
mydata = Quandl("NSE/OIL", transform="diff") 	 	# changes
mydata = Quandl("NSE/OIL", transform="rdiff") 		# percentage changes	
mydata = Quandl("NSE/OIL", transform="normalize") 		# growth from 100
mydata = Quandl("NSE/OIL", transform="cumulative") 	# cumulative sum
	

Still need help? Contact Us Contact Us