/usr/lib/R/site-library/dplyr/include/dplyr/Result/Sd.h is in r-cran-dplyr 0.7.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #ifndef dplyr_Result_Sd_H
#define dplyr_Result_Sd_H
#include <dplyr/Result/Processor.h>
namespace dplyr {
template <int RTYPE, bool NA_RM>
class Sd : public Processor<REALSXP, Sd<RTYPE, NA_RM> > {
public:
typedef Processor<REALSXP, Sd<RTYPE, NA_RM> > Base;
Sd(SEXP x, bool is_summary = false) :
Base(x),
var(x, is_summary)
{}
~Sd() {}
inline double process_chunk(const SlicingIndex& indices) {
return sqrt(var.process_chunk(indices));
}
private:
Var<RTYPE, NA_RM> var;
};
}
#endif
|