Displaying 20 results from an estimated 4000 matches similar to: "PLot a matrix"
2012 Jul 17
2
order or sort doesn´t work properly
Hi all,
I want to order a series that is included on the second column in MCT.csv.
I do but R doesn?t order, could be because is a csv?
I have prove
MCT<-read.csv("MCT.csv")
a<-order(MCTor[,2],2,decreasing = FALSE)
a<-order(MCTor[,2],1,decreasing = FALSE)
or the same with sort but didn?t worked.
It is suposed that a will have the ordered on ascending or descending
2012 Feb 28
3
Database
Hi all,
I´m new using Access. I see that many things that you can do on Access you
can do on CRAN R but not on contrary.
My question is: Is there any manual with examples comparing how to do data
base analysis on access and making the same on CRAN R?
Imagine I want to compare two columns "Name" of two different data bases. I
want to see if there are "identical" names on both
2011 Jul 02
5
How many times occurs
Hi all,
I have a data matrix likein "input.txt"
8 9 2 5 4 5 8 5 6 6
8 9 2 8 9 2 8 9 2 1
8 9 2 5 4 5 8 5 6 4
8 9 2 5 4 5 8 5 6 6
8 9 2 8 9 2 8 9 2 1
8 9 2 5 4 5 8 9 2 2
In this example will be an 6x10 matrix (or data frame)
I want to detect how many times in a row appears this combination 8 follewd
by 9 followed by 2, and create a new matrix with only this number of occurs
then
2011 Jun 29
2
Executing a script "hand-made" and time
Hi all,
I have a function written by me that read a matrix (data frame) from a txt
with 4 million of rows and 13 columns.
The think is my function works with an input matrix of 100x13 and now I
tried to execute my function with the big "input file" and it is running
form the moment two hours...
There is a way to know (how much time could it cost?)
The second question is...
I want
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 ??? ??? ??? ??? ???
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 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,
2005 Jun 14
1
using forecast() in dse2 with an ARMA model having a trend component
(My apologies if this is a repeated posting. I couldn't find any trace
of my previous attempt in the archive.)
I'm having trouble with forecast() in the dse2 package. It works fine
for me on a model without a trend, but gives me NaN output for the
forecast values when using a model with a trend. An example:
# Set inputs and outputs for the ARMA model fit and test periods
2010 Oct 04
2
Combinations
Hi all,
I´ve been ill and I have lost a lot of time without seen the pc.
I want you to help if you can if you want.
Only I need an initial guide. I´ve been out a lot of time and I need a hope.
Is only for "joby" purposes.
The problem:
I want to simulate each of the posible combination in a play. Imagine they
play to games (football games) and you can choose "1",
2010 Nov 23
2
Reading parts of data files
Dear,
I'm doing analysis where I need to work on relatively large (50-60 MB)
text files, though I'm really interested only in parts with binary
variables (named indicators1, indicators2, ... etc.)
Every text file contains other numeric columns, but not always the same
and not always in the same order - therefore I would rather need a
method connecting to file and reading only colums with
2010 Oct 28
2
times
Hi! I have an input table with a column "Dates" in the format
"month/day/year" (eg. "5/11/1999" and a column "Times" in the format
"hours/minutes" (eg. "15:20"). In R I need to convert them into chron
objects to extract colums only containing months, days, minutes, ..
For the dates it is no problem if I write:
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
2006 Jan 03
2
KALMAN FILTER HELP
Hi All,
Currently I'm using DSE package for Kalman Filtering. I have a dataset
of one dependent variable and seven other independent variables. I'm
confused at one point. How to declare the input-output series using
TSdata command. Because the given example at page 37 showing some error.
rain <- matrix(rnorm(86*17), 86,17)
radar <- matrix(rnorm(86*5), 86,5)
mydata <-
2006 Jul 06
2
KPSS test
Hi,
Am I interpreting the results properly? Are my conclusions correct?
> KPSS.test(df)
---- ----
KPSS test
---- ----
Null hypotheses: Level stationarity and stationarity around a linear trend.
Alternative hypothesis: Unit root.
----
Statistic for the null hypothesis of
level stationarity: 1.089
Critical values:
0.10 0.05 0.025 0.01
0.347 0.463
2012 May 10
1
Error t value matrix
Hi all,
I want to make the following:
I want to run a linear regression on each column of a matrix "estima" on
the correspondent column on the matrix "estima2".
You see I want to regress estima[,1] on estima2[,1] this way to all
columns....
At the same time I want to make a regression adding each time a new
observation.
You see, the first regression will regress only one
2006 Jun 26
2
converting to time series object : ts - package:stats
Hi,
I am trying to convert a dataset (dataframe) into time series object using ts function in stats package. My dataset is as follows:
>df
[1] 11.08 7.08 7.08 6.08 6.08 6.08 23.08 32.08 8.08 11.08 6.08 13.08 13.83 16.83 19.83 8.83 20.83 17.83
[19] 9.83 20.83 10.83 12.83 15.83 11.83
I converted this into time series object as follows
>tsdata <-
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,
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
2011 Nov 22
1
Varma models in the dse package
Hi,
I tried to run the VARMA model in the dse package. I specified a model:
> arma
A(L) =
1+0.244L1 0+0.05L1
0-0.325L1 1-0.234L1
B(L) =
1-0.277L1 0+0.211L1
0-0.206L1 1+0.238L1
and have a TSdata object:
> dfdata
output data:
Series 1 Series 2
1 "difex2" "difem2"
but I get this warning message:
> estMaxLik(arma, dfdata)
Error in