Closed robertogilsaura closed 2 years ago
Hi, @robertogilsaura
First of all, you can't use a vector as a variable label. 8:9 are two values and a variable label should be only one value.
As for your main question, you can use set_var_lab(x1, "label")
in any place.
Thank you @gdemin. I have understood the answer and why the error occurs.
I thought that doing a var_lab() assignment, I was like assigning text to value, but it's true that 8:9 are two seq values.
I will work the etable object to get what I need (str_replace()
)
Thanks Gregory; as always, quick response...
PD: Thanks for maditr updating with respect etable class!
Hi @gdemin. I have a new question about coding with net (or subtotal).
In order to repeat by week the same structure in a monadic product test, I have several (a lot of) tables like this ...
Variable label changes weekly, and I would remain the same code.. If I run this code, there is an error
Error in check_class_for_stat(data) : argument "data" is missing, with no default
Error is in the assignment var_lab. If I substitute var_lab for 'text', table runs properly.
Is there anyway to do the var_lab() assignment dynamically?
Thanks in advance.
Regards.