Hey All I am trying to read in a small text file using read.table.
dput(sim) structure(list(ï...X. = 1:7, Y1 = c(2.5501, 4.105, 5.4687, 7.0009, 8.5066, 9.785, 11.5167), Y2 = c(2.5501, 4.105, 5.4687, 11.0009, 8.5066, 9.785, 11.5167), Y3 = c(2.5501, 4.105, 5.4687, 7.0009, 8.5066, 9.785, 15.5167)), .Names = c("ï...X.", "Y1", "Y2", "Y3" ), class = "data.frame", row.names = c(NA, -7L)) But for some reason my first header comes as "?...X. ", instead of just "X". Can some one please tell me why? And how to fix it? This is what I did in my code, using R-studio > sim<-read.table("C:/00Pavneet/# MSc/# temp/sim data 1.txt",header=T) > View(sim) *********************************************************************************************************************************************************************************************************************** MORE TH>N is a trading style of Royal & Sun Alliance Insurance plc (No. 93792). Registered in England and Wales at St. Markâs Court, Chart Way, Horsham, West Sussex, RH12 1XL. Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. ************************************************************************************************************************************************************************************************************************ [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.