Displaying 20 results from an estimated 7000 matches similar to: "selecting ith rows of a matrix"
2010 Nov 08
1
RMark error: only 0's may be mixed with negative subscripts
Hi all,
I have just started using RMark to analyse capture-recapture data. I am
trying to analyse a simulated data set using the Robust Design (two primary
periods with three secondary sessions in each) to estimate apparent
survival. On specifying the time intervals (that tell R about the primary
and secondary sampling sessions), this is the error I get:
> time.int <- c(0,0,1,0,0)
>
2009 Oct 05
1
interpreting glmer results
Hi all,
I am trying to run a glm with mixed effects. My response variable is
number of seedlings emerging; my fixed effects are the tree species
and distance from the tree (in two classes - near and far).; my random
effect is the individual tree itself (here called Plot). The command
I've used is:
mod <- glmer(number ~ Species + distance + offset(area) + (1|Plot),
family = poisson)
2009 Mar 21
2
limiting simulated animal movement
Hi,
I am trying to simulate animal movement in a gridded landscape made up of
cells. At each time step (iteration), the animal moves from one cell to
another in a random fashion.
This is how I am simulating movement, where a and b are the x,y co-ordinates
of the animal at the previous time step:
for (i in 1:no.of.steps){
direction <- sample(1:8, 1)
if(direction == 1){
a <- a
b <- b -
2009 Apr 04
2
axis colours
Hi,
Is there a way to use par to change the colours of the axes lines (not the
labels)? I've done this:
par(bg = "black")
plot(x, y, col = "yellow", pch = 16)
but I have to use
axes = F within the plot command, and then use
axis (1, col = "yellow")
axis (2, col = "yellow")
and so on for axes 3 & 4.
This does not help since the new axes are not
2009 Nov 27
1
plotting two surfaces simultaneously in a single panel
Hi,
I have recently begun using the lattice package, and have been using
the wireframe command to visualise matrices which are model outputs. I
have been trying to plot two surfaces (from two matrices)
simultaneously in one panel, to visualise intersections etc., but
neither my attempts or trawling the net are helping me find how to do
this.
Can someone help? Thanks
Cheers,
Umesh Srinivasan
2009 Feb 20
4
adding a reference line to an xyplot
Hi,
I want to add a dashed vertical line to a number of xyplots.
Here is a simple script of the type of plot I have but then I want to add a
reference line to 1995 on each of the panels. I have tried panel.abline and
other suggestions on the forum but can't get it to work.
plot<-rep(letters[1:3],each=10)
year<-rep(1991:2000,times=3)
matter<-rep(seq(2,6.5,0.5),times=3)
2009 Apr 16
3
Digitizing the Plot
Hi R,
Wanted to check if there are any packages available for getting the
(x,y) data points of a graph or a plot, which is in the image format.
Say, the plot could be a published report, and I want to get the points
of the curve plotted. (I am speaking something related the subject
discussed in http://www.uniphiz.com/digitizing.htm)
Thanks,
Shubha
This e-mail may contain
2004 Jul 28
6
elegant matrix creation
Hello everybody.
I am trying to reproduce a particular matrix in an elegant way. If I
have
jj1 <-
structure(c(1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,
3,1,2,3,1,2,3,1,2,3,2,3,1,2,3,1,2,3,1,2,3,
1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,3,1,2,3,1,
2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,
2),.Dim = as.integer(c(9,9)))
[ image(jj1) is good here ] then I can get this with
2008 Nov 05
3
Efficient way to fill a matrix
Dear R experts,
Suppose I have a data frame of three variables:
> foo <- data.frame(row=1:5, col=1:3, val=rnorm(15))
> foo
row col val
1 1 1 -1.00631642
2 2 2 0.77715344
3 3 3 0.17358793
4 4 1 -1.67226988
5 5 2 1.08218836
6 1 3 1.32961329
7 2 1 -0.51186267
8 3 2 -1.20990127
9 4 3 -0.57786899
10 5 1 0.67102887
11 1 2
2007 Oct 17
0
Best sotphne to se ith a BlueTooth Hadset, a PC and a USB dongle
Hello everyone.
I recently boght a Nokia BH900 headset and USB bluetooth dongle and I'd
like to use them to make calls from a sofphone. I managed to this with
boxe XTen-Lite and the Zoiper - but they both see the device as a simple
sound card through the BlueSoleil drivers. While this is allmost usable,
the headphone seems to be kept in "transmission" mode all the time and I
get
2015 Nov 26
2
openmp ith llvm
Dear all,
I'm trying to get openmp to work with llvm, either with static compiler or with jit, however with no success.
I've followed this:
http://blog.llvm.org/2015/05/openmp-support_22.html
[http://llvm.org/img/DragonSmall.png]<http://blog.llvm.org/2015/05/openmp-support_22.html>
LLVM Project Blog: OpenMP Support
OpenMP support in Clang compiler is completed! Every pragma and
2006 Nov 08
0
Problem ith file_column
Hi,
I am facing a serious problem with file_column plugin. Though it is
absolutely fine while uploading images, and the way it uploads the
image on the file system and stores the file name in a database table
is awsome. But while I try to get the image by passing its ID,
surprisingly it returns the full absolute path rather than the image
name! I would like to give a littel more description about
2003 Jun 30
0
Constructing loops in which i+1st element depends on ith
I feel greedy posting for help twice in one day- please forgive me, but the
thesis can't wait.
I have been trying to get an ?if
else? statement working in a loop I am
writing, in which I specify a variable value to 9.2 (Wo) on the first
iteration, but for subsequent iterations, to adopt a value as a function of
variables from the previous iteration.
When I comment out the ?if
else?
2009 Apr 14
2
subset dataframe by rows using character vector?
Dear List,
I'm stuck on what seems like a simple indexing problem, I'd be very grateful to anyone willing to help me out.
I queried a dataframe which returns a character vector called "plot". I have another dataframe from which I want to subset or select only those rows that match "plot". I've tried subset, and also the "which" command.
plot
2015 May 22
2
[LLVMdev] GCC compatibility code coverage issue .
Hi Justin ,
Thank you for the confirmation and we would like to know that ,going
forward the clang has the support the gcc gcov format or use the
-fprofile-instr-generate -fcoverage-mapping and get ride of gcov
format .
We are planing to customize the clang code coverage for embedded world
,before we start tweaking the gcov / -fprofile-instr-generate
code-base ,we would like to take feedback
2008 Feb 20
4
plotting every ith data point?
Hello, fellow R enthusiasts.
Ok, I've been racking my brain about this small issue, and between
searching the help archives and reading through the plot-related
documentation, I can't figure out how to achieve my desired endpoint
without some ugly, brute force coding.
What I would like to do is make a plot in which only a subset of my
data are plotted, but in regular intervals, such as
2017 May 30
2
Communication between Clang Sema and the Clang Codegen...
Hi All,
We have populated info in the Clang Sema i.e class Sema
(include/clang/Sema/Sema.h) and like to propagate the same to Clang
Codegen .
Currently we are propagating through ASTContext ,where we have
duplicating fields info and operation in the Sema and ASTContext .
Any better way of doing the same ?
Thank you
~Umesh
2015 May 27
0
[LLVMdev] GCC compatibility code coverage issue .
Umesh Kalappa <umesh.kalappa0 at gmail.com> writes:
> Hi Justin ,
>
> Thank you for the confirmation and we would like to know that ,going
> forward the clang has the support the gcc gcov format or use the
> -fprofile-instr-generate -fcoverage-mapping and get ride of gcov
> format .
Going forward, the -fprofile-instr-generate -fcoverage-mapping (which
I'll refer to as
2015 Apr 28
4
[LLVMdev] GCC compatibility code coverage issue .
Hi All,
We trying to use clang+llvm to generate the gcc coverage format as
clang version 3.6.0
$clang --coverage -Xclang -coverage-cfg-checksum -Xclang
-coverage-no-function-names-in-data -Xclang -coverage-version='407*'
test.c
$a.out
$llvm-cov gcov test.gcda
Unexpected version: *704.
Invalid .gcno File!
Debugging the above cause ,But any hints from experts here ,will help a lot
2013 Nov 13
2
[LLVMdev] SchedMachineModel clarifications
Dear Andrew and the Group,
I’m trying come up with a SchedMachineModel for the AMD bulldozer
http://en.wikipedia.org/wiki/Bulldozer_(microarchitecture).
The model is not exist for the same .Please correct me if am i wrong here.
I was going through your reference @
https://llvm.org/svn/llvm-project/llvm/trunk/include/llvm/Target/TargetSchedule.td
.
But I couldn’t model some of the