Displaying 2 results from an estimated 2 matches for "sline".
Did you mean:
line
2003 Aug 27
2
Using files as connections
...ion is open, but presented with
a closed connection it will open it, start from the beginning, and close
it when finished.
In the code that follows I tried to open the file before reading but
apparently without success, because the result was repeated copies of the
first line:
flines <- 107165
slines <- 100
selected <- sort(sample(flines,slines))
strvec <- rep(??,slines)
file(?c:/data/perry/data.csv?,open="r")
isel <- 0
for (iline in 1:slines) {
isel <- isel + 1
cline <- readLines(?c:/data/perry/data.csv?,n=1)
if (iline == selected[isel]) strvec[isel] <- cl...
2005 Aug 03
7
call fortran in R
Hello,
I used a mac G5, R.2.1.1, and G77 3.4.4 and I would like to use and
call a fortran subroutine.
The trouble is that it seems I am not able to correctly load the
compiled code.
Here is what I have done:
In the terminal this how I compiled my fortran code:
R CMD SHLIB ~/Desktop/Fortan_kmeans/kmeans3.f
There is the wrapper I have paste inside de kmeans3.f file:
c