Learn R Programming

UsingR (version 2.0-7)

u2: Song and lengths for U2 albums

Description

Song titles and lengths of U2 albums from 1980 to 1997.

Usage

data(u2)

Arguments

Format

The data is stored as a list with names. Each list entry correspond to an album stored as a vector. The values of the vector are the song lengths in seconds and the names are the track titles.

Examples

Run this code
# NOT RUN {
data(u2)
sapply(u2,mean)			# average track length
max(sapply(u2,max))		# longest track length
sort(unlist(u2))		# lengths in sorted order
# }

Run the code above in your browser using DataLab