Displaying 20 results from an estimated 30000 matches similar to: "appending and merging data frames"
2012 May 03
5
Identifying the particular X or Y in a sorted list
Dear All,
I have a data sets as shown below A (Patient ID ), B and C are the
Concentration of drug in blood on day 1 and day 4, D is the difference in
conc. To do this in R I have written a code as follows, identified the
number of patients who have more concentration on day 4 . Here I want to
identify specifically the patient ID (is he patient 1 or 2 or 5 and 7),
whose concentration is more.
How
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
2013 Mar 15
3
reviewer comment
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20130315/7300f19c/attachment.pl>
2012 Aug 09
4
R Commander - Time Series
Hello all,
I'm just starting to learn R and I heard a good way of doing that was R
Commander. For my work I use a lot of time series, so I installed (and
loaded) R Commander with epack.
When I go to Ts-Models, after loading my data, I click on ARIMA Models tab.
I load my variable D1 Ln Demand (1st differenced ln demand). I set my
regular and seasonal p d q settings hit run and I get:
[1]
2012 Jun 12
2
Attempting to update from R 2.14 to 2.15 on Ubuntu
R-SIG-Debian
I am very new to Linux so I probably am doing something stupid but I cannot seem to update to R 2.15
Using Ubuntu 12.02 Precise Penguin
I realise that debian packages are not updated regularly so I tried to follow the insructions at the R-site
So far, I have modified /etc/apt/sources.list to read
## R CRAN added 2012-06-12
deb http://probability.ca/cran/bin/linux/debian
2013 Mar 15
5
Data manipulation
Hello all,
I would appreciate your thoughts on a seemingly simple problem. I have a
database, where each row represent a single record. I want to aggregate this
database so I use the aggregate command :
D<-read.csv("C:\\Users\\test.csv")
attach(D)
by1<-factor(Class)
by2<-factor(X)
W<-aggregate(x=Count,by=list(by1,by2),FUN="sum")
The results I
2012 Aug 10
5
help error histograma
Hi,
My error isErro em hist.default(dados[[1]], freq = TRUE, seq(0, 30, 0.5), prob = FALSE, : some 'x' not counted; maybe 'breaks' do not span range of 'x'
hist(dados[[1]],seq(0, 30, 0.5), prob=TRUE, xlab="chuva (mm/dia)",ylab="frequĂȘncia", main="", cex.lab=1.6, cex.sub=3,cex.axis=3,cex.main=6)
Someone help me?
[[alternative
2012 May 08
4
Axes value format
Hi all,
I have some graphs where the values on the X and Y axes are by default
in exponent form like 2e+05 or 1.0e+07. Is it possible to make them in
a more readable form like 10M for 1.0e+07 or 200K for 2e+05?
Thanks and Regards,
- vihan
2013 Mar 08
4
create bar chart with different totals in a bar
Hello together,
perhabs anyone of you, has an ideal, how i can do this:
I have a matrix, like this one:
[,1] [,2] [,3]
[,4]
abnr2 11425 11425 11555 11888
TIME 2 1 1 2
Cat 1 2 1
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 Nov 09
9
lm function - strange error
I am following a document teaching how to use regression and right at the
onset I get an R error. I understand that variables "conc" and "signal"
should have the same length but I am using the what R manual suggests to
drop the error and it is not cooperating. What gives? The manual says
that the default is na.ombit by the way, not that it's addition does
anything
How
2012 Jul 07
11
Splitting a character vector.
I am lousy at simple regex and I have not found a solution to a simple problem.
I have a vector with some character values that I want to split.
Sample data
dd1 <- c( "XXY (mat harry)","XXY (jim bob)", "CAMP (joe blow)", "ALP (max jack)")
Desired result
dd2 <- data.frame( xx = c("XXY", "XXY", "CAMP",
2013 Mar 01
7
Conditional Weighted Average (ddply or any other function)
Hello R community,
I am computing weighted average statistic by using ddply function:
My data set is:
N1 T1 S1 I1 C1 FY-4 ROE11 EPS11 MKT11
N1 T1 S1 I1 C1 FY-3 ROE12 EPS12 MKT12
N1 T1 S1 I1 C1 FY-2 ROE13 EPS13 MKT13
N1 T1 S1 I1 C1 FY-1 ROE14 EPS14 MKT14
N1 T1 S1 I1 C1 FY0 ROE15 EPS15 MKT15
N1 T1 S1 I1 C1 FY1 ROE16 EPS16 MKT16
N1 T1 S1 I1 C1 FY2 ROE17
2012 Nov 02
4
Loop over several Variables, add on question
Hey everyone,
I have again a loop question:
After generating the dataset using Jan?s approach from my previous posting
(http://r.789695.n4.nabble.com/Loop-over-several-variables-td4648112.html) I
want to rename the Variables in the new dataset so that all y will be called
tiy. Doing it separately the following line works fine:
ti<-rename (ti,c(y5="tiy5"))
So I thought I simply
2012 Jul 02
5
ggplot: dodge positions
Dear all,
I want to get a series of boxplots (grouped by two factors) and I want to overlay the original observations and the following code does almost what I want:
library(ggplot)
ddf <- data.frame(x=factor(rep(LETTERS[1:4], each=30)), y = runif(120,0,10), grp = factor(rep(rep(1:3, 10), 4)))
ggplot(ddf, aes(x, y, colour=grp)) + geom_boxplot() + geom_point()
Yet the position of the points
2013 Apr 26
3
csv file with two header rows
Is there a way to use read.csv() on such a file without deleting one
of the header rows?
Thanks.
2013 Jun 03
2
delete active dataset
Hi All, whenever I open R using the shortcut on desktop, there are 2 active
datasets in the workspace, I tried to start the program from Start menu,
same thing!! How can I delete these two active datasets and make sure
whenever I restart the program, they wont appear?
Thanks!
[[alternative HTML version deleted]]
2012 Oct 01
3
(no subject)
Hello,
I am a new R -user and request your help for the following problem.
I need to merge two dataset of longitudinal study which has two column
(id and respose) common. when I used merge option to join the datas
side be side, because of the repeated subject id, I got larger data
set which is not accurate.
I would like to connect twi data sets by id and response in such a
way that data are
2012 Jun 12
6
Attempting to update from R 2.14 to 2.15
I am very new to Linux so I probably am doing something stupid but I cannot seem to update to R 2.15
Using Ubuntu 12.02 Precise Penguin
I realise that debian packages are not updated regularly so I tried to follow the insructions at the R-site
So far, I have modified /etc/apt/sources.list to read
## R CRAN added 2012-06-12
deb http://probability.ca/cran/bin/linux/debian squeeze-cran/
Issued
2013 Oct 30
1
ggplot2 - how to get rid of bar boarder lines
Hello!
I am using ggplot2:
ggplot(myplotdata, aes(x=att_levels, y=WTP)) +
geom_bar(stat="identity",fill="dark orange",colour="black",
alpha = 1,position = "identity") +
geom_text(aes(label=WTP),colour="black",size=4,hjust=1.1,position='dodge') +
coord_flip() +
xlab("") +