我会尽可能地澄清这一点,因为我相信答案会非常简单,我会忽视。
我的HTML:
library(dplyr)
df <- structure(list(x = c(0.92, 0.9, 0.9, 0.88, 0.86, 0.52, 0.35, 0.28, 0.02, -0.03,
-0.02, -0.06, -0.06, -0.01, -0.01, 0.01, -0.03, -0.03, 0.01, 0.05, -0.01),
y = c(0.03, -0.01, -0.03, 0, 0.02, 0.01, -0.08, 0.04, 0.71, 0.71, 0.69, 0.57,
0.55, 0.52, 0.4, -0.37, 0.37, 0.36, -0.34, -0.33, -0.32)),
.Names = c("x", "y"), row.names = c(NA, 21L), class = "data.frame")
cutoff <- abs(0.32)
new_df <- rbind(df %>% filter(x >= cutoff ) %>% arrange(desc(abs(x))),
df %>% filter(x < cutoff) %>% arrange(desc(abs(y))))
我的助手:
<ul class="nav nav-tabs">
<li class="profile-info active"><a href="#">Personal Info</a></li>
<li class="profile-groups"><a href="#">Groups</a></li>
<li class="profile-commitments"><a href="#">Commitments</a></li>
</ul>
});
我只想要&#39;个人&#39;返回TRUE。然而,无论什么类型的&#34; IF&#34;声明我给它。