您好,我已将我的规则转换为数据框以供进一步分析,但问题是我的数据框如下所示:
df <- data.frame(rules=c("{45107} => {62557}","{17759} => {60521 }",
"{53721} => {53720}","{63830} => {17753}","{45413} => {45412}",
"{3885,59800,17759} => {4749}","{17721,55906} => {9314}"))
rules
{45107} => {62557}
{17759} => {60521 }
{53721} => {53720}
{63830} => {17753}
{45413} => {45412}
{3885,59800,17759} => {4749}
{17721,55906} => {9314}
你能帮我把我的数据框改成这种格式吗?
lhs1 lhs2 lhs3 rhs
45107 62557
17759 60521
53721 53720
63830 17753
45413 45412
3885 59800 17759 4749
17721 55906 9314