我的连续变量范围从0到1000+。但是,我想将它们转换为具有最低值0的组作为单个组。
x <- cut(x, breaks = c(0,50,100,200,500,1000)),
labels = c("0","1-50","51-100","101-199","200-499",
"500-999",">1000")
使用剪切功能无法达到此目的。我有什么遗失的吗?
答案 0 :(得分:3)
您在致电x <- cut(x, breaks = c(0,50,100,200,500,1000,max(x)),labels = c("0-50","51-100","101-199","200-499","500-999", "1000+"), include.lowest = TRUE)
<?php
$string = '[1] edited profile picture of [2]';
$replaceArray = array('[1]' => 'Mark Zuckerberg',
'[2]' => 'John doe');
$string = strtr($sting, $replaceArray);
echo $string;
?>
后面有一个结束括号,过早结束通话。这应该有效:
Mark Zuckerberg edited profile picture of John doe