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 7065705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:59:19+00:00 2026-05-28T04:59:19+00:00

Assume: list of n xts objects in .GlobalEnv with the suffix .raw (e.g: ABC.raw

  • 0

Assume:

  • list of n xts objects in .GlobalEnv with the suffix “.raw” (e.g: ABC.raw)
  • have created a list of .raw names in a list (ie, rawfiles <- ls(pattern="*.raw",envir=.GlobalEnv))

Would like to:

  • loop or lapply through rawfiles and subset a particular timeperiod in each iteration
  • for example, to write this as a single line would be: new <- ABC.raw["T09:00/T10:00"] if I wanted to subset ABC.raw from 9am to 10am each day.

The problem is:

  • Doesn’t seem to be an easy way of passing["Thh:mm/Thh:mm"] to a loop, apply or assign without causing errors.

Any ideas how to pass this?

In pidgeon code, I guess I’m looking for a working equivalent of:

for(i in 1:length(raw)){
    raw[i]["T09:00/T10:00"]
}

Many thanks in advance for any assistance on this.

  • 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-28T04:59:19+00:00Added an answer on May 28, 2026 at 4:59 am

    Try get.

    get(x) retrieves the variable whose name is stored in x, so foo<-1; get('foo') would return 1.

    for ( rawname in rawfiles ) {
        get(rawname)["T09:00/T10:00"]
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume I have a list of variables (class:xts) in .GlobalEnv identified as follows: ABC.xyz
Assume that I have a list of employee names from a database (thousands, potentially
So let's assume I have a class named ABC that will have a list
Let's assume I have a list with objects of type Value . Value has
I have a list of words (assume they are stored in String[] if you
I assumed that this would provide me with the list of follower names instead
Assume you have a list item, <li id=foo> which you want to fade from
Let's assume we have two collections: List<double> values List<SomePoint> points where SomePoint is a
Assume I have a List<SomeObject> a . Now also assume that I have another
Assume I have generic list L of some type in c#. Then, using linq,

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.