Displaying 5 results from an estimated 5 matches for "folder01".
2017 Jun 29
2
about reading files in order
Hi R users,
I have a question about opening the txt files and putting them into a
matrix. The txt files are in the folder01, while they have the name
file.1.txt, file.2.txt, file.3.txt, etc. There are about 200 such text
files. Each txt file contains one value inside. When I tried to use the
code below, I found that the txt files are not in order, from 1, 2, 3, to
200. Rather, they are in the order 1, 10, 100, 101, etc....
2017 Jun 29
0
about reading files in order
You can use:
> files <- list.files(path = "folder01")
> files <- gtools::mixedsort(files)
to order the files in a "human-friendly" order rather than
lexicographic order (which sort() provides).
FYI 1; it's preferred to use file.path("folder01", list[i]) rather
than paste('folder01',lists[i],sep='/'...
2017 Jun 29
1
about reading files in order
...ot aware of gtools::mixedsort
<https://www.rdocumentation.org/packages/gtools/versions/3.5.0/topics/mixedsort>
function.
Jean
On Thu, Jun 29, 2017 at 2:47 PM, Henrik Bengtsson <
henrik.bengtsson at gmail.com> wrote:
> You can use:
>
> > files <- list.files(path = "folder01")
> > files <- gtools::mixedsort(files)
>
> to order the files in a "human-friendly" order rather than
> lexicographic order (which sort() provides).
>
> FYI 1; it's preferred to use file.path("folder01", list[i]) rather
> than paste('fold...
2017 Jun 30
1
about reading files in order
...ts a
> favorite of ]r[ist subscribers )
>
> Show quoted text
>
> 15:04, "lily li" <chocold12 at gmail.com> wrote:
> >
> > Hi R users,
> > I have a question about opening the txt files and putting them into a
> > matrix. The txt files are in the folder01, while they have the name
> > file.1.txt, file.2.txt, file.3.txt, etc. There are about 200 such text
> > files. Each txt file contains one value inside. When I tried to use the
> > code below, I found that the txt files are not in order, from 1, 2, 3, to
> > 200. Rather, the...
2014 Jan 17
0
error while mount/access DFS share
...S: cifs_mount
failed w/return code = -115
The server with the DFS namespace is a Windows 2008 R2 with file cluster
services.
The DFS is:
\\cluster_server\share -> namespace
\\cluster_server\share\folder -> \\nas\folder
\\cluster_server\share\folder01 - \\nas\folder01
The option "noserverino" was tried, but with the same result.
smbclient --version
Version 3.6.18
Any suggestion?
Thanks
Carlos Baptista