search for: bojanowski

Displaying 20 results from an estimated 30 matches for "bojanowski".

2007 Jul 25
2
initalizing and checking validity of S4 classes
...(rval) } # this should return error description f(o) # define the validity method setValidity( "someclass", f) # this should return an error new("someclass", v=1:2, l=letters[1:3]) # but it doesn't... -e-n-d--r--c-o-d-e- ____________________________________ Michal Bojanowski ICS / Department of Sociology Utrecht University Heidelberglaan 2; 3584 CS Utrecht Room 1428 m.j.bojanowski at uu dot nl http://www.fss.uu.nl/soc/bojanowski/ [[alternative HTML version deleted]]
2007 Jun 02
3
Updating R version
A quick question. I am trying to understand how I could move the installed packages in my R 2.3 version to the newly installed R 2.5 version, without having to install all the packages again. I copied the files under the old library subdirectory to the new library subdirectory. But still the newer version is not recognizing the packages that were copied over. Thanks. [[alternative HTML version
2008 Jan 22
1
deparse, substitute and S4 generics
...;, function(object) { nam <- deparse(substitute(object)) cat("name:", nam, "\n") object } ) # now let's test: x <- 1 # this works f(x) # but this does not, why? what '...' has to do with it? g(x) ____________________________________ Michal Bojanowski ICS / Department of Sociology Utrecht University Heidelberglaan 2; 3584 CS Utrecht The Netherlands m.j.bojanowski at uu dot nl http://www.fss.uu.nl/soc/bojanowski/ [[alternative HTML version deleted]]
2006 Jun 23
2
problem with hist() for 'times' objects from 'chron' package
...and times Title: Chronological objects which can handle dates and times Depends: R (>= 1.6.0) License: GPL Packaged: Fri May 12 09:31:49 2006; hornik Built: R 2.3.0; i386-pc-mingw32; 2006-05-13 12:21:51; windows ~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~ Michal Bojanowski ICS / Utrecht University Heidelberglaan 2; 3584 CS Utrecht Room 1428 m.j.bojanowski at fss.uu.nl
2007 Mar 13
4
'substitute' question
# I use this code to label a graph with the R2: # graph x <- rnorm(100) y <- x + rnorm(100) lm1 <- lm(y~x) plot(x,y) # label R2text <- substitute(paste(R^2," = ",r2),list(r2=r2)) text(1,-3,R2text, col="red") # i have modified this a bit, so that i have a vector with other labels, each of which # will be labelled on the graph. Example: texts <- c("And the
2007 Jan 25
1
using non-ASCII strings in R packages
...t OK to include them in Windows-1250 encoding (default for Polish locale, as far as I know)? I believe this problem is frequently confronted for other "non-latin1" languages. If it is not the way to go, I would be very grateful for suggestions. Thanks in advance and kind regards, Michal Bojanowski ____________________________________ Michal Bojanowski ICS / Department of Sociology Utrecht University Heidelberglaan 2; 3584 CS Utrecht Room 1428 m.j.bojanowski@fss.uu.nl http://www.fss.uu.nl/soc/bojanowski/ [[alternative HTML version deleted]]
2007 Mar 08
1
sink with R-code
I have the same question that Eusebio had: Is there a function similar to "sink" that redirect also R code to a file that is: sink("R001") x <- c(2,-6,-4,8,5,4,1,3,4,-9,0,1) A <- matrix(x, ncol=3) A A.prima <- t(A) A.prima dim(A) dim(A.prima) sink() create a file "R001" with contents: ------------------------------------------ [,1] [,2] [,3] [1,]
2007 Mar 08
1
Searching and deleting elements of list
Hi, I have a problem. Please, look at example and try to help me!! > A<-c("aaa","bbb","ccc","ddd","eee") > B<-c("vvv","ooo","aaa","eee","zzz","bbb") > C<-c("sss","jjj","ppp","ddd") > D<-c("bbb","ccc")
2007 Mar 13
3
Highlight overlapping area between two curves
Dear R helpers, I have a graph as following; I would like to highlight the overlapping area between the two curves. Do you know how to do this? Thank you in advance for your help. Nguyen ###START x1 <- rnorm(10000, 0.70,0.12) x2 <- rnorm(10000, 0.90,0.12) d1 <- density(x1) d2 <- density(x2) plot(range(d1$x,d2$x), range(d1$y, d2$y), type = "n", xlab = "X
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
...=C;LC_TIME=Polish_Poland.1250 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] pixmap_0.4-9 loaded via a namespace (and not attached): [1] tools_2.9.0 Thanks in advance! Best, Micha? _________________________ Michal Bojanowski http://bojan.3e.pl/weblog http://www.fss.uu.nl/soc/bojanowski http://www.ifispan.waw.pl/socnierowno
2008 Jan 23
1
Package Building and Name Space
Hello, I just don't get this and would appreciate if someone could write a line or two: I'm trying to build this package and it stops installing after I add the following to the NAMESPACES file: >importFrom(gsubfn,strapply) The error during the package test is: Error in MyPackage::MyFunction : package 'MyPackage' has no name space and is not on the search path Calls:
2001 Feb 25
2
newbie question
Hello to all. My name is Michal Bojanowski, I'm a Sociology student at Unversity of Warsaw. Recently I've started to learn R when I've found myself frustrated because of inflexibility of SPSS and other "user-friendly" statistical software. As I said, I'm new here, so my question is very simple: I wanted to use a l...
2007 Mar 14
1
How to transform matrices to ANOVA input datasets?
Hello, R experts, I have a list called dataHP which has 30 elements (m1, m2, ..., m30). Each element is a 7x6 matrix holding yield data from two factors experimental design, with treatment in column, position in row. For instance, the element 20 is: dataHP[[20]] col1 col2 col3 trt1 trt2 trt3 [1,] 22.0 20.3 29.7 63.3 78.5 76.4 [2,]
2008 Jan 25
2
interactive menu in scripts
Hello, I would like to make my R script more interactive. Well, I want the script to work like this: I run the script from R Console and it offers me some options (press 1 for something, or press 2 for something else). After pressing 1 or 2, do corresponding procedure. I am not able to find out how to do this. I guess the functions menu() or switch() are the keys, but I didn't manage to use
2007 Mar 07
3
Plotting a broken line?
Hi, Is there a smart way in the R graphs to create a line that is broken in intervals based on the indicator given below. following is a small test graph Location,indicator,otherinfo 1.2,1,2.2 2.5,1,2.5 3.7,1,2.3 20.1,2,4.3 22.5,2,5.2 25.0,2,3.4 27.3,2,2.2 35.1,3,3.4 37.0,3,7.2 38.0,3,6.1 40.1,3,5.4 52.9,3,3.3 Right now in the plot the line is continuous, but I would like to have it broken
2001 Mar 22
2
Two-argument functions in tapply()
...ot a multiple of shorter object length in: x * w 2: longer object length is not a multiple of shorter object length in: x * w What is the right way to get the results (how to use 2-argument function in tapply()), or maybe there is another simple way to do this ThankYouInAdvance Michal Bojanowski -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat...
2007 Mar 13
3
inconsistent behaviour of add1 and drop1 with a weighted linear model
Dear R Help, I have noticed some inconsistent behaviour of add1 and drop1 with a weighted linear model, which affects the interpretation of the results. I have these data to fit with a linear model, I want to weight them by the relative size of the geographical areas they represent. _________________________________________________________________________________________ > example
2006 Jun 23
1
rearranging data frame rows
Hi All, I have two data frames. The first contains data about a number of individuals, coded in the first column with a name, in an order I find convenient. The second contains different data about the same indivduals, in a different order. Both data frame have the individual names in the first column. I need to reorder the second data frame so the rows are rearranged in the same manner as
2009 Jan 14
1
script window background and text color (PR#13446)
Full_Name: alexios galanos Version: 2.8.1 OS: windows/vista Submission from: (NULL) (81.100.160.71) While the script editor now respects user preferences for the background color in 2.8.1, it does not do so for the user text color defaulting to black. So my preference of having for example black background with green text fails (it is all black) in the script editor (the console is ok).
2006 Jun 15
2
Problem on Matrix multiplication
Dear all r-users, I am getting a big problem with matrix multiplication suppose I have, > weight Weight 1 1067640 2 8871500 3 42948778 4 127583735 5 22000000 6 44000000 7 56850000 8 23805662 and, > s a b c d e f g h a 402493.18 -133931.62 461483.3 -94042.86 674493.8