similar to: scan html: sep = "<td>"

Displaying 20 results from an estimated 6000 matches similar to: "scan html: sep = "<td>""

2004 Mar 29
2
c() question
Hi I need to define the following c("one group" = class.weight[2], "other group" = class.weight[1]) #class.weight = c(1,2) but I don't like the hard-coded way and would like to use my.group <- array(c("one group", "other group")) but now c(my.group[1] = class.weight[2], my.group[2] = class.weight[1]) gives an error how can I solve this
2007 May 18
1
How to extract R codes that embedded in a HTML file
> -------- Original Message -------- > Subject: Re: [R] How to extract R codes that embedded in a HTML file > using Stangle? > Date: Thu, 17 May 2007 17:01:30 +0000 > From: Tao Shi <shitao at hotmail.com> > To: ligges at statistik.uni-dortmund.de, lecoutre at stat.ucl.ac.be > CC: r-help at stat.math.ethz.ch > : <jmcconnell at
2009 Sep 20
2
xtable + print (html)
hi, I want html code via the xtable package. I have a data.frame and tried to use the print()-function. But I only get the data.frame printed - no html arround it. what do I have to change? thanks!
2004 Nov 18
5
Lexical Scoping: eval(expr,envir=)
Hi R-listers, I am trying to better undertand what we would call "functional paradigm" use of S/R to better map my programming activities in other languages. This little function is aimed to create an object (at the end end, it would have it's own class): -- myObject =function(){ list( a=1, foo=function(b) { cat("b:",b)
2005 Feb 15
2
special symobol / character
Hi all, Is it possible to add a permil (or per mille) symbol to an R plot (I couldn't find this symbol under demo(Hershey) or the plotmath information). In some ascii tables it is symbol no. 137. cheers, Matt. [[alternative HTML version deleted]]
2003 Dec 18
3
Summaries
Hello UseRs: Excuses for my english. I have a dataset with 65000 records and I'd like to make a summary where I can view all the values (with the number of times that it repeats) that there are each column of my dataset. I tried with summary( ), str( ), but nothing gives me the result that I am loking for. Thank you very much.
2007 Dec 19
3
Obtaining replicates numbers of a vector
Dear R-help, I am trying to have a generic way to assess the replicates in a character vector. Say that I have the following vector: x <- c('A','B','A','C','C','B') I would like to obtain: replicates <- c(1,1,2,1,2,2) each number beeing the time we see the corresponding value in x. Any clever and generic way to obtain that? Eric --
2002 Jun 20
1
Argument visible of addTaskCallback
Hello, I have a question about addTaskCallback It is said that the argument visible allows to know wether the result of the top-level evaluation was printed or not. Nevertheless, in the following example, I encountered a problem, as it seems not all printed objects are visible... Could someone tell me where is the tip? TIA
2004 Nov 29
3
Differences between "$" and "[["
Hi, If I define the following list: > (l<-list("text-align"="right")) $"text-align" [1] "right" I know that I can't use l$text-align, as the parser will find a '-' operation. If I want (need) to use special names, as "text-align", I have to enclose it between "". So I can use: l$"text-align" or
2004 Nov 09
2
do.call invoking a function with multiple arguments
Hi users, I am not sure to understand the help page about do.call. -- do.call(what, args) args: a _list_ of arguments to the function call. The 'names' attribute of 'args' gives the argument names. -- If we take the following sample data: > (tab=as.data.frame(table(factor(1:10)))) Var1 Freq 1 1 1 2 2 1 3 3 1 4 4 1 5 5
2003 Feb 07
2
My remark on libraries
Hi R community, These days, I am writing some functions to work with 2-ways frequency tables ; you know all this tuff about measures of association: Chisq and derived (phi, cramer's v), tau b, tau c, somer's d and so on. So I consider all those functions could be gathered in a single R file, as they are coherent and dealing with the same problem / objective (analysis of crosstables).
2005 Feb 18
3
Hosting a R Graph Gallery?
Dear R users, Following some of the recent questions and discussions about the R plotting abilities, it occurred to me again that it would be very valuable to have an R graph gallery. Eric Lecoutre made a very nice example in: http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf It would be very useful to many beginners, but probably also advanced users of R, to have an
2004 Jun 04
1
[Wish]: Add "..." argument to library function
Hello, I would find it very usefull to have the ability to load packages with options. Consider for example the SciViews package Philippe and me are working on. When loading on Windows, it automatically loads the associated GUI executable. It should be convenient to have an option not to load the exe but still have an access to the R functions of the package. For that, I think a simple change
2003 Jun 01
6
compositional data: percent values sum up to 1
again, under another subject: sorry, maybe an all too trivial question. But we have power data from J frequency spectra and to have the same range for the data of all our subjects, we just transformed them into % values, pseudo-code: power[i,j]=power[i,j]/sum(power[i,1:J]) of course, now we have a perfect linear relationship in our x design-matrix, since all power-values for each subject sum up
2004 Apr 27
5
parsing a data file
Hi, I need to parse a data file (output of a measuring device) of the following format: BEGIN RECORD [first record data] RECORD [second record data] RECORD [third record data] END Line breaks can (and do ;-() occur anywhere. White space behaves very much like TeX, eg it is not important whether there are one or more spaces or linebreaks as long as there is one of them. It is a text file, not
2003 Jun 03
3
lda: how to get the eigenvalues
Dear R-users How can I get the eigenvalues out of an lda analysis? thanks a lot christoph -- Christoph Lehmann <christoph.lehmann at gmx.ch>
2003 Sep 26
2
overlay two pixmap
Hi I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is the basis, and on this I need to overlay a pixmapIndexed, BUT: the pixmapIndexed has set only some of its "pixels" to an indexed color, many of its pixels should not cover the basis pixmapGrey pixel, means, for this "in pixmapIndexed not defined pixels" it should be transparent. What would you
2003 Sep 09
2
logistic regression for a data set with perfect separation
Dear R experts I have the follwoing data V1 V2 1 -5.8000000 0 2 -4.8000000 0 3 -2.8666667 0 4 -0.8666667 0 5 -0.7333333 0 6 -1.6666667 0 7 -0.1333333 1 8 1.2000000 1 9 1.3333333 1 and I want to know, whether V1 can predict V2: of course it can, since there is a perfect separation between cases 1..6 and 7..9 How can I test, whether this conclusion (being able to assign an
2004 Sep 22
1
S4 methods and polymorophism
Hello R Power Users, There is a rather large introduction you may skip to go directly to my question about S4 classes. I am working on some toy code to help me get in through S4 classes. Doing this homework, I have some questions about S4 classes. I have carefully read available help and some additional material such as Robert Gentleman's slides and special attention to "Programming
2007 Oct 26
1
Problems with scan() in a tab-sep .txt file with cells that have '///' (three frontslashes)
Hello all, I'm using the following scan() parameters on a tab-separated text file that was generated by R. temp_file <- scan(file = outfile, sep="\t", what = character(), skip = 1, nlines = 1) The problem is that within some cells, there are cases where there are three frontslashes ( /// ). However, the file itself is tab-separated, and the exact problem is that even if I