gpt4 book ai didi

r - 为什么 sub() 和 gsub() 有相同的结果?

转载 作者:行者123 更新时间:2023-12-05 02:56:37 26 4
gpt4 key购买 nike

<分区>

x <- c("This is a sentence about axis",
"A second pattern is also listed here")

sub(".*is", "XY", x)
#[1] "XY" "XYted here"

gsub(".*is", "XY", x)
#[1] "XY" "XYted here"

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com