Displaying 20 results from an estimated 11000 matches similar to: "Catenating factors."
2012 May 19
1
Catenating strings involving plotmath symbols.
In the context in which I am actually working it is necessary for
me to build parts of a text string to place on a plot in two separate
stages.
The following toy example illustrates what I am trying to do:
L1 <- substitute(list(paste("Bias in ", gamma,", ")))
L2 <- substitute(list(beta==b0),list(b0=300))
plot(1:10,main=L1) # Works fine.
plot(1:10,main=L2) # Works fine.
2002 Mar 19
1
Catenating expressions in plotmath().
I want to do something like produce a plot title of the form
``Sample size n = 42; critical value k_0 = 17.''
where the ``n'' is to be in a maths font and ``k_0'' indicates
that the 0 is a subscript. (A la LaTeX.)
But the values ``42'' and ``17'' are to be substituted in from the
numeric values of R objects.
After a bit of struggle I found that
>
2012 Aug 21
2
apply question
This works, where zz is a dataframe:
for(i in 1:nrow(zz)) {
zzz[i,1]<-paste(zz[i,1],zz[i,2],sep="_")
}
I would like to use "apply" to concatentate two columns of text along with
a separator.
How?
Chet
[[alternative HTML version deleted]]
2007 May 02
1
how to concatinate the elements of some text vectors cat() or print() ?
I have some comment text taken from a SAS data file.
It is stored in two vectors and is difficult to read.
I would like to simply concatentate the individual
entries and end up with a character vector that give
me one line of text per comment.
I cannot see how to do this, yet it must be very easy.
I have played around with cat() and print with no
success. Would someone kindly point out where I
2009 Jun 18
1
ogg_stream_reset() question
Hi Ogg experts!
My current work is catenating packets from several ogg files to the
one long stream, so I'd like to create stream once, and then reset it
just before reading codec headers from every new file. However, after
calling
ogg_stream_reset_serialno(ogg_stream_state *os, int serialno),
bos page is not pushed in stream since it calls
ogg_stream_reset(ogg_stream_state *os),
which
2007 May 27
2
Looking for the first observation within the month
Hi all, I have a simple data frame, first list is a list of dates (in
"%Y-%m-%d" format) and second list an observation on that particular
date. There might not be observations everyday. Let's just say
there are no observations on saturdays and sundays. Now I want to
select the first observation of every month into a list. Is there an
easy way to do that?
Date
2007 Oct 03
3
Factor levels.
I have factors with levels ``Unit", "Achieved", and "Scholarship"; I
wish to replace these with
"U", "A", and "S".
So I do
fff <- factor(fff,labels=c("U","A","S"))
This works as long as all of the levels are actually present in the
factor. But if ``Scholarship'' is absent
(as if often is) then
2013 Apr 29
1
CATENATE allows zero parts
I'm pleased to see that dovecot-2.2 includes support for RFCs 4467 and 4469 (URLAUTH and CATENATE). I have begun testing these features (in dovecot-2.2.1) and comparing their functionality against Apple's implementation. So far I have discovered a few inconsistencies. I will report each of these, and any more that I may find, in separate threads.
The first issue is that using CATENATE
2013 Jul 22
2
script to test CATENATE
Attached please find a perl script which tests the CATENATE support in dovecot. I used this to test my CATENATE implementation a few years ago and it runs fine against dovecot in OS X Server. When run against dovecot-2.2.4 though it always fails or hangs, which in some cases means we interpreted RFCs differently and in other cases means it's finding bugs; both conditions are worthy of
2011 Aug 14
1
Using get() or similar function to access more than one element in a vector
Dear R-users,
I've written a script that produces a frequency table for a group of
texts. The table has a total frequency for each word type and
individual frequency counts for each of the files. (I have not
included the code for creating the column headers.) Below is a sample:
Word Total 01.txt 02.txt 03.txt 04.txt 05.txt
the 22442 2667 3651 1579 2132 3097
I 18377 3407 454 824 449
2013 Apr 29
2
CATENATE allows empty messages
Dovecot-2.2.1 allows empty messages to be APPENDed when using CATENATE:
b1 append inbox catenate (text {0+}
)
b1 OK [APPENDUID 1366726248 12] Append completed.
Contrast this with regular APPEND:
b2 append inbox {0+}
b2 NO Can't save a zero byte message.
Note that zero-size literals are OK but zero-size messages are not. So while "b1" above should fail like "b2",
2010 Jun 11
1
Patch: 2.0 support for URLAUTH, BURL, CATENATE
Thank you Timo for beginning the port of URLAUTH, BURL, and CATENATE from 1.2 to 2.0. Attached please find two patches that finish the port to 2.0. One patch updates the dovecot-2.0-urlauth branch and is based on the tip of that branch. The other patch adds the full support to dovecot-2.0.beta5. The resulting URLAUTH/BURL/CATENATE code is the same.
Please let me know if you have any questions
2013 May 21
1
CATENATE/literal8 issue
Using 2.2.2, I see this:
C: 6 APPEND "INBOX" (\seen) "16-May-2013 22:05:14 -0600" CATENATE (URL
"/INBOX;UIDVALIDITY=1255685337/;UID=48812/;SECTION=HEADER" TEXT ~{40}
S: 6 NO [UNKNOWN-CTE] Binary input allowed only when the first part is binary.
Why is there this limitation? It seems to me that CATENATE is
confusing the content-type encoding of the data/part
2013 Apr 29
1
CATENATE doesn't support literal+ url
Dovecot-2.2.1 does not appear to support URLs specified via non-synchronizing literals (RFC 2088 LITERAL+), and also does not read and discard the literal+ input after reporting the error. This results in the literal+ input being interpreted as IMAP commands, which could alter the user's mail store in unexpected ways and/or lead to the abrupt disconnection of the client for exceeding the
2007 Aug 15
3
Covariance of data with missing values.
I have a data matrix X (n x k, say) each row of which constitutes an
observation of
a k-dimensional random variable which I am willing, if not happy, to
assume to be
Gaussian, with mean ``mu'' and covariance matrix ``Sigma''. Distinct
rows of X may
be assumed to correspond to independent realizations of this random
variable.
Most rows of X (all but 240 out of 6000+ rows)
2013 May 03
1
CATENATE mis-reads literal after bad URL
Dovecot-2.2.1 plus Timo's recent CATENATE and URLAUTH fixes mishandles literals after bad URLs. (As before remember that the "foobar" text below is really "foobarCRLF" hence the length of 8. Also, last time some MTA discarded an important single leading space character in the snippet I quoted so this time I'm prefixing all the lines to avoid that. In case it's
2004 Jun 29
1
RE: [S] Different behaviour of unique(), R vs. Splus.
The source of the incompatibility:
In S-PLUS 6.2:
> methods("unique")
splus splus menu splus
"unique.data.frame" "unique.default" "unique.name" "unique.rowcol.names"
In R-1.9.1:
> methods("unique")
[1] unique.array unique.data.frame unique.default unique.matrix
2007 Sep 19
2
Identify and plotting symbols.
I have been trying, unsuccessfully, to use identify() to (simply)
return a list of
the indices of points clicked on and overplot (with say a solid dot)
each clicked-on
point so that I can see where I've been. I.e. I don't want to see
the indices printed
on the screen; I just want the points I've already selected to be
highlighted.
I tried
ind <-
2007 Sep 16
1
Problem with nlm() function.
In the course of revising a paper I have had occasion to attempt to
maximize a rather
complicated log likelihood using the function nlm(). This is at the
demand of a referee
who claims that this will work better than my proposed use of a home-
grown implementation
of the Levenberg-Marquardt algorithm.
I have run into serious hiccups in attempting to apply nlm().
If I provide gradient and
2017 Sep 30
4
Converting SAS Code
On 9/29/2017 3:37 PM, Rolf Turner wrote:
> On 30/09/17 07:45, JLucke at ria.buffalo.edu wrote:
>
> <SNIP>
>
>>
>> The conceptual paradigm for R is only marginally commensurate with
>> that of
>> standard statistical software.
>> You must immerse yourself in R to become proficient.
>
> Fortune nomination.
For newer list members wondering what