[R] How to figure out the number of data values in a list?

Nordlund, Dan (DSHS/RDA) NordlDJ at dshs.wa.gov
Wed Feb 8 00:09:47 CET 2012


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Ajata Paul
> Sent: Tuesday, February 07, 2012 2:49 PM
> To: r-help at r-project.org
> Subject: [R] How to figure out the number of data values in a list?
> 
> Hello,
> 
> I am working with the following data:
> 
> nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10")
> 
> I need to figure out how many data values are in this list.
> 

Maybe, 

nrow(nb10) ?

You might want to read the introductory manual that comes with every R installation.

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204



More information about the R-help mailing list