title: How to put list of id's as a list without them being changed into integers
body: <p>I have a list of dispatch codes I am working with and am trying to plot a barchart.</p>
  
  <p>The issue is that they have values like <code>29D00V</code> and when I check their type using type of they come out as integer.</p>
  
  <p>I want to plot them as categoricals on the x axis of my barchart but when I convert them into a list using <code>c(rows_to_use$Group.1)</code> it turns them into integers.</p>
  
  <p>e.g. <code>24D01</code> becomes <code>568</code>
  I suspect it is reading them as Hex values and then converting them into integers. Is there an easy way of changing the entire Group.1 column of the dataframe into type string?</p>
  
  <p>Here is the current iteration of my script:</p>
  
  <pre><code>#read csv
  df &lt;-        read.csv(file="C:/Users/GIGNWI_Ar208671/Documents/R/Projects/CallTimes/call_times/data/risks_codes_descriptions.csv",header=TRUE)
  #correct garbled column name
  colnames(df)[1] = "call_times"
  rows_to_use &lt;-df
  #initialise new name, this is where filter will be applied if applicable
  rows_to_use = aggregate(x = rows_to_use$call_times,by=    (list(rows_to_use$DispatchCodeAndSuffix)),median)
  #Take the median of each dispatch code in the list
  rows_to_use &lt;- rows_to_use[order(-rows_to_use$x),]
  #Order by largest to smallest median call time
  rows_to_use &lt;-head(rows_to_use,100)
  #Take the top 100
  x = c(rows_to_use$x)
  y = c(rows_to_use$Group.1)
  #Create vectors for bar plot
  barchart(x, names.arg=y)
  #Plot barchart
  print(2)
  </code></pre>