input <- readLines('stdin')
x <- as.integer(input[1])
data <- data.frame(
"id" = c(1:10),
"grade" = c(75, 26, 54, 90, 86, 93, 48, 71, 66, 99)
)
y = subset(data, data$grade > x )
print (length(y$grade))
=============================
Grade Analysis
You have a dataframe that includes grades of students.
Your program needs to take a number as input, and output the number of students who have a grade greater than the given input.
For example, for the input 89, the output should be:
[1] 3
as 3 students have grades greater than 89.
Hint: You can use the length() function to find the number of items in a vector.
相关推荐
Use of the meeting street school screening test and the myklebust pupil rating scale with first-grade black urban children 386 Psychology in the Schools, October, 1976, Vol. 13, No. 4. GLASSER, A....
DStreams enhance the underlying Spark processing engine to support streaming analysis with a novel micro-batch processing model. Pro Spark Streaming by Zubair Nabi will enable you to become a ...
CLASSIFYING FIRST-GRADE CHILDREN INTO READING GROUPS 189 CHISSOM, B. S., & THOMAS, J. R. Multivariate validity of the Otis-Lennon Mental Ability Test CHISSOM, B. S., & THOMAS, J. R. Canonical ...
CLASSIFYING FIRST-GRADE CHILDREN INTO READING GROUPS 189 CHISSOM, B. S., & THOMAS, J. R. Multivariate validity of the Otis-Lennon Mental Ability Test CHISSOM, B. S., & THOMAS, J. R. Canonical ...
Use of the meeting street school screening test and the myklebust pupil rating scale with first-grade black urban children 386 Psychology in the Schools, October, 1976, Vol. 13, No. 4. GLASSER, A....
Serial Number Motor Type Synchronous Speed/(r/min) Rated Power/kW Full Speed/(r/min) 1 Y160M2-8 750 5.5 720 2 Y132M2-6 1000 5.5 960 3 Y132S-4 1500 5.5 1440 4 Y132S1-2 3000 5.5 2900 Figure 3-1 main ...
11. **grade**:建筑质量评分,也会影响价格。 12. **year_built**:建造年份,老旧房屋可能需要更多的维护和更新。 13. **yr_renovated**:最近翻新或改造的年份,翻新可以提升房屋价值。 14. **street**:街道类型...
- **电压等级**:Voltage Grade (V) 指电力系统中各部分的工作电压水平。 - **空载损耗**:No-Load Loss (P_nl) 当变压器处于空载状态时,由铁损和铜损引起的能量损失。 - **铁损**:Iron Loss (P_fe) 主要由...
1. **开门见山**:开始时,明确表明自己的身份,如文中所示,“I am a third-year master's major in Automation at Shanghai Jiao Tong University, P.R. China.” 这样的开场白既简洁又直接。 2. **教育背景介绍*...