search for: meeni

Displaying 5 results from an estimated 5 matches for "meeni".

Did you mean: meenai
2007 Jan 27
1
Conditional Selection of Columns for Tables
...o calculate the total revenue per sales representative per status in a table. I have come to a complete stop: Let's say, we have a data.frame called df with several columns and a number of rows: df <- data.frame( nr=101:110, letter=LETTERS[1:10], name=c(rep("eenie",3), rep("meenie",2), rep("miney",4), "moe"), revenue=round(runif(10, min=100, max=1000),0), status=round(runif(10,min=1, max=3),0) ) gives nr letter name revenue status 1 101 A eenie 764 2 2 102 B eenie 918 2 3 103 C eenie 936 3 4...
2005 Nov 02
2
Anything like associative arrays in R?
...ing to two different categories, containing N and M values, respectively. In languages with associative arrays, the typical way to do this is to define a 2-d associative array; e.g. in Perl one could do for $i ( 'foo', 'bar', 'baz' ) { for $j ( 'eenie', 'meenie', 'minie', 'moe' ) { $table{ $i }{ $j } = read_table( "path/to/data/${i}_${j}.dat" ); } } How does one do this in R? In particular, what's the equivalent of the above in R? Most importantly, how could I have found out this answer from the R docs?...
2007 Jan 10
2
select subsets in data frame
...cked that it is indeed a data.frame object and included the correct header information in line 1. For example purposes, look at this small object: <<*>>= (4) d <- data.frame(A=1:3, Date=c("01.01.07","02.01.07","03.01.07"), KB=c("Eenie", "Meenie", "Miney") ) d["KB"=="Eenie",] # gives @ output-start [1] A Date KB <0 rows> (or 0-length row.names) output-end @ If I follow Venables/ Ripley in Modern Applied Statistics with S, it should look like this: <<*>>= (5) library(MASS) attach(p...
1999 Mar 25
1
Y-limits of barplots
Hello everybody, I frequently have to produce barplots from variables the natural variation of which is far away from zero. A typical range would be, say from -16 to -28. So, the following example should give an "honest" presentation: x<-c(-20,-22,-21,-28) barplot(x,beside=T,ylim=c(-18,-30)) But using anything else but "0" for the first element of ylim leads to strange
2004 Mar 05
1
Problems with SJava instalation
Hi, I'm try to use the SJava package. The install is OK. In R I have this error message: -------------------------- > library(SJava) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/opt/lib/R/site-library/SJava/libs/SJava.so": libRSNativeJava.so: cannot open shared object file: No such file or directory Error in