[R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
. . and so on. Thanks! Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine __ R-help@r-project.org

Re: [R] replicate lines of data frame

2011-08-25 Thread Henri-Paul Indiogine
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 Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com

[R] change values in a character vector

2011-08-25 Thread Henri-Paul Indiogine
. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM 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] dbWriteTable error message

2011-08-31 Thread Henri-Paul Indiogine
, 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? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas

Re: [R] dbWriteTable error message

2011-08-31 Thread Henri-Paul Indiogine
I am answering myself here 2011/8/31 Henri-Paul Indiogine hindiog...@gmail.com: 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

[R] closeness of codes

2011-09-19 Thread Henri-Paul Indiogine
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 Texas AM University TutorFind Learning Centre Email: hindiog

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 AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine

[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 AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype

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

2011-09-20 Thread Henri-Paul Indiogine
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 AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http

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 AM 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 dwinsem...@comcast.net: 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

[R] findAssocs()

2011-09-26 Thread Henri-Paul Indiogine
) environment: namespace:tm Any ideas? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine __ R-help@r

Re: [R] Installing packages in R for UBUNTU

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

[R] position of the end of a text file

2011-10-16 Thread Henri-Paul Indiogine
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 AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http

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 hindiog...@gmail.com: I tried the following as.integer(regexpr(??, my.text.vector

[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

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
0 00 DCPD-201000130.scrb 0 00 DCPD-201000636.scrb 0 00 -- Henri-Paul Indiogine Curriculum Instruction Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
Hi Uwe! 2011/10/20 Uwe Ligges lig...@statistik.tu-dortmund.de:  names.arg = rep(NA, nrow(file.codes)) Yes, that works beautifully. Danke schoen! Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype

Re: [R] bar plot issues

2011-10-20 Thread Henri-Paul Indiogine
Hi Uwe! 2011/10/20 Uwe Ligges lig...@statistik.tu-dortmund.de: 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

[R] stacked plot

2011-10-20 Thread Henri-Paul Indiogine
the function. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine __ R-help@r-project.org

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 value

[R] merging corpora and metadata

2011-11-17 Thread Henri-Paul Indiogine
: chr [1:17] WCPD-2001-01-29-Pg217.scrb WCPD-2003-01-13-Pg39.scrb WCPD-2003-01-13-Pg39.scrb WCPD-2004-05-17-Pg856.scrb ... - attr(*, class)= 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

Re: [R] merging corpora and metadata

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

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

2012-10-12 Thread Henri-Paul Indiogine
. ,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 AM University TutorFind Learning Centre http://www.tutorfind.ca Email: hindiog...@gmail.com Skype: hindiogine

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

2012-10-12 Thread Henri-Paul Indiogine
Hi Michael! 2012/10/12 R. Michael Weylandt michael.weyla...@gmail.com: 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

Re: [R] linux

2012-05-23 Thread Henri-Paul Indiogine
-Paul -- Henri-Paul Indiogine Curriculum Instruction Texas AM 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/r-help