title: R how to get binary representation of files
body: <p>I need to build a classifier which will receive a file as input and then it needs to decide type of that file...For example valid classifications could be an image file, a movie file, a sound file, a text file with character data, a text file with numeric data</p>
  
  <p>I am thinking of looking at the binary representation of files and then building a machine learning algorithm.</p>
  
  <p>Is there a R package which can provide me binary representation of a file once I provide the file?</p>