Displaying 20 results from an estimated 1100 matches similar to: "Merge or combine data frames with missing columns"
2009 Jan 05
1
adding a curve with xaxs="i"
I want the curve to touch the y axis like the curve touches the upper boundary.
How can I eliminate the margin between axis and curve on the left side?
x1 <- c(1,2,3,4,5)
x2 <- c(2,4,6,8,10)
mod <- lm (x2~x1)
hm <- function (x) (mod$coe[1]+x*mod$coe[2])
plot.new()
# ...
box()
curve (hm,lty=1,add=T,xaxs="i",yaxs="i")
(R 2.8.1)
--
Sensationsangebot verl?ngert: GMX
2008 Nov 30
1
methods not found inside function?
I am currently attempting to hack the recently
featured profileModels package so that it can
handle models generated by the lme4 (mixed models)
package. I'm getting really confused by different
behavior of summary() before and after loading
the lme4 package, and inside and outside the
profileMethod() function. The basic behavior
is that with lme4 loaded, and "obj" a fitted
object
2009 Jan 16
1
(no subject)
Dear users,
i just installed the lastest version of R, 2.8.1 on my computer (OS Windows
XP). Then i tried to update the packages copied from my old R version by
>update.packages(ask=F)
However i get the following warning:
"Warning: unable to access index for repository
http://cran.ch.r-project.org/bin/windows/contrib/2.8
Warning: unable to access index for repository
2009 Jan 14
2
Set caller ID to anonymous
Hi guys,
I am trying to set the caller ID to 'Anonymous <anonymous>' if the caller is not registered to the asterisk server. But I can't find a solution.
Any ideas?
Regards Philipp
--
Sensationsangebot verl?ngert: GMX FreeDSL - Telefonanschluss + DSL
f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
2008 Dec 05
3
Poor performance on smp system
Hello,
I have a win32 console program running on wine-1.1.7-1.12 (openSuSE 11.1 rc1)
using two cpus.
While the results are ok the performance of this program is very poor.
After some testing and comparing with windows I have found:
The program writes out its results on ascii files from time to time. This writing
phase obviously takes much(!) longer on wine as on windows. And during
this
2009 Jun 08
3
using regular expressions to retrieve a digit-digit-dot structure from a string
Hi,
i need to recognize itemization structures in strings which follow the
format: "digit-digit-dot" like e.g.
1.
2.
19.
211.
Given the string " This happened in the 21. century." (the dot behind 21 is
used in German instead of 21st) I want know where the dots are but I do not
want the 21.-dot to be returned as well.
I am not good at regular expressions. How
2008 Nov 20
5
summary statistics into table/data base, many factors to analyse
Dear list,
I reduced my data to the following:
x <- c(1,4,2,6,8,3,4,2,4,5,1,3)
y <- as.factor(c(2,2,1,1,1,2,2,1,1,2,1,2))
z <- as.factor(c(1,2,2,1,1,2,2,3,3,3,3,3))
I can produce the statistical summary just fine.
s1 <- tapply(x, y, summary)
d1 <- tapply(x, y, sd)
s2 <- tapply(x, z, summary)
d2 <- tapply(x, z, sd)
First thing:
I have 100 plus factors to analyse. Theirs
2009 Jan 11
1
Problem using odfWeave
Hi everybody,
I don't get odfWeave to run properly. My odt file is as a simple as:
------------------------
Some text.
<<echo=FALSE>>=
print(1:10)
@
-----------------------
The output I get ist the following:
-----------------------------------
> odfWeave("roffice.odt", "rofficeOUT.odt")
Copying roffice.odt
Setting wd to
2011 Feb 01
1
Finding non-ASCII characters in R code using R
During R CMD check I get the following note:
* checking data for non-ASCII characters ... NOTE
Note: found 9 marked UTF-8 string(s)
How can I search my code files for non ASCII chars using R?
Thanks,
Mark
--
Mark Heckmann (Dipl. Wirt.-Ing.)
phone +49 (0) 421/1614618
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro!
2009 Jan 20
1
"Hosts allow" directive is not correctly evaluated for printer shares
Hello,
the access to printer shares is denied because the client IP address is allegedly not in the "hosts allow" list, although it actually is and access to normal shares perfectly works.
I have two samba servers (3.0.33) in two different subnets with pure Windows-XP-Clients. The first subnet is 192.168.1.0/24 and the server's ip address is 192.168.1.1. Let's call this server
2008 Nov 21
1
Dataframe with single level column
Dear all,
I have a dataframe with multiple observations and the levels as the last column, as in:
d <- data.frame(A=sample(1:100,12),B=sample(1:100,12),levels=c(rep('A',4),rep('B',4),rep('C',4)))
> d
A B levels
1 77 40 A
2 14 18 A
3 56 7 A
4 46 27 A
5 63 35 B
6 80 21 B
7 3 54 B
8 93 76 B
9 5 46 C
10 16 53
2010 Feb 14
3
evaluate variable within expression - how?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100214/4b41a017/attachment.pl>
2010 Jan 01
2
changing a list element's name during execution in lapply - possible?
Happy New Year, all!
I want to do calculations on each element of a list l, but i want the
returned list element to be named differently after the calculation.
Is it possible to do the renaming somehow within the lapply call?
l <- list(a=NA, b=NA)
lapply(l, function(x) {names(x) <- "new name"; return(x) })
This does not work, any ideas?
TIA
2009 Dec 02
2
Reordering the results from table(cut()) by break argument
I have a vector and need to count how many data points fall inside
each bin:
dat <- rnorm(100)
breaks <- -3:3
table((cut(dat, breaks)))
(-3,-2] (-2,-1] (-1,0] (0,1] (1,2] (2,3]
3 13 42 30 12 0
if I reverse the breaks vector, the results remains the same:
breaks <- rev(breaks)
table((cut(dat, breaks)))
(-3,-2] (-2,-1] (-1,0] (0,1] (1,2]
2011 Apr 25
4
blank space escape sequence in R?
Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space?
TIA
Mark
???????????????????????????????????????
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
2008 Dec 16
3
Check if data frame column is numeric
Hi R-users,
I want to apply a function to each column of a data frame that is numeric.
Thus I tried to check it for each column first:
> apply(df, 2, function(x) is.numeric(x))
A60 A64 A66a A67 A71 A75a A80
A85 A91 A95 A96 A97 A98 A99
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
FALSE
2009 Dec 27
2
RGtk2 / gWidgets - addHandlerClicked Problem
In The following code, the table handler is executed twice when the
button is pressed (from the 2nd pressing on).
I want it to be executed only once. Does someone know, why this
happens and how I can change it?
library(gWidgets)
w <- gwindow()
b <- gbutton("press", cont=w)
tbl <- gtable(1:10, cont=w)
addhandlerclicked(b, handler=function(h, ...){
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large"
Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case.
> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
> plot(1:10)
Fehler in plot.new() : Grafikr?nder zu gro?
>
Also
2011 Oct 24
2
splitting a string into words preserving blanks (using regex)
I would like to split a string into words at its blanks but also to preserve all blanks.
Example:
c(" some words to split ")
should become
c(" ", "some", " ", " words", " ", "to" , " ", "split", " ")
I was not able to achieve this via strsplit() .
But I am not familiar with regular
2010 Nov 20
3
how to store package options over sessions?
Hi,
I posted this a week ago on r-help but did not get an answer. So I hope that someone here can help me:
I want to define some options for my package the user may change.
It would be convenient if the changes could be saved when terminating
an R session and recovered automatically on the next package load.
Is that possible and if yes, is the standard way to implement this?
Thanks,
Mark