[R] how to import such data to R?

From: ronggui <042045003_at_fudan.edu.cn>
Date: Sat 15 Oct 2005 - 17:57:42 EST


the data file has such structure:

     1992       6245         49          .          .         20          1
        0          0   8.739536          0          .          .          .

. . . . . "alabama"
. 0 .
1993 7677 58 . . 15 1 0 0 8.945984 1 . 0 .2064476 -5 0 . 0 8.739536 "alabama" 9 0 0 1992 13327 57 36 58 16 0 0 0 9.497547 0 47 . .
. . . 0 . "arizona"
. 0 .
1993 19860 57 36 58 16 1 1 0 9.896463 1 47 0 .3989162 0 1 0 1 9.497547 "arizona" 0 1 1 1992 10422 37 28 58 20 0 0 0 9.251675 0 43 . .
. . . -1 . "arizona state"
. 0 .

------snip-----

the data descriptions is:

variable names:

year      apps      top25     ver500    mth500    stufac    bowl      btitle   
finfour   lapps     d93       avg500    cfinfour  clapps    cstufac   cbowl    
cavg500   cbtitle   lapps_1   school    ctop25    bball     cbball    

  Obs: 118

  1. year 1992 or 1993
  2. apps # applics for admission
  3. top25 perc frosh class in 25th high sch percen
  4. ver500 perc frosh >= 500 on verbal SAT
  5. mth500 perc frosh >= 500 on math SAT
  6. stufac student-faculty ratio
  7. bowl = 1 if bowl game in prev year
  8. btitle = 1 if men's cnf chmps prev year
  9. finfour = 1 if men's final 4 prev year
  10. lapps log(apps)
  11. d93 =1 if year = 1993
  12. avg500 (ver500+mth500)/2
  13. cfinfour change in finfour
  14. clapps change in lapps
  15. cstufac change in stufac
  16. cbowl change in bowl
  17. cavg500 change in avg500
  18. cbtitle change in btitle
  19. lapps_1 lapps lagged
  20. school university name
  21. ctop25 change in top25
  22. bball =1 if btitle or finfour
  23. cbball change in bball

so the each four lines represent one case,can some variables are numeric and some are character. I though the scan can read it in ,but it seems somewhat tricky as the mixed type of variables.any suggestions?

the attachmen is the raw data and the description of the data.

2005-10-15



Deparment of Sociology
Fudan University

My new mail addres is ronggui.huang@gmail.com Blog:http://sociology.yculblog.com



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 17 18:45:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:45 EST