Displaying 20 results from an estimated 41 matches for "filen".
Did you mean:
file
2011 Dec 06
1
Writing out in loops
I would like to write some data to different files. I can create the
filename Day1.txt like this:
filen <- paste("Day", l, ".txt", sep="")
and then I'm using a For loop to write out one row of a matrix,
something like this:
For (j in 1:10)
{
cat(mat[1,j], ",", file=filen, append=TRUE)
}
cat("\n", file=filen, ap...
2010 Jul 23
1
sink function
I have the following code to write the output from auto.arima function. The
issue is not in finding the model but to divert its out put
fit to a file order_fit.txt. code runs but nothing is written to
order_fit.txt
where am I going wrong
library(forecast)
for (i in 1:2) {
filen = paste("file",i,".txt",sep="")
data <- read.table(filen)
dat1 <- data[,1]
xt <- ts(dat1,start=c(1978,11),end=c(2006,12),frequency=12)
#dat1[dat1 == -99.989998] <- NA
if (min(dat1) != max(dat1)){
fit <- auto.arima(xt,D=1)
*sink(file="order_fit.txt&...
2010 Jul 27
2
[LLVMdev] inline callsites whose function definitions are in different file?
...bute.
They are both subclasses of Inline.cpp that assumes the function's
definition (body) is in the same Module (file) as its callsites (that
will be inlined).
I am now having a situation that the functions are defined in file1.c
(Module1) but all callsites are spread in file2, file3, ...fileN. Would
LLVM be able to inline such callsites at compile time?
I think the right approach is to conduct inlining at link time (via the
LTO), but still wonder if it is possible to do it at compile time
without heavy hacking.
Thank you
Chuck
2006 Nov 01
4
splitting very long character string
Hello,
I've a very long character array (>500k characters) that need to split by '\n' resulting in an array of about 60k numbers. The help on strsplit says to use perl=TRUE to get better formance, but still it takes several minutes to split this string.
The massive string is the return value of a call to xmlElementsByTagName from the XML library and looks like this:
...
12345
2008 Mar 11
2
Error opening SHP file (maptools)
...ifficulty loading a points shapefile (1600 records) I generated from ArcGIS as a PointsSpatialDataFrame using the maptools readShapePoints function.
library(maptools)
surveypts <- readShapePoints(system.file("C:/temp/survey.shp", package="maptools")[1]
Error in getinfo.shape(filen) : Error opening SHP file
I've tried numerous re-exports and renames of the dataset, to no avail. I've also tried placing the shapefile in the library's shapefile folder, with the example dataset (see example below).
x <- readShapePoints(system.file("shapes/survey.shp",...
2004 Feb 06
2
Samba limitation/configuration questions
...ares from a Windows 2003 server. Generally
it's OK, but we're having a issues and would like to know if they are known
problems, limitations, or errors on our part with the configuration.
1. Files that end in "." (a dot) are producing short-name displays on
Windows such as "filen~12" instead of "filename.". When we remove the dot
as the last character of the file name, the Windows display works properly
and shows the long name. Why would an ending dot produce this behavior?
2. Possibly related to the dot name, in the same folder I have dozens of
empty fold...
2002 Dec 09
0
Re: R-help digest, Vol 1 #10 - 6 msgs
...subscript out of bounds
>
> Other calls to simplex seem to work properly
>
> What am I doing wrong?
>
> --------------060007010402070602040701
> Content-Type: text/plain;
> name="test6.R"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
> filename="test6.R"
>
> library(boot)
> filen<-"short2A.txt"
> print(filen)
> read.table(filen,header = TRUE,row.names=1,sep=",")->tab
> print("tab")
> print(tab)
> v<-scan(file=filen,what=list(v="V"),flush=TRUE,sep=",...
2000 Oct 16
2
renaming an object
Say I have a file called exp.batch which contains 2 cols
The first col contains names of R objects the user would like to use.
The second col contains the file names which will be read in using
read.table
i.e. exp.batch may look like this.....
name1 complex/filename/path1.txt
name2 complex/filename/path2.txt
name3 complex/filename/path3.txt
name4 complex/filename/path4.txt
I want to have a function which will read in the files and make them into
the objects named in the 1st column - automatically (by just providing
exp.batch)
for(i in 1:nrow(exp.batch...
2006 Apr 11
1
problems with assign
Hello.
I have n files in a directory: file1, ..., filen.
I read them with the following commands:
list=scan(file="list",what=list(nom=""))
# in the file list, I have all the filenames.
n=length(list[[1]])
for (i in 1:n){
aux <- paste("p",i,sep="")
assign(aux, as.matrix(read.table(list[[1]][i])))
}
R...
2006 Sep 08
1
JGR on SUSE 10.1 AMD 64
...oad library("JGR") or just library("rJava") I get the
following error message:
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library '/usr/lib64/R/library/rJava/libs/rJava.so':
> libjvm.so: kan inte ?ppna delad objektfil: Filen eller katalogen finns inte
> Error in library("rJava") : .First.lib failed for 'rJava'
I desperately tried to symlink libjvm.so from
> /usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64/server
to
> /usr/lib64/R/library/rJava/libs
but without success.
Any suggestions...
2008 Jan 27
2
maptools no such file
..."cities.shp")
Error in read.table("cities.shp") : empty beginning of file
In addition: Warning message:
In read.table("cities.shp") :
incomplete final line found by readTableHeader on 'cities.shp'
> read.shape("cities.shp")
Error in getinfo.shape(filen) : No such file
Any thoughts?
Thanks
Pieter
--
This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com
http://www.opensubscriber.com/messages/r-help at r-project.org/topic.html
2003 Feb 05
2
prog to join ogg vorbis files
could someone recommend me an application that is able to join ogg
vorbis files into one? i searched the net in vain so far.
thanks indeed,
figyu
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request@xiph.org'
containing only the word 'unsubscribe' in the body.
2012 Nov 28
2
data frame: adding columns from data and file title
Data processing?
I have a large number of csv files from animal tracks that look like this:
Date_ Time_ Speed
Course Type_ Distance
30/03/2012 11:15:05 108
121 -2
2010 Jul 27
0
[LLVMdev] inline callsites whose function definitions are in different file?
...lasses of Inline.cpp that assumes the function's
> definition (body) is in the same Module (file) as its callsites (that
> will be inlined).
>
>
> I am now having a situation that the functions are defined in file1.c
> (Module1) but all callsites are spread in file2, file3, ...fileN. Would
> LLVM be able to inline such callsites at compile time?
>
> I think the right approach is to conduct inlining at link time (via the
> LTO), but still wonder if it is possible to do it at compile time
> without heavy hacking.
At compiler time while compiling file2.c, how woul...
2009 May 15
2
transposing/rotating XY in a 3D array
Dear list,
We have a number of files containing similarly structured data:
file1:
A B C
1 2 3
4 5 6
file2:
A B C
7 8 9
10 11 12
... etc
My part of R receives all these data as an array: 1,2,3... 12 together
with info about dimensions (row,col,fileN) . (
Converting the data into 3D cannot simply done by:
array(x, c(2,3,2))
because breaks the structure (e.g. 1,3,5 is type mismatch)
array(1:12,c(2,3,2))
, , 1
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
...
Of course following R's indexing order (rowIndex is the fastes...
2005 Feb 17
2
[LLVMdev] LLVM CFE bootstrap problem at FreeBSD after last $(Install) changes in Makefile.rules
...wanderer/pkg/build/llvm/night/cfe/bin/../lib/libcrtend.a
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
gmake[2]: ***
[/usr/home/wanderer/pkg/build/llvm/night/cfe/bin/../lib/libcrtend.a] Error
64
gmake[2]: Leaving directory
`/usr/home/wanderer/pkg/build/llvm/obj/runtime/GCCLibraries/crtend'
gmake[1]: *** [crtend/.ma...
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2011 Jun 25
1
Regression: sockets for 3.0.9pre1 ?
Hi.
rsync 3.0.8
FreeBSD RELENG_4 i386.
rsync -Haxi --delete /.../ /.../
The first pathspec above (residing on zz, a full filesystem) is:
/vvvv/wwww/xxxx/zz/
The second pathspec above (residing on yyy, an empty filesystem) is:
/vvvv/wwww/xxxx/yyy/zz/
It's obviously a 'copy everything over' operation.
I've had to obfuscate the pathnames, however the exact pathlength
throughout
2007 Sep 17
1
map issues
Hi !
I have a shapefile that I can easily read into R using library(maptools). My problem stems from some warning messages that come even though everything seems to work fine.
library(maptools)
districts <- read.shape(filen = "a_ds", dbf.data = TRUE)
length(districts$Shapes)
so far so good. when I try and plot this I get a nice plot and a warning message:
> plot(districts)
Warning message:
'plot.Map' is deprecated.
Use 'plot.Spatial' instead.
See help("Deprecated") and help(&qu...