Q: how to sum columns in R? A: use a web search engine Le 21/02/2013 16:33, nandita srivastava a ?crit :> how to sum columns in R? > > ______________________________________________ > R-help at 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. >
Hi ?ncol Regards Petr> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of nandita srivastava > Sent: Thursday, February 21, 2013 8:34 AM > To: r-help at r-project.org > Subject: [R] (no subject) > > how to sum columns in R? > > ______________________________________________ > R-help at 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.
?colSums MW On Feb 21, 2013, at 11:26 AM, PIKAL Petr <petr.pikal at precheza.cz> wrote:> Hi > > ?ncol > > Regards > Petr > > >> -----Original Message----- >> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- >> project.org] On Behalf Of nandita srivastava >> Sent: Thursday, February 21, 2013 8:34 AM >> To: r-help at r-project.org >> Subject: [R] (no subject) >> >> how to sum columns in R? >> >> ______________________________________________ >> R-help at 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. > > ______________________________________________ > R-help at 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.
Hello, http://lmgtfy.com/?q=sum+columns+in+R The first hit looks promising. Hope this helps, Rui Barradas Em 21-02-2013 07:33, nandita srivastava escreveu:> how to sum columns in R? > > ______________________________________________ > R-help at 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. >
Huh? This answer seems to have absolutely no bearing on the question. cheers, Rolf Turner On 02/21/2013 11:26 PM, PIKAL Petr wrote:> Hi > > ?ncol > > Regards > Petr > > >> -----Original Message----- >> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- >> project.org] On Behalf Of nandita srivastava >> Sent: Thursday, February 21, 2013 8:34 AM >> To: r-help at r-project.org >> Subject: [R] (no subject) >> >> how to sum columns in R? >>
Hi I understood that OP wanted to know how many columns s/he has. Anyway, s/he got plenty of answers which can inspect and choose one which corresponds to the problem. Regards Petr> -----Original Message----- > From: Rolf Turner [mailto:rolf.turner at xtra.co.nz] > Sent: Friday, February 22, 2013 6:36 AM > To: PIKAL Petr > Cc: nandita srivastava; r-help at r-project.org > Subject: Re: [R] (no subject) > > > Huh? This answer seems to have absolutely no bearing on the question. > > cheers, > > Rolf Turner > > On 02/21/2013 11:26 PM, PIKAL Petr wrote: > > Hi > > > > ?ncol > > > > Regards > > Petr > > > > > >> -----Original Message----- > >> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > >> project.org] On Behalf Of nandita srivastava > >> Sent: Thursday, February 21, 2013 8:34 AM > >> To: r-help at r-project.org > >> Subject: [R] (no subject) > >> > >> how to sum columns in R? > >>
Is there a R package that use sampling weights in multilevel modeling? The survey package does not handle multilevel modeling and the weight option in lmer and nlmer functions from lme4 (used for multilevel modeling) is for weighted least squares estimation. Suggestion from one with experience in this subjet (including creating weights from strata and sampling unit variables) will be helpful. For example if analyzing data clustered in schools, how to use student's sampling weight or school sampling weight or both? Peter Maclean Department of Economics UDSM [[alternative HTML version deleted]]