Skip to content

Instantly share code, notes, and snippets.

@juanitobanca
Created March 3, 2017 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanitobanca/94258a185c8f5c3ab67fbc80cd9aafbb to your computer and use it in GitHub Desktop.
Save juanitobanca/94258a185c8f5c3ab67fbc80cd9aafbb to your computer and use it in GitHub Desktop.
f_transformar <- function( p_data, p_summ )
{
# Melt Data
mltd_data <- melt( data = p_data
, variable.name = "Atributo"
, value.name = "Value"
)
# Melt Summary
mltd_summ <- melt( data = p_summ
, id.vars = "Atributo"
, variable.name = "Metrica"
, value.name = "Value"
)
list( mltd_data = mltd_data
, mltd_summ = mltd_summ
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment