Re: [R] rank() not doing really what I want

2012-10-12 Thread Henri-Paul Indiogine
Hi Michael! 2012/10/12 R. Michael Weylandt : > If they are already in decreasing order, you might be able to work > something out like (untested): > > cumsum(c(1, diff(x) < 0)) Thanks seems to work. Thanks a bunch! Henri-Paul -- Henri-Paul Indiogine Curriculum & In

[R] rank() not doing really what I want

2012-10-12 Thread Henri-Paul Indiogine
o give: 1. ,2, 3, 4, 5 ,5, 6, There should be no "jumps" in the sequence. How would that be possible? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre http://www.tutorfind.ca Email: hindiog...

Re: [R] linux

2012-05-23 Thread Henri-Paul Indiogine
ul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre http://www.tutorfind.ca Email: hindiog...@gmail.com Skype: hindiogine __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/

Re: [R] merging corpora and metadata

2011-11-17 Thread Henri-Paul Indiogine
nri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine __ R-help@r-project.org mailing list

[R] merging corpora and metadata

2011-11-17 Thread Henri-Paul Indiogine
chr [1:3] "VCorpus" "Corpus" "list" Any idea on what I could do to keep the metadata in the merged corpus? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Sky

Re: [R] stacked plot

2011-10-21 Thread Henri-Paul Indiogine
Hi Dennis! Fantastic, great, wonderful, beautiful. I slightly changed your code to adapt it to my situation: ggplot(DF.2, aes(x=file.name, y=value, fill=codes))+geom_histogram(position="stack", stat="identity") + labs(x="document", y="number of codings") ### file.name codes

[R] stacked plot

2011-10-20 Thread Henri-Paul Indiogine
to set up the function. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine __ R-

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
Hi Uwe! 2011/10/20 Uwe Ligges : > arrange it outside by, e.g. increasing the size of margins (see argument > "mar" in ?par) and place a separate legend (see ?legend) into the margins > (see xps argument in ?par). I could not find 'xps', do you mean 'xpd'? This is what I have so far: > par(mar=

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
Hi Uwe! 2011/10/20 Uwe Ligges : >  names.arg = rep(NA, nrow(file.codes)) Yes, that works beautifully. Danke schoen! Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine We

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
136.scrb 0 00 DCPD-201000130.scrb 0 00 DCPD-201000636.scrb 0 00 -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog.

[R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
Hi! I have 2 problems in drawing a stacked bar plot: (1) This is a stacked bar plot with more than 100 bars next to each other. So there should not be names at the bottom of the bars because the bars are too narrow.I tried arg.names=NULL but that does not work because R uses the row names f

Re: [R] position of the end of a text file

2011-10-16 Thread Henri-Paul Indiogine
I think I have it and my apologies for spamming the list. I should not work this late on Sunday :-) I think that it should be as.integer(regexpr("$$", my.text.vector) 2011/10/16 Henri-Paul Indiogine : > > I tried the following > > as.integer(regexpr("??",

[R] position of the end of a text file

2011-10-16 Thread Henri-Paul Indiogine
r even the correct number, but not consistently. I understand that ?? is an operator, thus should not be used but itself. Any ideas? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype:

Re: [R] Installing packages in R for UBUNTU

2011-09-27 Thread Henri-Paul Indiogine
for those that are not in the Ubuntu repositories. Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine ___

[R] findAssocs()

2011-09-26 Thread Henri-Paul Indiogine
erm, corlimit) UseMethod("findAssocs", x) Any ideas? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine _

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
Greetings! 2011/9/20 David Winsemius : There is probably an environment/scoping problem as you stated. I am using ESS and org-mode. I started a new R code block and the problem disappeared. Thanks for your kind feedback. Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Tex

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
My objective is to define a pattern for a grep() statement. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~si

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
CLI and then type "pattern", R returns "[Aa]ccountability" I I put this statement in a script then the variable "pattern" is not created. Thanks, -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindio

[R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
Greegings! Any idea why this works from the command line, but not from a source file? This is driving me (more) insane. regexp <- "[Aa]ccountability" Thanks! -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindi

Re: [R] closeness of codes

2011-09-20 Thread Henri-Paul Indiogine
Hi Jean and Jim! Thanks for your suggestions. Best, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~si

[R] closeness of codes

2011-09-18 Thread Henri-Paul Indiogine
de4 are, and so on. I am trying to understand how to create some sort of graph or diagram to represent this. Should I use a cluster diagram or a network graph? Also, what sort of R code could I use? Thanks for your feedback. Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction

Re: [R] dbWriteTable error message

2011-08-31 Thread Henri-Paul Indiogine
I am answering myself here 2011/8/31 Henri-Paul Indiogine : > dbWriteTable(con, "fileAttr", DF.4, row.names=FALSE, overwrite=TRUE) > > Then I get the following error: > > [1] FALSE > Warning message: > In value[[3L]](cond) : >  RAW() can only be applied to

[R] dbWriteTable error message

2011-08-31 Thread Henri-Paul Indiogine
umn type. dbWriteTable(con, "fileAttr", DF.4, row.names=FALSE, overwrite=TRUE) Then I get the following error: [1] FALSE Warning message: In value[[3L]](cond) : RAW() can only be applied to a 'raw', not a 'character' Where could I start looking? Than

[R] change values in a character vector

2011-08-25 Thread Henri-Paul Indiogine
at a loss of how to do so. I suppose a loop with and index using multiples of 6, but I am not sure. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://p

Re: [R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
s, one for each of the 6 replicated rows. (2) Then I need to replace in the second column all values except the one on the 3rd replication. Thanks a bunch! This is my dissertation work, so very, very important for me :-) Best, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction T

[R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
lah foo bar3blah blah blah blah foo bar3 blah blah blah blah foo bar3blah blah blah blah . . and so on. Thanks! Henri-Paul -- Henri-Paul Indiogine Curriculum & Instructio