Displaying 20 results from an estimated 200 matches similar to: "a complicated merging task"
2013 Apr 13
2
Comparison of Date format
Hi,
?In the example you provided, it looks like the dates in Date2 happens first.? So, I changed it a bit.?
DataA<- read.table(text="
ID,Status,Date1,Date2 ??? ??? ??????
1,A,3-Feb-01,15-May-01 ??? ???
1,B,15-May-01,16-May-01 ??? ???
1,A,16-May-01,3-Sep-01 ??? ??? ??? ??? ???
1,B,3-Sep-01,13-Sep-01 ??? ??? ??? ??? ???
1,C,13-Sep-01,26-Feb-04 ??? ??? ??? ??? ???
2013 Jan 18
2
A smart way to use "$" in data frame
Hello all,
I have a data frame dataa:
newdate newstate newid newbalance newaccounts
1 31DEC2001 AR 1 1170 61
2 31DEC2001 VA 2 4565 54
3 31DEC2001 WA 3 2726 35
4 31DEC2001 AR 3 2700 35
The following gives me the balance of state AR:
2009 Jun 09
2
is it possible to combine multiple barplots?
i am working with two sets of likert scale type (4 distinct values) data:
dataA <- rep(1:4, c(3,2,2,4))
dataB <- rep(1:4, c(5,4,3,2))
i can now (bar)plot both of these separately and compare the distributions.
plot(table(dataA), type='h')
plot(table(dataB), type='h')
is there a way to plot both of them in one plot, so that the bars for
value "1" (dataA: 3,
2008 Sep 17
2
adding rows to table
Greetings everyone,
I'm trying to add a specific table or a specific number of rows (e.g.44) to a table with no success.
This is my basic table
> head(dataA)
year plot spp prop.B DCA1 DCA2 DCA3 DCA4
1 2000 1 a1 0.031079 -0.0776 -0.0009 0.0259 -0.0457
2 2000 1 a2 0.968921 -0.0448 0.1479 -0.1343 0.1670
3 2000 2 a1 0.029218
2013 Jan 22
6
plot two time series with different length and different starting point in one figure.
Hello,
I do have two different time series A and B, they are different in length and starting point. A starts in Jan, 2012 and ends in Dec, 2012 and B starts in March, 2012 and ends in Nov, 2012.
How can I plot those two series A and B in the same plot? I.E., from Jan. 2012 - Feb, 2012, it would have one data point from A and from Mar, 2012-Nov, 2012, it would have two data points from A and B,
2009 Jul 08
3
matching each row
I have two dataframes, the first column of each dataframe is a unique id
number (the rest of the columns are data variables).
I would like to figure out how many times each id number appears in each
dataframe.
So far I can use:
length( match (dataframeA$unique.id[1], dataframeB$unique.id) )
but this only works on each row of dataframe A one-at-a-time.
I would like to do this for all of
2013 Jan 16
1
dendrogram stops!
Dear I am using the 'as.dendrogram' function from the 'stats' library to convert from an hclust object to a dendrogram with a dataset of size
~30000 (an example code is below). I need the dendrogram structure to
use the "dendrapply" and "attributes" functions and to access the child
nodes, I do not need any of the plot properties.
The problem is that it
2012 May 17
1
using XML package to read RSS
Hi,
I'm trying to use the XML package to read an RSS feed. To get
started, I was trying to use this post as an example:
http://www.r-bloggers.com/how-to-build-a-dataset-in-r-using-an-rss-feed-or-web-page/
I can replicate the beginning section of the post, but when I try to
use another RSS feed I have an issue. The RSS feed I would like to
use is:
> URL <-
2002 Apr 15
8
Problem
Hello! If I have a matrix as 1 2
2 3
and I want to change the value 2 in 0, what can I do?
Thank you
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 !)
2008 Jun 06
2
write.table() error
Hi,
I got following error in write.table() :
> write.table(dataa, file="c:/data1.csv", row.names=F, col.names=T, sep=",")
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'c:/data1.csv': Permission denied
2011 Feb 04
1
Error in solve.default(inf, tol = tol.solve) :
Hello,
I'm trying to run a lagsarlm (maximum likelihood estimation of a spatial lag model) in the spdep library ; but R gives following error message:
Error in solve.default(inf, tol = tol.solve) :
system is computationally singular: reciprocal condition number = 4.20137e-12
I get the same message when I try to run de lagsarlm with a bigger data set (4333 regions).
The command
2006 Oct 12
2
Too Many Mysql connections
In my app, for three models: foo,bar and baz, the database connection
is made to a different database and hence in model code:
class Foo < ActiveRecord::Base
establish_connection :diff_database
end
class Bar < ActiveRecord::Base
establish_connection :diff_database
end
class Baz < ActiveRecord::Base
establish_connection :diff_database
end
Now, the problem is, if is use the above
2003 Mar 17
1
Error in making R-1.6.2.
I have just tried to update the version of R on our system, and when
I did ``make'', I got the following error message:
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c platform.c -o platform.o
In file included from /usr/include/netinet/in.h:41,
from
2009 Jun 18
1
simple question on glm
Hi,
I am trying to use glm to fit my data, wondering if there is a easy way to
fit a glm without typing all the explanatory variable names. For example, if
I have 100 explanatory variables x1, x2, ..., x100 and response variable is
y, I don't want to do something like
glm1 <- glm(y ~ x1 + x2 + ... + x100, family = gaussian, data = dataA)
since it would be a lot of typing.
Many thanks,
2005 Sep 22
1
R2WinBUGS: Data loading error
Hi R-Help!
I am trying to use R2WinBUGS but I get the following error message in WinBUGS
(and there must be something wrong with my R statement as I tried it directly in
WinBUGS and it worked):
display(log)
check(C:/Documents and Settings/Daikon/Roche/pop_model.txt)
model is syntactically correct
data(C:/Documents and Settings/Daikon/Roche/data.txt)
expected key word structure
compile(7)
...(and
2012 May 06
3
PLot a matrix
Hi,
I want to plot this matrix (I attach the data), it is suposed that each
column is a different time series.
If I do
g<-read.table("dataADF.txt", header=F)
and
plot(g[,1],type="l")
it plots the first column plot if I want in a unique graph each colums of
dataA, all in one. How should I proceed?There is a direct pre-defined code?
And If I wanted a plot by each
2007 Jul 29
2
write.csv
Hi,
I want to save an array(say, array[6,7,8]) write a cvs file. How can I do
that??? can I write in one file?
if I could not write in one file, i want to use a loop to save in different
files (in the array[6,7,8], should be 8 csv files), such as the filename
structure should be: file ="filename" +str(i) +"." +"csv"
Many thanks.
[[alternative HTML version
2012 Nov 06
1
Multinomial MCMCglmm
Thanks for your answers Stephen and Ben,
I hope I am posting on the correct list now.
I managed so far to run the multinomial model with random effect with the
following command:
MCMCglmm(fixed=cbind(Apsy,Mygl,Crle,Crru,Miag,empty) ~
habitat:trait,random=~idh(trait):mesh,family="multinomial12",
data=dataA,rcov=~trait:units)
(where multiple responses are different species,
Habitat
2005 Sep 15
2
Help on RealTime Extensions on Oracle DB
Does someone here configured RealTime Extensions using
ODBC connecting to Oracle DB? Im having a problem in
dialplan patterns, it doesnt work. Pls. help!
-Chris
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
2006 Oct 10
6
"MySQL server has gone away" with Apache 2.2 + Mongrel cluster
Hi
I just setup a server (Apache 2.2, mod_proxy_balancer, mongrel_cluster) with
2 Rails applications according to this excellent Post:
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you
Everythings works great, but after a long inactive period (say one night),
the first 3 connections allways get an Error 500
Excerpt from production.log:
...