Learn R Programming

LFM (version 0.3.1)

Sonar: Sonar

Description

This dataset contains sonar signals bounced off a metal cylinder (mines) and a roughly cylindrical rock. The task is to classify whether the signal is from a mine or a rock based on the sonar signal patterns.

Usage

data(Sonar)

Arguments

Format

A data frame with 208 rows and 61 columns representing different features of sonar signals.

  • Attribute1: Continuous feature representing energy within a frequency band.

  • Attribute2: Continuous feature representing energy within a frequency band.

  • Attribute3: Continuous feature representing energy within a frequency band.

  • ...: Additional continuous features (up to Attribute60).

  • Class: Categorical target variable ('M' for mine, 'R' for rock).

Examples

Run this code
# Load the dataset
data(Sonar)

# Print the first few rows of the dataset
print(head(Sonar))

Run the code above in your browser using DataLab