I've searched for the problem on error messages on diffPrint()
function in R.
However, I have no idea how to solve this error. When I applied to diffPrint()
, the characters in two data were garbled; thus, I couldn't read them. Moreover, diffPrint(
) and diffObj()
functions didn't work.
Let me show you my codes and error messages.
A <- read.csv("Ex1.csv", header=T, colClasses=rep("character",5)) # In order to load '00012' and something else, I used 'colClasses=rep("character",5))
B <- read.csv("Ex2.csv", header=T, colClasses=rep("character",5))
B <- data.frame(unique(B[,c("Var1", "Var2", "Var3", "Var4")])) # Removing duplicated data
# install.packages("diffobj") # In order to check differences on A and B data
library(diffObj)
diffPrint(A, B)
Press ENTER to continue...
diffObj(A, B)
Error in rstudio_with_ansi_support() : could not find function "rstudio_with_ansi_support"
And this is my Viewer capture, when diffObj()
was used.
In addition, data A has 1978 observations of 5 variables; on the other hand, data B has 2008 observations of 5 variable. The variables' names are totally same.
Anybody who can help me?