Learn R Programming

reshape2 (version 1.4.4)

melt: Convert an object into a molten data frame.

Description

This the generic melt function. See the following functions for the details about different data structures:

Usage

melt(data, ..., na.rm = FALSE, value.name = "value")

Arguments

data

Data set to melt

...

further arguments passed to or from other methods.

na.rm

Should NA values be removed from the data set? This will convert explicit missings to implicit missings.

value.name

name of variable used to store values

Details

See Also

cast

Continue Improving Your R Skills

R Fundamentals

Level-up your R programming skills! Learn how to work with common data structures, optimize code, and write your own functions.

Big Data with R

Work with big data in R via parallel programming, interfacing with Spark, writing scalable & efficient R code, and learn ways to visualize big data.

Machine Learning with R

A machine learning scientist researches new approaches and builds machine learning models.