How to undo strsplit to put multiple characters into one

wen

Let's say I have a string of words

txt = "The licenses for most software"
length(txt)
1

I can use strsplit to split it into its composite words

t = unlist(strsplit(txt, split=" "))
length(t)
5

Now I want to undo what I did. How can I reconnect 5 words together into the original string?

Thanks

jlhoward
paste(t,collapse=" ") 
# [1] "The licenses for most software"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How to write multiple statements in one if block in clojure?

来自分类Dev

Replace multiple characters with multiple replacers

来自分类Dev

How to add multiple class file in one XAML file in WPF

来自分类Dev

How do I print multiple images to one page on Chrome OS?

来自分类常见问题

How do I "undo" a --single-branch clone?

来自分类Dev

How do I undo commits that haven't been pushed yet?

来自分类Dev

Javascript (jquery) - Multiple Handlers attached to one event: How to detach only one?

来自分类Dev

@ ngrx / data-撤消乐观删除,UNDO_ONE操作是否应还原changeState?

来自分类Dev

Multiple Selects into one select

来自分类Dev

strsplit with vertical bar (pipe)

来自分类Dev

Pig功能中的StrSplit

来自分类Dev

猪巢STRSPLIT

来自分类Dev

Strsplit 重新排序

来自分类Dev

How to put a table in the center of the page?

来自分类Dev

How put Google MapView in UIView?

来自分类Dev

ionic serve displays multiple addresses and I chose wrong one...How to change address that ionic serve uses?

来自分类Dev

How do I get my command line utility to update one line instead of printing multiple lines?

来自分类Dev

Clojure, concat multiple sequences into one

来自分类Dev

Join multiple records to one row?

来自分类Dev

使用strsplit添加新列

来自分类Dev

为什么strsplit返回列表

来自分类Dev

从strsplit使用长度不等的ldply

来自分类Dev

从R中的strsplit删除空格

来自分类Dev

使用gsub代替strsplit或scan

来自分类Dev

从R中的strsplit删除空格

来自分类Dev

Collect files from several different directories and put them in one place

来自分类Dev

How to match specific characters only?

来自分类Dev

How to wrap or put ellipsis on text using postscript?

来自分类Dev

How to put mutable Vector into State Monad

Related 相关文章

热门标签

归档