title: Creating Tables and Bar Plots in R as a Beginner
body: <p>I've begun using R recently so this might be simple to solve. I actually have two problems but I believe they`re connected. </p>
  
  <p>I have a simple dataset (.csv file with 3 columns and 7 rows) and I'm trying to create a table out of it and plot a bar graph with the values of the two numerical columns. </p>
  
  <pre><code>Grupo de idade;Freq. Relativa Homens;Freq. Relativa Mulheres
  16 a 19;0,411;0,415
  20 a 24;0,787;0,701
  25 a 34;0,922;0,745
  35 a 44;0,923;0,755
  45 a 54;0,882;0,760
  55 a 64;0,696;0,583
  65 ou mais;0,205;0,126
  
  df = read.csv(filename, header = TRUE, sep = ";")
  tab = table(df)
  sd = cbind(df$Freq.Homens, df$Freq.Mulheres)
  barplot(sd, beside = TRUE)
  </code></pre>
  
  <p>So first my table ends up looking like this, with the values as headers:</p>
  
  <pre><code>Freq..Relativa.Homens
  Grupo.de.idade 0,205 0,411 0,696 0,787 0,882 0,922 0,923
      16 a 19        0     0     0     0     0     0     0
      20 a 24        0     0     0     0     0     0     0
      25 a 34        0     0     0     0     0     0     0
      35 a 44        0     0     0     0     0     0     0
      45 a 54        0     0     0     0     1     0     0
      55 a 64        0     0     0     0     0     0     0
      65 ou mais     0     0     0     0     0     0     0
  </code></pre>
  
  <p>And my graph is plotted with integers values like 2, 4, and 6. I noticed that happened because of the <code>cbind</code> function, but without it, I can`t plot anything.</p>