Maybe I'm just slow today but what are the columns? I had a look at the dataset and it has no headers so reading it into R just supplies us with something like : dput(head(sm))
sup <- structure(list(V1 = c(7L, 7L, 7L, 7L, 9L, 7L), V2 = c(6L, 8L, 8L, 9L, 9L, 6L), V3 = c(8L, 8L, 7L, 9L, 6L, 8L), V4 = c(8L, 8L, 10L, 8L, 7L, 7L), V5 = c(8L, 9L, 10L, 8L, 8L, 7L), V6 = c(30.25, 26.75, 28.75, 33.25, 32.25, 27.5), V7 = c(20.25, 33, 33, 32.75, 35.25, 25.5), V8 = c(29.75, 27.75, 25.75, 29, 23, 26.75), V9 = c(28.25, 30, 36.75, 26.25, 24.25, 30.75), V10 = c(24.5, 43, 41.25, 33.5, 34.75, 35.25)), .Names = c("V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8", "V9", "V10"), row.names = c(NA, 6L), class = "data.frame") Presumably V1 is related to V6 somehow? If so what is one expected to do with the data? John Kane Kingston ON Canada > -----Original Message----- > From: f.a.elsendo...@gmail.com > Sent: Tue, 19 Jun 2012 01:29:26 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Apply() on columns > > Hi, > > It wasn't my purpose to quote the assignment here, but since my example > is > crappy I will. > So I'am a manager of a supermarket and interested in the average working > hours per employee. > At http://www.mijnbestand.nl/Bestand-6Z8PB7VNSUHZ.txt this link you can > find the dataset. > The dataset contains the total number of employees (first 5 columns) > together with the number of worked hours (last 5 columns) of the evening > filling team of the supermarket over the period 2 Januari 1992 until 2 > January 1993 (each row contains the data of one week). Summerize the data > as > informative as possible for the manager; use graphical and numerical > summaries for this. For this you may use the function apply. To load > these > data you may prefer to use the R-function read.table instead of the > function > scan. > > By graphical summary I thougt of: boxplot, histogram, qqplot > By numerical summary I thougt of: 5pointssummary. > > How can I use apply (because I must use that function) in order to make > those summaries? > > Yours > > Frans Elsendoorn > > -- > View this message in context: > http://r.789695.n4.nabble.com/Apply-on-columns-tp4633468p4633813.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.