Displaying 20 results from an estimated 4000 matches similar to: "Question on sapply"
2011 Mar 17
5
Histograms with strings,
Hello,
Thanks in advance for any help,
I have read a CSV file in which there is a column for an IP addr as in:
tmpInFile$V2
[1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19"
[5] "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19"
[9] "129.46.71.19" "129.46.71.19"
2005 Aug 08
3
Reg. getting codewords from codelengths
Hi,
I am a bit confused on how code-words are derived from the codeword
lengths. I will appreciate if someone can point me in the correct direction.
I will take the example of an actual codebook that i found in a valid
vorbis encoded file as shown below.
[SK] +------Codebook [0] --------
[SK] Codebook Dimensions = 1
[SK] Codebook Entries = 8
[SK] Unordered
[SK] 1, 6, 3, 7, 2, 5, 4, 7,
[SK] NO
2011 Nov 02
1
Help with curr directory in R
Hello All
Thanks for all responses in advance,
I am invoking R from command line from C:\TEMP as
C:\Program Files\R\R-2.9.1\bin\R.exe --vanilla -f C:\temp\test.R
On two different machines
The test.R looks like:
--SNIP-
print(c("CurrDir=", getwd()))
proc.time()
warnings()
--SNIP-
On one machine I get the currDir Correctly printed as C:/TEMP
But on another it gets printed as C:/
2011 Jan 31
1
Question on ploting multiple series on the same plot
Thanks in advance for all help ,
I just started using R and have already done the following.
1. Read through multiple files to get input data
2. plot a vector (X say)
3. end
Now i want to plot the vector X for different files on the same plot, and I
don't know how to do that.
One option I considered was to have a global data frame that holds X for
each file.
and then plot after iterating
2011 Apr 27
3
Kolmogorov-Smirnov test
Hi,
I have a problem with Kolmogorov-Smirnov test fit. I try fit distribution to
my data. Actualy I create two test:
- # First Kolmogorov-Smirnov Tests fit
- # Second Kolmogorov-Smirnov Tests fit
see below. This two test return difrent result and i don't know which is
properly. Which result is properly? The first test return lower D = 0.0234
and lower p-value = 0.00304. The lower 'D'
2005 Aug 09
1
Question on compiling.
Hi,
in libvorbis/lib directory, I see a coupple of programs that do not get
compiled. For example, barmel.c etc.
I can ofcourse compile them through command line, but is there any
easier way of doing this.
I noticed that codebook.c can also be executed independently (it has a
main function) . How can i do this?
Thanks in advance,
Shank
2005 Jul 29
3
Reg. page_sequence_number in the ogg header.
Hi,
I was looking at some of the vorbis-ogg music files using hexedit.
I am a bit confused about this filed "page_sequence_number" that appears
in the header for ogg. From RFC3533 the definition of this field is:
"page_sequence_number: a 4 Byte field containing the sequence
number of the page so the decoder can identify page loss. This
sequence number is increasing
2005 Aug 26
3
Reg. vorbis for real-time audio
Hi,
From the vorbis decoder specification, it is clear that the decoder
needs to have all the codebooks before decoding can actually begin.
I will appreciate if someone can clear the following questions:
1. I guess the codebooks are derived from the actual input data.
Probably the encoder may be making two passes through the input. The
first pass finds out the frequency of different symbols
2005 Aug 18
1
Reg. Enabling Debugging.
Hi,
This is a repeat question.
Earlier I had asked the same question and eventually found the ans.
(http://lists.xiph.org/pipermail/vorbis-dev/2005-August/018179.html)
However now when I try the same thing somehow I am not able to use
debugging.
To use debugging, i compiled the source using the folloing commands,.
>make clean
>./autogen.sh --enable-DEBUG
>make
The configure.in has
2005 Aug 05
1
debugging question.
Hi,
I am using libvorbis-1.0.1 and I am trying to debug the example decoder
(examples/decoder_example.c) using gdb. I have compiled the source tree
for debug and can single step through the program.
However i am facing the following problem (which I think is more of C
than vorbis)
1. after single steppig I finally arrive at the function shown below
(in file lib/info.c)
static int
2003 Jun 02
1
Help with compilation problems
Hi,
I am trying to install tinc-1.0pre8 on my RH 9.0 (kernel 2.4.20-13.9)
system. I have already installed Openssl (v0.9.7a).
When i try to run the ./configure script, it stops at the follwing check
---SNIP--
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking for SHA1_version in -lcrypto... yes
checking for RAND_pseudo_bytes... yes
checking for
2003 Jun 07
3
tinc-1.0pre8 fails to compile on RH 9.0
Hi,
I had posted a similar question a few days back(but my mails started
bouncing back, when I tried to post to the newsgroup). So here is it
again.
My System: Rh 9.0 (2.4.20-13.9), openssl-0.9.7a-5, openssl-devel-0.9.7a-5
Autoconf tools: autoconf-2.57-3, automake-1.6.3-5
1. When I try to compile tinc-1.0 pre8 on my RH 9.0 system, it fails..
When I do a ./configure, it aborts saying:
2005 Jul 27
1
storage format question.
Hi,
Any help is greatly appreciated.
I was wondering about the following:
1. How are vorbis encoded files stored on disk? For example, in case of
mp3, the file consists of multiple frames (having some fixed header). As
a result even cutting some part of the mp3 file will still allow a user
to listen to the remaining part. Does vorbis have similar operation and
if yes, where can get information
2005 Aug 17
1
Reg. vorbis_staticbook_unpack
Hi,
All help is appreciated.
I am looking at the function "vorbis_staticbook_unpack" in codebook.c
I guess this function just reads the codebooks in some structure
(static_codebook) and does not actually map the codewords to the
codevalues.
Does anyone know what functions can I use in this function to actually
view this mapping? I just want to display something like below: I can
2006 Jun 19
1
how to do this sum?
Hi, Everybody!
I have a big table which named table_x, and all the elements in the table is very large!
Now I want to do the summay on the talbe_x[,3].
Unfornately, I can't get the right result!
And the R give the warning messages as follow:
> sum(table_x[,3])
>[1] NA
>Warning message:
>interger overflow in sum(.);please use sum(as.numeric(.))
(the original upper message is
2002 May 29
4
Why is.integer() doesn't work with single values?
Hi all,
I don't understand the behavior of is.integer():
> x <- integer()
> is.integer(x)
[1] TRUE
> x <- 10
> is.integer(x)
[1] FALSE
> x <- 1:10
> is.integer(x)
[1] TRUE
Why is.interger() returns FALSE if x has only one element? And how can
someone check if x is an integer but contains only one value? (R 1.5.0
on Linux i386)
Thanks, Sven
2012 May 15
2
max value
Here is an R problem I am struggling with:
My dataset is organized like this...
subject session variable_x variable_y
01 1 1 <interger values>
01 1 2
01 1 3
01 2 1
01 2 2
01
2012 Oct 20
2
Help with programming a tricky algorithm
Hi All,
I'm a little stumped by the following problem. I've got a dataset with
the following structure:
idxy ix iy country (other variables)
1 1 1 c1 x1
2 1 2 c1 x2
3 1 3 c1 x3
. . . . .
3739 55 67 c7 x3739
3740 55 68 c7 x3740
where ix and
2006 Dec 05
5
if(){} else{}
Dear R-community,
my data set looks like 'mat' below.
Plant<-c(NA,1,1,1,NA,NA,NA,NA,NA,1);
Value1<-rnorm(1:10);
Value2<-rnorm(1:10);
mat<-cbind(Plant,Value1,Value2);
I receive data from two different sites.
One site is identified by an interger number, the other site has no data in
column Plant=NA.
My pb:
I'm trying to assign labels "A" or "B" to
2005 May 05
2
[LLVMdev] (no subject)
>> In other words, abandoning overflow detection makes the
>> duplication of types redundant, while requiring it would be a
>> great burden on CPUs that don't have overflow exception hardware.
>
>Yes, you're right. This has been a desired change for quite some time
>now. Unfortunately, its a huge impact to nearly every part of LLVM. We
>will