Originally posted by Marc Thevenin
View Post
Example of Rcall in interactive mode using \$. There is no problem:
Stata code:
Code:
R: library(RecordLinkage) R: data(RLdata500) R: rpairs <- compare.dedup(RLdata500) R: rpairs\$pairs[1:5, ]
Code:
id1 id2 fname_c1 fname_c2 lname_c1 lname_c2 by bm bd is_match 1 1 2 0 NA 0 NA 0 1 0 NA 2 1 3 0 NA 0 NA 0 0 0 NA 3 1 4 0 NA 0 NA 0 0 0 NA 4 1 5 0 NA 0 NA 0 0 0 NA 5 1 6 0 NA 0 NA 0 1 0 NA
Stata code:
Code:
R vanilla: source("test2_error.r")
Code:
library(RecordLinkage) data(RLdata500) rpairs <- compare.dedup(RLdata500) rpairs\$pairs[1:5, ]
Code:
Error in source("test2_error.r") : test2_error.r : 5:7 unexpected input 4: rpairs <- compare.dedup(RLdata500) 5: rpairs\ ^ Execution halted
Comment