[R] read

Val v@|kremk @end|ng |rom gm@||@com
Fri Aug 9 02:11:05 CEST 2019


Hi all,

I am trying to red data where single and double quotes are embedded
in some of the fields and prevented to read the data.   As an example
please see below.

vld<-read.table(text="name prof
  A      '4.5
  B       "3.2
  C       5.5 ",header=TRUE)

Error in read.table(text = "name prof \n  A      '4.5    \n  B
3.2     \n  C       5.5 ",  :
  incomplete final line found by readTableHeader on 'text'

Is there a way how to  read this data and gt the following output
  name prof
1    A  4.5
2    B  3.2
3    C  5.5

Thank you inadvertence



More information about the R-help mailing list