Displaying 4 results from an estimated 4 matches for "pannigh".
Did you mean:
pannic
2012 May 15
2
Transfering data from R list to other document format
Dear users,
I want to transfer a list of results from R to some practical format, from
where I can continue manipulating, copying,... the values, e.g. :
list1 <- list("My first list", matrix(1:6, ncol=3), c(1,2,3,4,5,6) )
# Imagining I forgot something and want to add it to the list like:
list1[[4]] <- list(c(4,4,4), "This is it")
# Now I want to transfer the list to
2012 May 10
4
additional axis, different scale
Dear list,
I am looking for a possibility to present results in a more graphical way by
adding an axis. But I have trouble relating my data to the added axis.
Imagine the following example:
a <- c(10, 20, 30, 40)
b <- c(50, 250, 500, 600)
ba <- b/a
par(las=1, mar=c(5,5,.5,5))
plot(a,b, type="b", pch=22, cex=2, col=4, lwd=2, ylim=c(0,650),
xlim=c(0,45))
axis(4,
2012 Apr 25
3
Intercept between two lines
Dear List,
I know this is not the first post on this topic, but I need basic help I
guess. Assuming the simple case of two lines with one intercept, how can I
make R calculate this intercept, NOT using locator().
par (xaxs="i", yaxs="i")
plot( 1, bty="n" ,xlim=c(0,300) , ylim=c(0,300) , xlab="X", ylab="Y")
curve(100-0.5*x, -50,250, add=T,
2012 Apr 26
1
Using if and else in a data frame
Dear list,
I get the ifelse function to work on a data frame but don't know how to do
something similar (only more conditions) with the combination of if and else
like in the example:
A <- c("a","a","b","b","c","c")
B <- c(rep(2,6))
dat <- data.frame(A,B)
dat$C <- if(AB$A=="a") {AB$B^2} else