+ Reply to Thread
Results 1 to 2 of 2

Thread: How to take out data set from r-package?

  1. #1
    Points: 5, Level: 1
    Level completed: 9%, Points required for next Level: 45

    Thanked 0 Times in 0 Posts

    How to take out data set from r-package?

    It is known that r-packages can contain data set. How (in the general case) take out this data set (to open in Excel)? If possible, please explain clearly for the beginner . P.S. As an example, one can take data set flchain available in the survival package. Thanks! (Win 7)
    Last edited by Ted Beginner; 07-30-2017 at 05:39 AM.

  2. #2
    Super Moderator
    Points: 32,372, Level: 100
    Level completed: 0%, Points required for next Level: 0
    bugman's Avatar
    Thanked 324 Times in 265 Posts

    Re: How to take out data set from r-package?

    use the "write" function.

    In this case, the dataframe "BOD" is saved as a csv file called "test.csv" and saved to my working directory.

    write.csv(BOD, file="test.csv")
    The earth is round: P<0.05

  3. The Following 2 Users Say Thank You to bugman For This Useful Post:

    GretaGarbo (07-31-2017), trinker (07-30-2017)

+ Reply to Thread


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Advertise on Talk Stats