Displaying 5 results from an estimated 5 matches for "outlength".
2011 Nov 10
2
Removing numbers from a list
...st <- list("this contains a number 1000","this does not contain")
removeNumbers <- function(X)
{
gsub("\\d","",X)
}
outputList <- lapply(testList,removeNumbers)
However, when I try to find the number of words in outputList as follows
outLength <- lapply(strsplit(outputList," "),length)
it throws out the following error:
Error in strsplit(outputList, " ") : non-character argument
Can someone help me with this?
Thank you.
Ravi
--
View this message in context: http://r.789695.n4.nabble.com/Removing-numbers-f...
2007 Mar 22
1
[SPAM] RE: Encoding audio sampled at 44.1 khz?
...char* argv[]) {
// First of all, declare the resampler state
SpeexResamplerState* State = speex_resampler_init(2, 44100, 22050, 5);
short in[ReadSize];
short out[ReadSize];
FILE* fin = fopen(argv[1], "rb");
FILE* fout = fopen(argv[2], "wb");
unsigned InLength = ReadSize, OutLength = ReadSize;;
speex_resampler_skip_zeros(State);
while (1) {
// Read in the short data
fread(&in, sizeof(short), ReadSize, fin);
if (feof(fin)) break;
speex_resampler_process_interleaved_int(State, in, &InLength, out, &OutLength);
fwrite(&out, sizeof(short), OutLength, fout);...
2007 Mar 21
2
Encoding audio sampled at 44.1 khz?
Hi everyone,
I recently began using libspeex 1.2 Beta 1 on Windows using MS Visual C++. I have gotten a decoder and an encoder to work fine from the excellent sample code posted at the website.
But I face a problem. I am working on using Speex in a program to play and create audio books encoded using Speex (currently testing it only; for these tests, I do not use Ogg to save the encoded
2011 Jan 21
1
glitch in building R package
...tPack.dll tmp.def XDemo.o XDemo_main.o -Lc:
/R/R-2.12.0/bin/i386 -lR
installing to c:/R/R-2.12.0/library/FirstPack/libs/i386
** R
** data
Warning: empty 'data' directory
** preparing package for lazy loading
Error in .C("DemoAutoCor", OutVec = as.double(vector("numeric", OutLength)), :
C symbol name "DemoAutoCor" not in load table
ERROR: lazy loading failed for package 'FirstPack'
* removing 'c:/R/R-2.12.0/library/FirstPack'
Here is how i built the package. I have the directory structure as described in "Writing R Extensions" and I iss...
2011 Jan 22
0
how to call BayesX in R to see the graph
...tPack.dll tmp.def XDemo.o XDemo_main.o
-Lc:
/R/R-2.12.0/bin/i386 -lR
installing to c:/R/R-2.12.0/library/FirstPack/libs/i386
** R
** data
Warning: empty 'data' directory
** preparing package for lazy loading
Error in .C("DemoAutoCor", OutVec = as.double(vector("numeric", OutLength)),
:
C symbol name "DemoAutoCor" not in load table
ERROR: lazy loading failed for package 'FirstPack'
* removing 'c:/R/R-2.12.0/library/FirstPack'
Here is how i built the package. I have the directory structure as described
in "Writing R Extensions" and I issu...