[英]how to remove “” from the vector in R
How can I remove the "to be able to download the vector's content i have vector: 我如何删除“以便能够下载我拥有矢量的矢量内容:
>wspólne
1 1 29 1 0 37 1 45
"1" "1" "29" "1" "0" "37" "1" "45" "31" "12" "2" "32" "25"
when he wants to get a value from this vector, he gets something like that 当他想从这个向量中获得价值时,他会得到类似的东西
waga_linków[wspólne]
[1] NA NA NA NA NA NA NA NA NA NA NA NA NA
how to write it correctly to get all the values without "" ?? 如何正确地编写它以获取没有“”的所有值?
This should work 这应该工作
wspólne <- as.numeric(wspólne) # coerce character to be numeric
waga_linków[wspólne]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.