May 23, 2017 at 11:12 pm
Comments posted to this topic are about the item Listing files in R
May 23, 2017 at 11:12 pm
Nice to be learning R, thanks Steve
...
May 24, 2017 at 5:39 am
I've never used it, so I had to look it up. Always good to learn something new. Thanks, Steve.
May 24, 2017 at 7:34 am
The reference cited and others I found such as https://cran.r-project.org/doc/contrib/Short-refcard.pdf show that dir will return the list of files in the current directory.
May 24, 2017 at 7:38 am
Just to be clear, dir and list.files both do this, and are actually identical.
See, for example, https://stackoverflow.com/questions/42959759/what-is-the-difference-between-list-files-and-dir.
This is also shown in the documentation linked in the answer.
The trick here is that "dir" is syntactically incorrect; "dir()" would work.
Cheers!
May 24, 2017 at 10:07 am
Thanks, Steve! Are we going to see Python questions, too?
May 24, 2017 at 11:59 am
Revenant - Wednesday, May 24, 2017 10:07 AMThanks, Steve! Are we going to see Python questions, too?
I'd like to do some. Mostly a matter of time and resources to come up with some. I've been thinking to get some ready when SQL 2017 launches, maybe alternate R and Python once a week.
May 24, 2017 at 12:20 pm
Steve Jones - SSC Editor - Wednesday, May 24, 2017 11:59 AMRevenant - Wednesday, May 24, 2017 10:07 AMThanks, Steve! Are we going to see Python questions, too?I'd like to do some. Mostly a matter of time and resources to come up with some. I've been thinking to get some ready when SQL 2017 launches, maybe alternate R and Python once a week.
I hope I will be able to contribute. I will start playing with 2017 as soon as it is RC.
May 24, 2017 at 4:24 pm
Revenant - Wednesday, May 24, 2017 12:20 PMSteve Jones - SSC Editor - Wednesday, May 24, 2017 11:59 AMRevenant - Wednesday, May 24, 2017 10:07 AMThanks, Steve! Are we going to see Python questions, too?I'd like to do some. Mostly a matter of time and resources to come up with some. I've been thinking to get some ready when SQL 2017 launches, maybe alternate R and Python once a week.
I hope I will be able to contribute. I will start playing with 2017 as soon as it is RC.
Please do. Use the "Write for Us" link to the left to submit questions. Need an explanation and a URL for reference.
May 30, 2017 at 6:51 pm
Jacob Wilkins - Wednesday, May 24, 2017 7:38 AMJust to be clear, dir and list.files both do this, and are actually identical.See, for example, https://stackoverflow.com/questions/42959759/what-is-the-difference-between-list-files-and-dir.
This is also shown in the documentation linked in the answer.
The trick here is that "dir" is syntactically incorrect; "dir()" would work.
Cheers!
Yes - I think "trick" is a good description.
Tom
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply