search for: myfile

Displaying 20 results from an estimated 720 matches for "myfile".

2003 Apr 25
2
Open an r+b file connection on Windows
...write to the file. And looking at the function definition for writeBin, it seems that writeBin automatically creates a connection of type "wb" not what is specified by the R file object. I am working on Windows Nt 4.0 with R 1.7. Any ideas? Thanks in advance. #Create file x<-1:50 myfile <- file("test","wb") writeBin(as.real(x),myfile, 4) close(myfile) myfile <- file("test","r+b") myfile description class mode text opened can read can write "test" "file" "r+b"...
2007 Apr 14
3
HiddenStore option may be useful
I'm missing a HiddenStore option in OpenSSH, known from some ftp-server implementations like ProFTPd. Consider the following scenario: - A process PROCA is frequently polling the directory for a file called myfile.txt - Someone transfers this file via sftp or scp to the directory - While transfer is going on and the file is not completely written, PROCA reads in the file and removes is -> Corrupt data is seen by PROCA Knowing this problem you have to solutions: 1. PROCA must check if myfile.txt is chang...
2013 Jan 29
1
points rejected as lying outside the specified window
...;) # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating the 5 boroughs) plot(NYC2) NYBorough<-readShapePoly("NYBoroughsShapeMerge.shp") # this is a map of the NYC boroughs with census tract divisions plot(NYBorough) myfile<-read.csv("myfile.csv") # my csv file contains 4 columns (ID, variable_type, X, Y) # my goal is to determine whether individuals of variable_type=1 are spatially distributed more than what would be expected due to chance, if individuals of variable_type=0 are spatially distributed more...
2011 Feb 16
2
[LLVMdev] verbosity while invoking clang
I am working on implementing a new target for llvm. So far (to make debugging easier), I was compiling a C code into 2 steps: 1) generate the llvm file: clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll 2) generate the assembly file using llc -march=mytarget myfile.ll Sometimes, I add some verbosity for the 2nd command like "-print-after-all". Now, I'd like to compile a C code in 1 step using clang (clang -ccc-host-triple mytarge -S myfile.c -o myfile.s) Is there a wa...
2003 Nov 10
3
Reading an upper triangular matrix
...rt, with diagonal. The matrix is 21x21, and the file have row and col names, and some other information. I am trying to read with the following code (I tried many variations on it, but all give the same error). The items in the data file is delimited by white space. (Part of) script to read: myfile <- file("Paises.dat", open="r") # opens a connection which stays open until closed by close(myfile) name <- readLines(con=myfile, n=1) varnames <- scan( myfile, what=character(0), nlines=1 ) stopifnot( length(varnames) == 21 ) Paises <- matrix(0, 21...
2006 Jan 11
3
Just update 1 field
Hi All, I wonder how I can get rails to update just one field when I do Myfile.save. Right now this happens when I do a Myfile.save: UPDATE myfiles SET `folder_id` = 0, `filesize` = 1, `data` = ''2f7573722f6c6f63616c2f6d ... f7061636b65743d33324d'', `user_id` = 0, `date_modified` = ''2006-01-11T23:33:57+0100'', `filename` = ''mysql...
2008 Jun 25
3
5.2 upgrade mostly good (so far)
...lways has before. Same when shutting down via the GUI shutdown dialog. I can offer up machine details should anyone want them. 2. Trying to recompile the official Cisco VPN client after the reboot and it fails with this info: # make make -C /lib/modules/2.6.18-92.1.1.el5/build SUBDIRS=/home/fredex/myfiles/programs/cisco-vpn-client/vpnclient modules make[1]: Entering directory `/usr/src/kernels/2.6.18-92.1.1.el5-i686' CC [M] /home/fredex/myfiles/programs/cisco-vpn-client/vpnclient/linuxcniapi.o CC [M] /home/fredex/myfiles/programs/cisco-vpn-client/vpnclient/frag.o CC [M] /home/fredex/my...
2011 Feb 16
0
[LLVMdev] verbosity while invoking clang
On Feb 16, 2011, at 11:08 AM, Damien Vincent wrote: > I am working on implementing a new target for llvm. > So far (to make debugging easier), I was compiling a C code into 2 steps: > 1) generate the llvm file: > clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll > 2) generate the assembly file using > llc -march=mytarget myfile.ll > > Sometimes, I add some verbosity for the 2nd command like "-print-after-all". > Now, I'd like to compile a C code in 1 step using clang (clang -ccc-host-triple mytarge -S myfile.c -...
2012 Dec 05
4
Import multiple data frames and combine them using "cbind"
Hi group, I imported 16 data frames using the function "list.files" temp <- list.files(path="...........") myfiles = lapply(temp, read.table,sep = "") Now I have 16 data set imported in R window. I want to combine them by row and tried some thing like (Here I am considering only 20 columns) for(i in 1:16){ data<- cbind(myfiles[[i]][,1:20]) } but it returns only first data set. I can comb...
2009 Jun 18
1
Problem reading from a file
Hi all, I have written a function cluster_compare(myfile, mclfile) I called it giving names of files in the working directory (I see them with dir()). I get Error in file("myfile", "r") : cannot open the connection In addition: Warning message: In file("myfile", "r") : cannot open file 'myfile': No suc...
2008 Oct 03
1
Problems with Share Modes "fill_share_mode_lock failed"
...ead) ...:49, 3] smbd/process.c:switch_message(1361) switch message SMBtrans2 (pid 22032) conn 0xb846b478 ...:49, 3] smbd/trans2.c:call_trans2qfilepathinfo(3932) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 ...:49, 3] smbd/vfs.c:check_reduced_name(854) reduce_name [web/xml/myfile.xml] [/web_virtual/domain] ...:49, 3] smbd/vfs.c:check_reduced_name(963) reduce_name: web/xml/myfile.xml reduced to /web_virtual/domain/web/xml/myfile.xml ...:49, 3] locking/locking.c:fetch_share_mode_unlocked(857) fill_share_mode_lock failed ...:49, 3] smbd/trans2.c:call_trans2qfilepathin...
2008 Nov 13
4
Moving a file with Puppet
...didn''t like where it was being put by puppet. I went into puppet and changed the name parameter of the the file directive. I then created a new file directive to delete the old file, but I was wondering if there was a better way to do this. So, just to clarify, I went from: file {"myfile": name => "/root/myfile", ... } to: file {"myfile": name => "/newdirectory/myfile", ... } file {"deleteoldlocationofmyfile": name => "/root/myfile", ensure => absent, } I just feel like moving the location of a file...
2012 Mar 06
2
closing file with close(file) *silently*
Hi All, I am writing a function that reads a file in myfile = file('myfile.raw', 'rb') . . . . . close(myfile) No matter what, I get the warning Warning message: closing unused connection 3 (myfile.raw) Since the whole thing is in a function, I'd like to avoid unecessary noise for the user, and I'd like to kill the warning -- with...
2012 Jul 23
3
How to do the same thing for all levels of a column?
...id residues at each position of the proteins. Here is an example table: Proteins Time_zero 1 2 3 4 5 6 7 8 p1 0.0050723 L E Y I I P D A p2 0.0002731 T E N L V P G A p3 9.757E-05 L M Y Q I P E C p4 0.0002077 R E Y L I S E A If I name this table as myfile.txt, I have the following scripts to calculate the ratio of each amino acid residue at position 1: # showing levels of the 3rd column, which means the types of residues >myfile[,3] # calculating the ratio of L >list=c(which(myfile[,3]=="L")) >time0total=sum(myfile[,2]) &g...
2003 May 20
1
R in BATCH mode
Dear all, In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in batch mode C:\documents> Rcmd BATCH myfile.R and I could see the results (including warning messages) in the file myfile.Rout In R.1.7.0 I'm experiencing the followings: (1) even if I type "Rcmd BATCH myfile.R myfile.Rout", no file myfile.Rout is created, but just a "&1" file (2)After typing "Rcmd BATCH...
2007 Nov 10
7
How to more efficently read in a big matrix
Dear list, I need to read in a big table with 487 columns and 238,305 rows (row names and column names are supplied). Is there a code to read in the table in a fast way? I tried the read.table() but it seems that it takes forever :( Thanks a lot! Best, Allen
2012 Jan 25
4
help to slip a file name using "strsplit" function
Dear Researchers, I have several files as this example: Myfile_MyArea1_sample1.txt i wish to split in "Myfile", "MyArea1", "sample1", and "txt", becasue i need to use "sample1" label. I try to use "strsplit" but I am able just to split as "Myfile_MyArea1_sample1" and "txt" OR &quo...
2012 Oct 24
4
Z score
Hi, I need to find the z-score of the data present in a speardsheet. The values needs to be calculated for each gene across the samples (refer the example). And, it should be a simple thing, but I am unable to do it right now ! The example re the structure of the spreadsheet is - # Example: MyFile <- read.csv( text= "Names,'Sample_1','Sample_2','Sample_3' Gene_1,87,77,88 Gene_2,98,22,34 Gene_3,33,43,33 Gene_4,78,,81 ", header=TRUE, row.names=1, as.is=TRUE, quote="'", na.strings="" ) And, I think this formula that can be used for z...
2005 May 19
1
Loading a dynamic library
Hi, I'm trying to load a .dll library into R 2.1.0 on Windows using the "dyn.load" function. The library is compiled with gcc 3.3.3 on cygwin 1.5.16. I compile and link: $ gcc -c myfile.cpp -o myfile.o [HRT] $ gcc -shared myfile.o -o myfile.dll [HRT] I then type, in the R console, > dynload("myfile.dll")[HRT] And R hangs. Any help appreciated. Thanks. Will _____________________________________________________________ William Astle. PhD Student, Department of...
2011 May 04
1
scatterplot3d using colors in groups
...yone, I would like to improve my plot and I was wondering if someone can help me whith it. I'm trying this plot using two groups, but I want to choice the colors (the black and white circles) but I don't know how to change it from here. These are my sentences: myplot3d<- scatterplot3d(myfile$Temperature, acantarcthus$Salinity,myfile$Abundance, type="h",    color = as.integer(factor(myfile$groups))) If someone is willing to help me with it I would be so glad. José [[alternative HTML version deleted]]