Apart from the link that rensa posted, this is also extremely helpful to understand what a reprex is:
Now, I'm not sure, but are you looking for something like this?
dataset <- data.frame(Student.ID = c("@11111111", "@11111111", "@11111111", "@2222222", "@3333333"),
Course = c("MAT137", "MAT167", "MAT186", "MAT137", "MAT137"),
Grade = c("A", "C+", "B", "C", "A-"))
dataset <- within(data = dataset,
expr = {
Student.ID <- as.integer(x = Student.ID)
})
dataset
#> Student.ID Course Grade
#> 1 1 MAT137 A
#> 2 1 MAT167 C+
#> 3 1 MAT186 B
#> 4 2 MAT137 C
#> 5 3 MAT137 A-
Created on 2019-03-02 by the reprex package (v0.2.1)
PS: I found the deidentifyr , but not the
deindentify
function. Perhaps, you typed the n
by mistake?