I have an Input like below and would like to know how I can convert it into Output format.
Input:
data <- c(
"A \t 2212 \t 2267 \t 2299",
" \t 2015 \t 2068 \t 2067",
"B \t 5210 \t 5289 \t 5293",
" \t 4583 \t 4604 \t 4205",
"C \t 4720 \t 4510 \t 4558"
)%>% data.frame()
Output:
Group C1 C2 C3
A 2212 2267 2299
A 2015 2068 2067
B 5210 5289 5293
B 4583 4604 4205
C 4720 4510 4558
This post does not fit the theme of this forum. It's a simple R question. Please add more biological context or the question will be deleted.