search for: fsep

Displaying 13 results from an estimated 13 matches for "fsep".

Did you mean: fep
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how exit of tcl for close an aplication. How to use him. Thank
2004 Jul 12
2
.Platform addition (was Re: where does R search when source()?)
On Sun, 11 Jul 2004, Gabor Grothendieck wrote: > search.path <- > function(fn, > paths = strsplit(Sys.getenv("PATH"), split = ";")[[1]], > fsep = "\\") { > for(d in paths) { > f <- file.path(d, fn, fsep = fsep) > if (file.exists(f)) > return(f) > } > return(NULL) > } > > source(search.path("myscript.R")) I glanced this and thought this might be handy...
2010 Jul 20
2
loop through files and create object
...aive question. Sorry but I was unable to find an answer online. I would like to read 47 data sets (country1.raw, country2.raw, ... country47.raw) and save into a matrix each time (data1, data2, ....data47). for (i in 1:47){ data(?) <- read.csv(file.path("country", i, ".raw", fsep = ""), header = TRUE) } The read.cvs statement seems to be right, but how to include "i" in "data" for it to create 47 matrices and not 1 (the last one). Thank you, Daniel
2009 May 22
2
Returning only a file path on Windows
I am choosing a file like this: #Bring up file selection box fn<-file.choose() fp<-file.path(fn,fsep='\\') Unfortunately, the file path contains the short file name and extension as well. I had hoped to get only the path so I could make my own long filenames (for output graphs) by concatenation with this file path. Of course I can split the string and assemble the components from the ret...
2018 Apr 13
0
Fwd: R Timeseries tsoutliers:tso
...ing in using tsoutlers:tso on the mac vs on an AWS cloud server.. I am running the following code with very small dataset of about 208 records. d.dir <- '/Users/darshanpandya/xxxxxx' FNAME <- 'my_data.csv' d.input <- fread(file.path(paste0(d.dir,"/zzz/"),FNAME,fsep = .Platform$file.sep), header = TRUE, stringsAsFactors = FALSE, showProgress = TRUE) %>% as.data.frame d.input$dummy_date <- as.Date(d.input$dummy_date, "%Y-%m-%d") selectedCols <- c("observation","dummy_date") inputData <- d.input[,selectedCols] outlier.t...
2010 Aug 15
1
Trouble loading "saved" Rdata
In the particular application I have I save "test.Rdata" to a sub directory dir<-"Example" dir.create(dir) test<-data.frame(a=c(1,2,3),b=c(3,4,5) full<-file.path(dir,"test.Rdata,fsep=.Platform$file.sep) save(test,file=full) load(full) returns NULL it works fine when the object is saved to the working directory, but fails when saved to a sub directory. The Rdata is there. Bytes are in it. but loading it doesnt work. [[alternative HTML version deleted]]
2018 Apr 12
2
R Timeseries tsoutliers:tso
...ing in using tsoutlers:tso on the mac vs on an AWS cloud server.. I am running the following code with very small dataset of about 208 records. d.dir <- '/Users/darshanpandya/xxxxxx' FNAME <- 'my_data.csv' d.input <- fread(file.path(paste0(d.dir,"/zzz/"),FNAME,fsep = .Platform$file.sep), header = TRUE, stringsAsFactors = FALSE, showProgress = TRUE) %>% as.data.frame d.input$dummy_date <- as.Date(d.input$dummy_date, "%Y-%m-%d") selectedCols <- c("observation","dummy_date") inputData <- d.input[,selectedCols] outlier.t...
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")? Only from current working directory (same as getwd()), from all directories specified by e.g. $PATH? Thanks. Daehyok Shin
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")? Only from current working directory (same as getwd()), from all directories specified by e.g. $PATH? Thanks. Daehyok Shin
2005 Aug 20
2
Questions on "\" vs "/" on Windows
A recent thread on R-help reminded me of some questions I have regarding the path separator on Windows. The thread: [R] using paste and "\" to create a valid filename The question: What are the use-cases where "\" is required for paths passed as character vectors from within R? My experience has been that "/" always works and "\" often fails due to
2008 Jun 08
1
Installation of R bindings on Windows
Dear all, I am trying to install a package of R bindings for the Ruby language on Windows Vista ... this involves some compilation work with Mingw. (The analogous process on Linux Ubuntu went fine, but for the Windows installation, I need to provide the location of the file analogous to the /usr/lib/R/lib/libR.so library. I've been searching for libR.dll, Rlib.dll, everywhere, but can't
1999 Feb 22
1
Size of objects in the workspace
Is there an easy way (or any way) to determine the size of all the objects in an R workspace. I know that "dim" will work on matrices, "length" will work on lists, but what gives the size of a function? After I have worked for a few days I often get confused about what is what in the workspace, so I'm looking for something like "ls -l", to point me toward
2010 Sep 15
2
Get File Names in Folder, Read Files, Update, and Write
Dear All, Could you please recommend how I can do this? I have several text files in one folder. Let's name them A0801.RSK, A0802.RSK, .... I would like R to 1) Know all file names in this folder 2) Update value in one column of these files 3) Write results in another text file with _xval in the file names Below is R code for read, update, and write one file