[R] Need to read an Excel File
I am trying to read an Excel file using the following: a-read.xls(mydata.xls, sheet=1) The file mydata.xls is stored in the working directory. However I am getting the following error. Can anyone help. Error in findPerl(verbose = verbose) : perl executable not found. Use perl= argument to specify the correct path. Error in file.exists(tfn) : invalid 'file' argument -- View this message in context: http://r.789695.n4.nabble.com/Need-to-read-an-Excel-File-tp2307915p2307915.html Sent from the R help mailing list archive at Nabble.com. __ 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.
[R] Ouput several lines of cat
Hello, I am brand new to R. I need to know how to output the contents of cat function into a text file. The cat is used to output several lines of string in the following format: X XXX X XX.XX - ( XX.XX XXX ) I need to get the output of all these lines into a text file. I tried to put a file name in the cat function. However the output file only displays single line output. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Ouput-several-lines-of-cat-tp2307900p2307900.html Sent from the R help mailing list archive at Nabble.com. __ 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.