LoginSignup
1
1

More than 5 years have passed since last update.

ベクトルの中に指定のcharacterがあるか判定

Posted at

はじめに

いつもRでの書き方を忘れるので個人的なメモ。

> v <- c('ao','kuro','shiro','chairo')
> 'chairo' %in% v
[1] TRUE
> 'kiiro' %in% v
[1] FALSE

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1