Suppose you have a data frame called df with 10 observations. One of the columns is a character column called ID. The first value of ID is "01", the second is "02", and so forth. The 10th observation for ID is "10". You then run the following code: df %>% mutate(ID_num = as.numeric(ID), ID_new = as.character(ID_num)) %>% filter(ID != ID_new) How many rows are displayed (outputted) in the result? 单项选择题
A
1
B
2
C
5
D
9
E
10
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Question1.18 What is the printout of the code below? a = '5'a = a + '0'b = int(a) / 2print(b - 5) Select one alternative: 2.5 0 20.0 Error ResetMaximum marks: 2
What is the value of A after the following command:A = int(3.82)
What will be the value of x when the following statement is executed:
Which built-in function can be use to convert an int value to a float?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!