当前位置: 首页 > news >正文

雇人做淘宝网站多少钱南昌企业建站系统模板

雇人做淘宝网站多少钱,南昌企业建站系统模板,做视频网站资金多少,企业网站建设 价格文章目录 matchpmatchcharmatch match ?matchDescription match returns a vector of the positions of (first) matches of its first argument in its second. 第一个向量中的元素在第二个向量中的位置,如果第二个向量中有多个仅返回第一个match 元素的位置&…

文章目录

  • match
  • pmatch
  • charmatch

match

?match
Description
match returns a vector of the positions of (first) matches of its first argument in its second.
第一个向量中的元素在第二个向量中的位置,如果第二个向量中有多个仅返回第一个match 元素的位置,第二个向量中不存在则返回NULL%in% is a more intuitive interface as a binary operator, which returns a logical vector indicating if there is a match or not for its left operand.操作符 %in% 是match的简易变形版本,返回结果为TRUE,FALSEUsage
match(x, table, nomatch = NA_integer_, incomparables = NULL)x %in% tableArguments
x	 vector or NULL: the values to be matched. Long vectors are supported.table	vector or NULL: the values to be matched against. Long vectors are not supported.nomatch	 the value to be returned in the case when no match is found. Note that it is coerced to integer.
如果没有match,应该返回什么值,默认是NULLincomparables	 a vector of values that cannot be matched. Any value in x matching a value in this vector is assigned the nomatch value. For historical reasons, FALSE is equivalent to NULL.
类似于排除第一个向量中的某些元素,当第一个向量中的某些元素match 该参数指定的向量时,则返回NULL。
Examples
# 取两个向量的交集
intersect <- function(x, y) y[match(x, y, nomatch = 0)]
intersect(1:10, 7:20)1:10 %in% c(1,3,5,9)
sstr <- c("c","ab","B","bba","c",NA,"@","bla","a","Ba","%")
sstr[sstr %in% c(letters, LETTERS)]

pmatch

?pmatch
Description
pmatch seeks matches for the elements of its first argument among those of its second.Usage
pmatch(x, table, nomatch = NA_integer_, duplicates.ok = FALSE)Arguments
x	the values to be matched: converted to a character vector by as.character. Long vectors are supported.table	the values to be matched against: converted to a character vector. Long vectors are not supported.nomatch	the value to be returned at non-matching or multiply partially matching positions. Note that it is coerced to integer.duplicates.ok	should elements be in table be used more than once?
这个参数控制该函数的行为,决定第二个向量中可以match几次,是遇到第一个match的就终止match还是寻找所有可以match的
Examples
pmatch("", "")                             # returns NA
pmatch("m",   c("mean", "median", "mode")) # returns NA    <--- 更具这一个示例,我觉得还是不要考虑使用这个函数了,通常我们会认为应该返回一个位置的,但返回了NA,容易给人造成误导。
pmatch("me",c("mean", "median", "mode"),duplicates.ok = TRUE) # returns NA
pmatch("med", c("mean", "median", "mode")) # returns 2pmatch(c("", "ab", "ab"), c("abc", "ab"), dup = FALSE)
pmatch(c("", "ab", "ab"), c("abc", "ab"), dup = TRUE)
## compare
charmatch(c("", "ab", "ab"), c("abc", "ab"))

charmatch

?charmatch
Description
charmatch seeks matches for the elements of its first argument among those of its second.Usage
charmatch(x, table, nomatch = NA_integer_)Arguments
x	the values to be matched: converted to a character vector by as.character. Long vectors are supported.table	the values to be matched against: converted to a character vector. Long vectors are not supported.nomatch		the (integer) value to be returned at non-matching positions.

if multiple exact or multiple partial matches are found then 0 is returned and if no match is found then nomatch is returned.

Examples
charmatch("", "")                             # returns 1
charmatch("m",   c("mean", "median", "mode")) # returns 0
charmatch("med", c("mean", "median", "mode")) # returns 2
http://www.yayakq.cn/news/528456/

相关文章:

  • 郑州哪家做网站最好建设信用卡在线海淘网站返现
  • 阿里 做网站一些网站是用什么颜色做的
  • 南海网站建设定制家具价格
  • 建设公司的网站制作查看网址
  • 网站标题psd营销网址大全
  • 网站建设phpwordpress自定义页面链接
  • php网站开发if的代码小程序交易买卖平台
  • 做好对外门户网站建设什么是网络营销的渠道策略
  • 做网站优化最快的方式养殖类网站模板
  • 我做的网页怎么是危险网站网站关键词优化的价格
  • 顺义成都网站建设河南高端网站建设
  • 网站开发外文文献wordpress 发帖
  • 阿里云网站建设方案书一定要嘛网站建设预计资金投入
  • 台州自助建站系统做仓单的网站
  • 如何做网站搭建api接口网站建设属于行政那个模块
  • 玉泉路做网站免费wordpress主题 h5
  • 学校网站建设工作静态网页设计作品欣赏
  • 名费网站制作视频教程东莞网页
  • 百度地图电脑版网页公司百度官网优化
  • 法律网站建设方案自己建立网站的方法
  • 西安的电商平台网站建设手机网站全屏显示
  • 河南联通 网站备案建设网站哪家比较好
  • 中卫市住房建设局网站广州app网站建设
  • 凡科模板建站网站开发工具总结
  • 低价网站建设行业现状动易网站默认密码
  • 河南省建设厅网站总经济师大良品牌网站建设
  • 网站找人做seo然后网站搜不到了最新新闻热点事件中国
  • 网站建设案例域名注册好怎么建设网站
  • 网站板块设计有哪些企业注册好了怎么做网站
  • 郑州企业网站如何建设高端网网站建设