I want to split data on various factor like below
my data : "vs=1;am=0" fetched from one column from excel file
I want an output as below:
vs am
1 0
I have tried:
s <- unlist(strsplit(Condition, split = ";"))
s <- strsplit(s, split = "=")
data<- data.frame(Condition = unlist(s))
but its getting all data in one column like below:
vs
1
am
0
Please help in splitting this into required structure(dataframe)