數據幀我有文字是這樣的:轉換文本通過特定模式中的R
text <- "Jeon Bo-ram (born March 22, 1986):She, better known mononymously as Boram, is a South Korean singer and actress. She is best known as a member of the South Korean girl group T-ara. Taylor Alison Swift (born December 13, 1989): She is an American singer-songwriter. One of the leading contemporary recording artists, she is known for narrative songs about her personal life, which have received widespread media coverage. Nickolas Gene Carter (born January 28, 1980): He is an American musician and actor. He is best known as a member of the pop group the Backstreet Boys. As of 2015, Carter has released three solo albums, Now or Never, I'm Taking Off and All American during breaks between Backstreet Boys schedules, and a collaboration with Jordan Knight titled Nick & Knight. He has made occasional television appearances and starred in his own reality shows, House of Carters and I (Heart) Nick Carter. He gained fame in the mid 1990s and early 2000s as a teen idol. He is also the older brother of singer Aaron Carter and the late Leslie Carter. Clyde Jackson Browne (born October 9, 1948): He is an American singer-songwriter, and musician who has sold over 18 million albums in the United States. Coming to prominence in the 1970s, Browne has written and recorded songs such as These Days, The Pretender, Running on Empty, Lawyers in Love, Doctor My Eyes, Take It Easy, and For a Rocker. In 2004, he was inducted into the Rock and Roll Hall of Fame in Cleveland, Ohio, and given an honorary doctorate of music by Occidental College in Los Angeles, California."
任何建議,以得到這樣的:
name born detail
Jeon Bo-ram born March 22, 1986 She, better known mononymously as Boram, is a South Korean singer and actress. She is best known as a member of the South Korean girl group T-ara. Taylor Alison Swift (born December 13, 1989): She is an American singer-songwriter. One of the leading contemporary recording artists, she is known for narrative songs about her personal life, which have received widespread media coverage.
Taylor Alison Swift born December 13, 1989 She is an American singer-songwriter. One of the leading contemporary recording artists, she is known for narrative songs about her personal life, which have received widespread media coverage.
Nickolas Gene Carter born January 28, 1980 He is an American musician and actor. He is best known as a member of the pop group the Backstreet Boys. As of 2015, Carter has released three solo albums, Now or Never, I'm Taking Off and All American during breaks between Backstreet Boys schedules, and a collaboration with Jordan Knight titled Nick & Knight. He has made occasional television appearances and starred in his own reality shows, House of Carters and I (Heart) Nick Carter. He gained fame in the mid 1990s and early 2000s as a teen idol. He is also the older brother of singer Aaron Carter and the late Leslie Carter.
Clyde Jackson Browne born October 9, 1948 He is an American singer-songwriter, and musician who has sold over 18 million albums in the United States. Coming to prominence in the 1970s, Browne has written and recorded songs such as These Days, The Pretender, Running on Empty, Lawyers in Love, Doctor My Eyes, Take It Easy, and For a Rocker. In 2004, he was inducted into the Rock and Roll Hall of Fame in Cleveland, Ohio, and given an honorary doctorate of music by Occidental College in Los Angeles, California.
我嘗試這一點,但未能解決問題。
cbind(do.call(rbind, strsplit(text, ":")), sub(".*[ ]", "", text))
你已經採取了,並沒有WLD工作是有益的補充,因爲這通常不是一個代碼編寫服務的一些步驟。 – hrbrmstr
正則表達式? '(。*?)\((born。*?)\):(。*)' – rbm