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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:10:56+00:00 2026-06-01T07:10:56+00:00

I try to load files in different categories according to theis file name. Till

  • 0

I try to load files in different categories according to theis file name. Till now I always used

list<-dir(pattern=".gle$") 

to get all gle-files. Now I want to load the populations bg, campo & pca seperately and I am searching for a wildcard which can be used in the middle of filenames, which are e.g.

0KK_bg_SunAdj.gle
0LC_campo_SunAdj.gle
0KR_pca_SunAdj_corr.gle

I thought of something like

list<-dir(pattern=glob2rx("*something*bg*something*.gle$"))

but I tried all the examples in the ?glob2rx help file and did not succeed.
I’m sure it is possible (I mean; it’s R…) but i cannot figure it out…

Thanks!

  • 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-06-01T07:10:57+00:00Added an answer on June 1, 2026 at 7:10 am

    How about

    list1<-dir(pattern="[[:print:]]*_bg_[[:print:]]*.gle")
    list2<-dir(pattern="[[:print:]]*_campo_[[:print:]]*.gle")
    list3<-dir(pattern="[[:print:]]*_pca_[[:print:]]*.gle")
    

    But these might pick up other files in the directory. If not, then @RomanLuštrik probably hit the nail on the head in the comment above. EDIT: Actually, @RomanLuštrik ‘s comment would pick up non-.gle files. So the above code would be more appropriate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was try to load unlimited categories to dropdownlist but I failed. **Categories** ID,
I would like my store in Sencha touch to load a different PHP file
I'm using UILoaders to load different .swf files into the main .swf and am
I need some help configuring nginx to load files from a different folder. Here
this time I have a page which will load different kinds of file formats,
I try to load the customview class that is inside my mainclass in xml.
I try to load data into a certain column into a table with the
I try to load a node only to face the EInvalidPointer error on Delphi.
When I try to load the following page in IE7 & IE8 I receive
i have the following code to try and load a local html page in

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.