#To check the variable data type in R

sapply(dat,mode)

output of sapply(dat,mode)









Dat is your dataset

You probably have factors, than use sapply(species, class), not mode, since mode will still give numeric for factors  



No comments:

Post a Comment

7 Stages of Machine Learning - Framework Introduction

Framework Introduction 7 Stages Introduction Stage 1: Problem Definition Stage 2: Data Collection Stage 3: Data Preparation Stage 4: Data Vi...