search for: filecon

Displaying 5 results from an estimated 5 matches for "filecon".

Did you mean: fileconn
2009 Jul 21
1
Checking on closed file connections
Hi! I'm wondering if there's a smart way around this: fileName= (some valid file on your system) > fileCon=file(fileName, open="rt") > l<-readLines (fileCon, n= 1) > > isOpen(fileCon) [1] TRUE > close(fileCon) > isOpen(fileCon) Error in isOpen(fileCon) : invalid connection How do you test for a file being closed if isOpen gives you an error message? Thanks! -Jim
2012 Feb 12
3
Writing output into a file
Hi everyone, I'm an R newbie working with the poLCA module. I achieved my target without having to bother anyone, but It seems that I've got stuck at the last minute. My problem is simple. I need to write my results into a file. My results are in the shape of a list (unbalanced columns) I've considered several methods (sink(), write.file) etc. etc. Unfortunately, I'm not the best
2001 Oct 02
1
connections: remember to close it!
...an not be closed (or at least I tried closeAllConnections() without success on WinNT4). Not being very smart or clear-headed, I turned a working R script that opens the connection and process the data into an R function, but introduced some bugs in the process. I forgot to add "on.exit(close(filecon))" right after I open the connection in the function. As a result, repeated failed calls to the function generated a bunch of open connections that I can't close. I'm not sure what the consequences of this is. I was able to quit R gracefully, but my NT seemed to have become unstable...
2012 Jan 06
5
add data to a file while doing a loop
Hi, I would like to know how can I keep adding data to a file while doing a loop and without deleting the data of the previous iteration. Thanks.
2005 Oct 04
2
newbie questions - looping through hierarchial datafille
Dear List, Im new to R - making a transition from SAS. I have a space delimited file with the following structure. Each line in the datafile is identified by the first letter. A = Inventory (Inventory) X = Stratum (Stratum_no Total Ye=year established) P = Plot (Plot_no age slope= species) T = Tree (tree_no frequency) L = Leader (leader diameter height) F = Feature (start_height finish_height