Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7531703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:14:42+00:00 2026-05-30T05:14:42+00:00

Please, go to the bottom to read from bottom up. I created MWE to

  • 0

Please, go to the bottom to read from bottom up. I created MWE to show what I want, hard to explain. This question has probably about 5-20 chars answer.

I want to access df from a file like on console with df$s1 way:

> data.frame(s1=1:10,s2=1:10)->a
> a$s1
 [1]  1  2  3  4  5  6  7  8  9 10

I have forgot the command to do that:

> system('Rscript t.r > tt')
> system('cat tt')
   s1 s2
1   1  1
2   2  2
3   3  3
4   4  4
5   5  5
6   6  6
7   7  7
8   8  8
9   9  9
10 10 10
> system('cat t.r')
print(data.frame(s1=1:10,s2=1:10))

by which command can I read the R df? Look

> read.csv('tt')
      s1.s2
1  1   1  1
2  2   2  2
3  3   3  3
4  4   4  4
5  5   5  5
6  6   6  6
7  7   7  7
8  8   8  8
9  9   9  9
10 10 10 10
> read.csv('tt')->b
> b$s1     # WON't work! By which command it works?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:14:44+00:00Added an answer on May 30, 2026 at 5:14 am

    I think what you are trying to do is this:

    a <- data.frame(s1=1:10, s2=1:10)
    write.table(a, 'tt', col.names = TRUE)
    b <- read.table('tt', header = T)
    b$s2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Partically solved: please read bottom The variadic function in question, stripped down to
Hi all (before closing based on the title, please read the bottom parragraph), I'm
Please take a look at this link , then click on the bottom in
The Background (skip to the bottom if you want the question) Recently I upgraded
EDIT: Please, please , please read the two requirements listed at the bottom of
Please consider this code: template<typename T> char (&f(T[1]))[1]; template<typename T> char (&f(...))[2]; int main()
Please share how you do version control for Lotus Notes/Domino development. I want to
I am new to Python so please don't flame me if the question is
I currently this piece of code for creating a UISearchBar (adapted from a previous
NOTE: This is a long question. I've explained all the 'basics' at the top

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.