powered by
Converts variable types of multiple columns of a dataframe at once.
convert.magic(obj, type)
Dataframe with columns converted to a particular type.
name of dataframe (object)
type to convert variables to one of:
"character"
"numeric"
"factor"
Converts variable types of multiple columns of a dataframe at once. Convert variable types to character, numeric, or factor.
https://stackoverflow.com/questions/11261399/function-for-converting-dataframe-column-type/11263399#11263399
Other dataManipulation: columnBindFill(), dropColsWithAllNA(), dropRowsWithAllNA(), varsDifferentTypes()
columnBindFill()
dropColsWithAllNA()
dropRowsWithAllNA()
varsDifferentTypes()
Other conversion: convertHoursAMPM(), convertToHours(), convertToMinutes(), convertToSeconds(), percentileToTScore(), pom()
convertHoursAMPM()
convertToHours()
convertToMinutes()
convertToSeconds()
percentileToTScore()
pom()
# Prepare Data data("USArrests") # Convert variables to character convert.magic(USArrests, "character")
Run the code above in your browser using DataLab