title: Convert Excel .xlsx to list of vectors in R
body: <p>After importing a .xlsx file into R (readxl package), how could I make a list of vector out of it (the first column as the vector name)?</p>
  
  <p>Example .xlsx input (note that it has a variable number of columns per row):</p>
  
  <pre><code>row_1 | A | B |
  row_2 | C | D | E |
  row_3 | F | G | H | I |
  </code></pre>
  
  <p>Output I am trying to obtain:</p>
  
  <pre><code>$`row_1`
  [1] "A" "B"
  
  $`row_2` 
  [1] "C" "D" "E" 
  
  $`row_3`
  [1] "F" "G" "H" "I" 
  </code></pre>
  
  <p>My attempt so far:</p>
  
  <pre><code>xcel &lt;- read_excel("my_data.xlsx", col_names=F)
  df &lt;- scan(xcel)
  </code></pre>
  
  <p>I tried different flavours of this command lines but end up either with 'Error in file(file, "r") : invalid 'description' argument' or 'Error in scan(xcel) : 'file' must be a character string or connection', depending if I convert 'xcel' as a data frame or not.</p>