The error I get when I try to run this function is the following :
tovector(sondage)
Erreur : Assigned data b must be compatible with row subscript i.
x 1 row must be assigned.
x Assigned data has 5 rows.
i Row updates require a list value. Do you need list() or as.list()?
Run rlang::last_error() to see where the error occurred.
The aim of this function is to convert some columns of a table into vector of strings.
I would then put each element of each vector in a different colum.
The issue I have is that I don't understand why the value stocked in b cannot replace the content of the cell.
I think you have to return a as the result of the function.
When I apply the function on a simple case of sondage I get no errors. See below.
Therefore show us your input (or a simplified version of that): the most simple case that still gives the error.
To give a bit of context, my data come from an excel sheet that I read with the library read_xlsx.
It is a data from a form of an association that organize events and want to know the opinion of its community.
The columns presenting problems (the 3rd, the 11th and the 14th) contain the answers of multiple choice questions and thos answers seems to be table or lists elements in r.
(As I understand it.)
Yet I do not understand why it doesn't work.
Is there things that we cannot do given some class presents in a column ?