View source: R/convert.magic.R
convert.magic | R Documentation |
Converts variable types of multiple columns of a dataframe at once.
convert.magic(obj, type)
obj |
name of dataframe (object) |
type |
type to convert variables to one of:
|
Converts variable types of multiple columns of a dataframe at once. Convert variable types to character, numeric, or factor.
Dataframe with columns converted to a particular type.
Other dataManipulation:
columnBindFill()
,
dropColsWithAllNA()
,
dropRowsWithAllNA()
,
varsDifferentTypes()
Other conversion:
convertHoursAMPM()
,
convertToHours()
,
convertToMinutes()
,
convertToSeconds()
,
percentileToTScore()
,
pom()
# Prepare Data
data("USArrests")
# Convert variables to character
convert.magic(USArrests, "character")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.