Displaying 20 results from an estimated 2000 matches similar to: "Constructing loops in which i+1st element depends on ith"
2003 Jul 14
2
problem with coding for 'optim' in R
Hi, there
I am a graduate student new to coding in S who is hitting a bit of a wall
at present using an "optim" function. I am running into some troubles, and
was hoping someone might be able to recognize where I am going wrong.
As background: I have constructed a loop that carries out a 365-day
calculation for a mass-balance model. Basically, the model depends on 2
variables (p,
2003 Jul 01
1
Creating a loop that works....
Hi there,
First off, thanks to everyone who has helped me so far. Sorry to keep
pestering you all.
I'm including my code here, and I will comment down it where it is that I am
having problems figuring out how to write this damn thing.
> temper <- scan("temp2.dat", na.strings = ".", list(Day=0, Temp=0))
Read 366 records
>
> Day <- temper$Day ;
2003 Jul 15
7
Excel can do what R can't?????
Hi there
I thought this would be of particular interest to people using 'optim'
functions and perhaps people involved with R development.
I've been beaten down by R trying to get it to perform an optimization on a
mass-balance model. I've written the same program in excel, and using the
'solver' function, it comes up with an answer for my variables (p, ACT,
which
2003 Jul 01
2
strange error message
Hi, there
I have a loop that is producing data, but is also generating an error message
that I can't understand.
Here's the loop and the error message:
> bio<-matrix(NA, ncol=9, nrow=366)
> W<-NULL
> M<- length(Day) #number of days iterated
>
> for (i in 1:M)
+ {
+
+
+ if (Day[i]==1) W[i] <- Wo else W[i] <- (W[i-1]+(Gr[i]/Ef))
+
+
+ C<-
2003 Jun 30
3
if else statements in R
Hi, there
I am a grad student struggling to get my syntax right in a model I am
building in R.
I am trying to specify a variable,W, in a loop, such that on the first
iteration, it is equal to Wo, my starting value, which I have already
specified with
Wo<-9.2
On any other iteration other than the first, I want W to equal the
previous value of W in the iteration. plus an increment from
2019 Jun 11
1
[PATCH 1/2] drm/nouveau/kms/gf119-: add ctm property support
This adds support on GF119:GV100 (exclusive) for CTM (aka CSC).
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 ++
drivers/gpu/drm/nouveau/dispnv50/base907c.c | 65 +++++++++++++++++++++
drivers/gpu/drm/nouveau/dispnv50/wndw.c | 13 +++++
drivers/gpu/drm/nouveau/dispnv50/wndw.h | 4 ++
4 files changed, 88 insertions(+)
2011 Jan 20
4
How to reshape wide format data.frame to long format?
Dear list,
I need to convert this data.frame
> names(codesM)
[1] "key" "AMR.pa1.M" "AMR.pa2.M" "AMR.pa3.M" "AMR.pa4.M"
[6] "AMR.pa5.M" "AMR.pa6.M" "AMR.pa7.M" "AMR.pa8.M" "AMR.pa9.M"
[11] "AMR.pa10.M" "AMR.ta1.M" "AMR.ta2.M" "AMR.ta3.M"
2019 Jun 12
0
[PATCH v2] drm/nouveau/kms/gf119-: add ctm property support
This adds support on GF119:GV100 (exclusive) for CTM (aka CSC).
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
v1 -> v2:
- ctm -> csc
- mark csc.valid = false when there is no ctm property
drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 ++
drivers/gpu/drm/nouveau/dispnv50/base907c.c | 65 +++++++++++++++++++++
drivers/gpu/drm/nouveau/dispnv50/wndw.c | 16 +++++
1996 Jun 13
0
NEW ctm-gnats: GNATS bug reports via CTM
A new serive is available from FreeBSD.ORG:
GNATS updates and bug-reports via the CTM email software update tool.
These are *not* bug fixes. These are the bug reports submitted
to FreeBSD by its user community.
GNATS is a bug-tracking tool designed for use at a central support
site. Software users who experience problems report those problems
through electronic mail to the the maintainers of
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
2009 Apr 29
3
selecting ith rows of a matrix
Hi all,
If I have a huge matrix/ dataframe and I want to create a new matrix/
dataframe with every second (or third, or fourth etc.) row of the original
matrix, how can I do it? Any help much appreciated.
Thanks,
Umesh
[[alternative HTML version deleted]]
1995 Feb 27
0
CTM, delta from 2.0-RELEASE available
I have made a delta from the 2.0-RELEASE srcdist available in
ftp://freefall.cdrom.com/pub/CTM/src-cur/src-cur.0372R20.gz
-rw-r--r-- 1 phk wheel 4034596 Feb 27 15:37 src-cur.0372R20.gz
If you already have the 2.0-RELEASE (either on CDROM or downloaded) you
can use this to get in sync with CTM src-cur.
--
Poul-Henning Kamp <phk@login.dknet.dk>
TRW Financial Systems, Inc.
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
2008 May 14
0
Samba Mashup Report (#2) for Wednesday, May 14, 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
** [SMR] Samba Mashup Report (#2) for Wednesday, May 14, 2008 **
Table of Contents:
1. Samba 3.2.0 Moves closer to Release
2. Bug fix release for Samba 3.0 in the works
3. Developer Interests - Volker Lendecke
4. Samba at Connectathon
5. Samba4 - Fact or Fantasy?
6. Call for submissions and summaries
2008 May 14
0
Samba Mashup Report (#2) for Wednesday, May 14, 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
** [SMR] Samba Mashup Report (#2) for Wednesday, May 14, 2008 **
Table of Contents:
1. Samba 3.2.0 Moves closer to Release
2. Bug fix release for Samba 3.0 in the works
3. Developer Interests - Volker Lendecke
4. Samba at Connectathon
5. Samba4 - Fact or Fantasy?
6. Call for submissions and summaries
2004 Jul 29
1
Kudos to the R support team
Hi there,
I just wanted to take a quick second to thank everyone who maintains this
service- just in case you don't hear it enough, there are a plethora of people
who rely on this service (as evidenced by the help archives), and even if they
don't say it, are greatly thankful for what you do here. Not only are you
providing a service to people who are learning R, but indeed helping
2007 Nov 18
2
[Bug 13293] New: _cairo_pen_find_active_cw_vertex_index failed assertion
http://bugs.freedesktop.org/show_bug.cgi?id=13293
Summary: _cairo_pen_find_active_cw_vertex_index failed assertion
Product: swfdec
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: library
AssignedTo: swfdec at lists.freedesktop.org
2007 Jan 23
1
How to evaluate an lm() object for generating warning statement in a function
Hi, there
I tried this post on R-help but did not generate any replies, so I thought
I might try the waters here since it's a more programming-based group.
I have written a function that will allow me to calculate the variance
components for a model II (random effects) single factor ANOVA (perhaps
this is
me re-inventing the wheel, but I handn't yet come across anything in R that
does