Displaying 3 results from an estimated 3 matches for "rline".
Did you mean:
line
2000 Sep 13
0
vq: postbeta2 patch
...err,"5: syntax in %s in line:\t %s",filename,line);
diff -bBu2 branch_postbeta2/vq/build.c vorbis-postb2/vq/build.c
--- branch_postbeta2/vq/build.c Thu Aug 31 05:00:02 2000
+++ vorbis-postb2/vq/build.c Wed Sep 13 18:08:55 2000
@@ -153,5 +153,5 @@
for(k=0;k<dim;k++){
line=rline(in,out);
- sscanf(line,"%lf",&a);
+ sscanf(line,"%f",&a);
v.entrylist[i]=a;
quantlist[i++]=rint(a);
@@ -173,5 +173,5 @@
line=rline(in,out);
if(!line)break;
- sscanf(line,"%lf",b+k);
+ sscanf(line,"%f"...
2017 Aug 29
0
help with read.csv() for files with different number of columns
Hi Ace,
You can just read the file first to find out:
max_fields<-function(file,sep=" ") {
rlines<-readLines(file)
return(max(unlist(lapply(sapply(rlines,strsplit,sep),length))))
}
nmax<-max_fields(test.txt,"\t")
Jim
On Wed, Aug 30, 2017 at 2:22 AM, Fix Ace <acefix at rocketmail.com> wrote:
> Thank you very much! Looks like I have to know the length of each recor...
2017 Aug 29
2
help with read.csv() for files with different number of columns
Thank you very much! Looks like I have to know the length of each record ahead of time.
Ace
On Monday, August 28, 2017 12:56 AM, Jim Lemon <drjimlemon at gmail.com> wrote:
Hi Ace,
With tabs as separators:
testdf<-read.table("test.txt",header=FALSE,fill=TRUE,sep="\t",
col.names=paste("V",1:19,sep=""),stringsAsFactors=FALSE)
Also note