Genome Team
March 30, 2021
R:要素をNAに置き換える方法
data <- c("a", "b", "c")
data
[1] "a" "b" "c"
要素にNAを代入したい場合は
data
[]
<- NA
data
[1] NA NA NA
下記との違いに注意する
data <- NA
data
[1] NA
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment