Quadstat Output - Average

Submitted by Anonymous (not verified) on September 2, 2017 - 9:20 PM

Error: '\l' is an unrecognized escape in character string starting "'X <- read.table("/var/www/html/private/stat/datasets/admin/dataset-40927.csv", sep=",", header = TRUE);
dfr <- read.table("/var/www/html/private/stat/datasets/admin/dataset-40927.csv", sep=",", header = TRUE);
colNam <- colnames(X);
X <- cbind(X[,1]);
colnames(X) <- c(colNam);
dfr <- as.data.frame(c(dfr))
if (length(X) == 0) {
noquote("Please select a column with at least one value.");
}

if (length(X) == 1) {
noquote(paste0("$\bar{x} = \frac{", X, "}{1}.$"));
}

if (length(X) == 2) {
noquote(paste0("$\bar{x} = \frac{", X, "+", X, "}{2}.$"));
}

if (length(X) == 3) {
noquote(paste0("$\bar{x} = \frac{", X, "+", X, "+", X, "}{3}.$"));
}

From Around the Site...

Title Authored on Content type
R Dataset / Package wooldridge / sleep75 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package boot / tuna March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / CRANpackages March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Ketchup March 9, 2018 - 1:06 PM Dataset
R Dataset / Package robustbase / condroz March 9, 2018 - 1:06 PM Dataset