This may be a bad question because I am not posting any reproducible example. My main goal is to identify columns that are of different types between two dataframe that have the same column names.
For example
df1
 Id      Col1      Col2     Col3
 Numeric Factor    Integer  Date
df2
 Id      Col1      Col2     Col3
 Numeric Numeric    Integer  Date
Here both the dataframes (df1, df2) have same column names but the Col1 type is different and I am interested in identifying such columns. Expected output.
Col1  Factor    Numeric
Any suggestions or tips on achieving this ?. Thanks