2
I have a table that is not in the standard reading format of R, that is, it has a variable in column (time) and two in line with the data arranged side by side (subject and treatment). Someone could shed some light on how to get R to import, read and convert this data that is crossed into a data frame?
Weidson, please post a sample of your data as file, selectable text or R object, because this way we cannot read your data without creating it manually.
– Molx
About the problem itself, I would solve in excel. Just create a new line and use the function
CONCATENAR
in rows 2 and 3 to create the column name, and after that you can delete the first three rows or use the argumentskip
.– Molx
Guys, thank you so much for your help and please excuse the lack of experience with R and the forum (little by little I’ll learn more). When I posted this question I did not know if you want the basic premises of reading R. I mean, I had to become more familiar with the language to find the solution with the help of a colleague of this forum. In order to make R understand the connection between data and variables we cannot have merged as illustrated above (in this way it is practically impossible to form variables).
– Weidson C. de Souza
Over time I discovered the basic premises that to make the manipulation it is necessary to always have variables arranged in columns. So what I needed to know was simply how to form variables. It follows the link of what I actually intended to do.link
– Weidson C. de Souza