Professional Documents
Culture Documents
Workers Salary
Workers Salary
Workers Salary
WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will work.
Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system
preferences accordingly.
[Workspace restored from /Users/macintoshhd/.RData]
[History restored from /Users/macintoshhd/.Rapp.history]
> tika1<-c(58, 72, 64, 65, 67, 92, 55, 51, 69, 73, 64, 59, 65, 55, 75, 56, 89, 60,
84, 68, 74, 67, 55, 68, 74, 43, 67, 71, 72, 66, 62, 63, 83, 64, 51,
63, 49, 78, 65, 75)
>
>
> tika1
[1] 58 72 64 65 67 92 55 51 69 73 64 59 65 55 75 56 89 60 84 68 74 67 55 68 74 43
67 71 72
[30] 66 62 63 83 64 51 63 49 78 65 75
>
>
> mean(tika1)
[1] 66.275
>
>
> length(tika1)
[1] 40
>
>
>
> median(tika1)
[1] 65.5
>
>
> min(tika1)
[1] 43
>
> max(tika1)
[1] 92
>
> sd(tika1)
[1] 10.55386
>
> sqrt(var(tika1))
[1] 10.55386
>
>
> summary(tika1)
Min. 1st Qu. Median Mean 3rd Qu. Max.
43.00 59.75 65.50 66.28 72.25 92.00
>
> mode(tika1)
[1] "numeric"
>
>
> mean(tika1)
[1] 66.275
>
> sum(tika1 > 25)
[1] 40
>
> sum(tika1 = 25)
[1] 25
>
> sum(tika1 < 25)
[1] 0
>
> sum (tika1 == 25)
[1] 0
>
> sum(tika1 = 42)
[1] 42
>
> sum(tika1 == 73)
[1] 1
>
> tika1[35]
[1] 51
>
> tika1[32]
[1] 63
>
>
> tika1[23]
[1] 55
>
>
>
>
> mean(tika1 without [23])
Error: unexpected symbol in "mean(tika1 without"
>
> tika1[-23]
[1] 58 72 64 65 67 92 55 51 69 73 64 59 65 55 75 56 89 60 84 68 74 67 68 74 43 67
71 72 66
[30] 62 63 83 64 51 63 49 78 65 75
>
> mean(tika1-[23])
Error: unexpected '[' in "mean(tika1-["
> mean(tika1[-23])
[1] 66.5641
>
> mean(tika1[-c(23,10,13])
Error: unexpected ']' in "mean(tika1[-c(23,10,13]"
> mean(tika1[-c(23,10,13)])
[1] 66.43243
>
> tika1=andi1
Error: object 'andi1' not found
> tika1 = andi1
Error: object 'andi1' not found
>
>
>
>
> sum(tika1 < mean(tika1))
[1] 21
>
> percentage(tika1 < mean(tika1))
Error: could not find function "percentage"
>
> %(tika1 < mean(tika1))
Error: unexpected input in "%(tika1 < mean(tika1))"
>
> percent(tika1 < mean(tika1))
Error: could not find function "percent"
>
>
> help
function (topic, package = NULL, lib.loc = NULL, verbose = getOption("verbose"),
try.all.packages = getOption("help.try.all.packages"), help_type =
getOption("help_type"))
{
types <- c("text", "html", "pdf")
if (!missing(package))
if (is.name(y <- substitute(package)))
package <- as.character(y)
if (missing(topic)) {
if (!is.null(package)) {
help_type <- if (!length(help_type))
"text"
else match.arg(tolower(help_type), types)
if (interactive() && help_type == "html") {
port <- tools::startDynamicHelp(NA)
if (port <= 0L)
return(library(help = package, lib.loc = lib.loc,
character.only = TRUE))
browser <- if (.Platform$GUI == "AQUA") {
get("aqua.browser", envir = as.environment("tools:RGUI"))
}
else getOption("browser")
browseURL(paste0("http://127.0.0.1:", port, "/library/",
package, "/html/00Index.html"), browser)
return(invisible())
}
else return(library(help = package, lib.loc = lib.loc,
character.only = TRUE))
}
if (!is.null(lib.loc))
return(library(lib.loc = lib.loc))
topic <- "help"
package <- "utils"
lib.loc <- .Library
}
ischar <- tryCatch(is.character(topic) && length(topic) ==
1L, error = identity)
if (inherits(ischar, "error"))
ischar <- FALSE
if (!ischar) {
reserved <- c("TRUE", "FALSE", "NULL", "Inf", "NaN",
"NA", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_")
stopic <- deparse(substitute(topic))
if (!is.name(substitute(topic)) && !stopic %in% reserved)
stop("'topic' should be a name, length-one character vector or reserved
word")
topic <- stopic
}
help_type <- if (!length(help_type))
"text"
else match.arg(tolower(help_type), types)
paths <- index.search(topic, find.package(if (is.null(package))
loadedNamespaces()
else package, lib.loc, verbose = verbose))
tried_all_packages <- FALSE
if (!length(paths) && is.logical(try.all.packages) && !is.na(try.all.packages)
&&
try.all.packages && is.null(package) && is.null(lib.loc)) {
for (lib in .libPaths()) {
packages <- .packages(TRUE, lib)
packages <- packages[is.na(match(packages, .packages()))]
paths <- c(paths, index.search(topic, file.path(lib,
packages)))
}
paths <- paths[nzchar(paths)]
tried_all_packages <- TRUE
}
paths <- unique(paths)
attributes(paths) <- list(call = match.call(), topic = topic,
tried_all_packages = tried_all_packages, type = help_type)
class(paths) <- "help_files_with_topic"
paths
}
<bytecode: 0x7f8a434e4230>
<environment: namespace:utils>
>
>
>
>
>
>
starting httpd help server ... done
>
> tika1
[1] 58 72 64 65 67 92 55 51 69 73 64 59 65 55 75 56 89 60 84 68 74 67 55 68 74 43
67 71 72
[30] 66 62 63 83 64 51 63 49 78 65 75
>
>
>
> tika1 < mean(tika1).100%
Error: unexpected numeric constant in "tika1 < mean(tika1).100"
>
> sum(ema1 < mean(tika1))/40.100
Error: object 'ema1' not found
>
> sum(ema1 < mean(tika1))/length(tika1)*100
Error: object 'ema1' not found
> sum(tika1 < mean(tika1))/length(tika1)*100
[1] 52.5
>
>
> sum(tika1 > mean(tika1))/length(tika1)*100
[1] 47.5
>
> quantile(tika1, 0.75)
75%
72.25
>
> sum(quantile(tika1,0.75))*100
[1] 7225
>
> sum(tika1<median(tika1))/length(tika1)*100
[1] 50
>
> sum(tika1<quantile(tika1, 0.75))/length*100
Error in sum(tika1 < quantile(tika1, 0.75))/length :
non-numeric argument to binary operator
> sum(tika1<quantile(tika,0.75))/length*100
Error in quantile(tika, 0.75) : object 'tika' not found
> sum(tika1<quantile(tika1,0.75))/length*100
Error in sum(tika1 < quantile(tika1, 0.75))/length :
non-numeric argument to binary operator
> sum(tika1<quantile(tika1, 0.75)/length(tika1)*100
+
+
+
+
+
+
+
+
+
+
+
+
+ tika1
Error: unexpected symbol in:
"
tika1"
> sum(tika1 > quantile(tika1,0.75))/length(tika1)*100
[1] 25
>
> sum(tika1 < mean(tika1))
[1] 21
> sum(tika1 > mean(tika1))
[1] 19
> slices <- c(10, 12, 4, 16, 8)
> lbls <- c("US", "UK", "Australia", "Germany", "France")
> pie3D(slices,labels=lbls,explode=0.1,
+ main="Pie Chart of Countries ")
Error: could not find function "pie3D"
>
>
> slices <- c(21, 19) lbls <- c("less", "more")
pie3D(slices,labels=lbls,explode=0.1, main="Pie Chart of Salary ")
Error: unexpected input in "slices <- c(21, 19) "
>
> slices <- c(21, 19) lbls <- c("less", "more")pie(slices,labels=lbls,main="Pie
Chart of Salary ")
Error: unexpected input in "slices <- c(21, 19) "
>
> slices <- c(21, 19) lbls <- c("less", "more")pie(slices,labels=lbls,main="Pie
Chart of Salary ")
Error: unexpected input in "slices <- c(21, 19) "
> slices <- c(21,19) lbls <- c("less", "more")pie(slices,labels=lbls,main="Pie
Chart of Salary ")
Error: unexpected input in "slices <- c(21,19) "
> slices <- c(21, 19) lbls <- c("less","more")pie(slices,labels=lbls,main="Pie
Chart of Salary")
Error: unexpected input in "slices <- c(21, 19) "
> slices <- c(21,19)lbls <- c("less", "more")pie(slices, labels = lbls, main="Pie
Chart of Salary")
Error: unexpected input in "slices <- c(21,19)"
> slices <- c(21, 19)
> ibls <- c("less", "more")
> pie(slices, labels = ibls, main="Pie Chart of Salary Workers")
> pie(slices, labels = ibls, main="Pie Chart of Salary Workers",col=c("yellow")
+
+ tika1
Error: unexpected symbol in:
"
tika1"
> pie(slices, labels = ibls, main="Pie Chart of Salary Workers"), col=c("blue",
"red")
Error: unexpected ',' in "pie(slices, labels = ibls, main="Pie Chart of Salary
Workers"),"
> pie(slices, labels = ibls, main="Pie Chart of Salary Workers"), col= (c("blue",
"red"))
Error: unexpected ',' in "pie(slices, labels = ibls, main="Pie Chart of Salary
Workers"),"
> pie(slices, labels = ibls, main="Pie Chart of Salary Workers", col=c("blue",
"red"))
> hist(tika1)
> hist(tika1, col="blue")
> hist(adit1,col=1:11)
Error in hist(adit1, col = 1:11) : object 'adit1' not found
> hist(tika1,col=1:11)
> hist(tika1,col=1:11, main="andi")
> hist(tika1,col=1:11, main="andi", xlab="tika", ylab"andi)
+ tika1
+
+
+
+ tika1
+
+
+
+ mean(tika1)
+ de
+
+
+
+ tika1
+
+
+
+
>
>
> boxplot(tika1)
>