Displaying 11 results from an estimated 11 matches similar to: "R compare cells in one matrix"
2011 Aug 16
1
Write vector/matrix in a loop
Hello!
I'm trying to *save values* (*row and col*) in two matrices(1,m) or vectors.
I have a loop, where a get these values:
for(i in 144){
for(j in 73){
if(B4[i,j]==1){ # B4 is a matrix(73, 144)
row <- B4[i-(i-1),j]
col <- B4[i,j-(j-1)]
}
}
}
*How to save row and col?*
Thank you!
--
View this message in context:
2011 Jul 11
3
NetCDF, open *.nc
*Good day!*
I'm using Vista(x64) and R 2.13.0(x64) (with ncdf and RnetCDF packs)
*I have a problem:* I'm trying to open **.nc* file and I use this script
(http://r.789695.n4.nabble.com/Problem-downloading-and-opening-netcdf-file-td3046897.html#a3046965)
library(ncdf)
link <-
"http://ibis.grdl.noaa.gov/SAT/SeaLevelRise/slr/slr_sla_gbl_free_all_66.nc"
dest <-
2008 Jul 03
3
problem with lm and predict - no predictions made
Hi
I have a problem with lm and predict
I have
us
[1] 2789.53 3128.43 3255.03 3536.68 3933.18 4220.25 4462.83 4739.48
[9] 5103.75 5484.35 5803.08 5995.93 6337.75 6657.40 7072.23 7397.65
[17] 7816.83 8304.33 8746.98 9268.43 9816.98 10127.95 10469.60 10960.75
[25] 11685.93 12433.93 13194.70 13843.83
us.p
[1] 227.62 229.92 232.13 234.25 236.31 238.42 240.59 242.75 244.97
2007 Sep 21
1
Stats 101 : lm with/without intercept
I am puzzled at the use of regression. I have a categorical variable
ClassePop33000 which factors a Population variable into 3 levels. I want to
investigate whether that categorical variable has some relation with my
dependent variable, so I go :
lm(Cout.ton ~ ClassePop33000, data=ech2)
Call:
lm(formula = Cout.ton ~ ClassePop33000, data = ech2)
Residuals:
Min 1Q Median 3Q
2013 Mar 05
1
ggplot2: two time series with different dates in a single plot
Hi
Using the ggplot2 package, I would like to obtain a plot that contains two
time series that have data points on different dates.
For instance, one data frame looks like:
date1, value1
2010-01-05, 2921.74
2010-01-08, 2703.89
2010-01-14, 3594.21
2010-01-20, 3659.22
The other data frame looks like
date2, value2
2010-01-01, 285.85
2010-01-02, 229.20
2010-01-05, 333.91
2010-01-06, 338.27
2012 Sep 04
4
[LLVMdev] Clang/llvm performance tests on FreeBSD 10.0-CURRENT
Hi all,
I recently performed a series of compiler performance tests on FreeBSD
10.0-CURRENT, particularly comparing gcc 4.2.1 and gcc 4.7.1 against
clang 3.1 and clang 3.2.
The attached text file[1] contains more information about the tests,
some semi-cooked performance data, and my conclusions. Any errors and
omissions are also my fault, so if you notice them, please let me know.
The
2000 Jan 04
0
Stepwise logistic discrimination - II
I apologise for writing again about the problem with using stepAIC +
multinom, but I think the reason why I had it in the first place is
perhaps there may be a bug in either stepAIC or multinom.
Just to repeat the problem, I have 126 variables and 99 cases. I don't
know if the large number of variables could be the problem. Of couse the
reason for doing a stepwise method is to reduce this
2011 Nov 11
2
Estimating IRT models by using nlme() function
Hi,
I have a question about estimating IRT models by using nlme, not just rasch
model, but also other models.
Behavior Research Methods
<http://www.springerlink.com/content/1554-351x/> Volume
37, Number 2 <http://www.springerlink.com/content/1554-351x/37/2/>, 202-218,
DOI: 10.3758/BF03192688
Using SAS PROC NLMIXED to fit item response theory models (2005). Ching-Fan
2011 Nov 05
88
OpenSuse 11 hvm domU: screen resolution up to 640x480
Hello,
I''ve recently installed a hvm domU opensuse 11 guest and I cannot set the screen
resolution higher then 640x480. This seems very strange to me, because
I don''t have
any problem to set higher resolution on a windows 7 domU, using the
following parameters
in the configuration file:
stdvga=1
videoram=16
What could the problem be? Is some video driver missing?
--
Flavio
2011 Nov 05
88
OpenSuse 11 hvm domU: screen resolution up to 640x480
Hello,
I''ve recently installed a hvm domU opensuse 11 guest and I cannot set the screen
resolution higher then 640x480. This seems very strange to me, because
I don''t have
any problem to set higher resolution on a windows 7 domU, using the
following parameters
in the configuration file:
stdvga=1
videoram=16
What could the problem be? Is some video driver missing?
--
Flavio
2011 Aug 17
0
How to rotate a contour?
Hello!
I have a contour and I need *to rotate* it 180 degrees counterclockwise and
180 degrees around the x-axis.
This is a code. I get all the values from the ncdf file:
A = get.var.ncdf(nc, "air", start=c(1,1,1,1), count=c(144,73,1,1))
contour(A)
Thank you!
--
View this message in context: http://r.789695.n4.nabble.com/How-to-rotate-a-contour-tp3750710p3750710.html
Sent from the R