Displaying 20 results from an estimated 40000 matches similar to: "If loops"
2009 Apr 06
1
package: maps and spatstat question
I would like to use the output from the map function
in the package maps for use in, say, the spatstat
package. I don't quite understand the coordinates
for the border of the state:
Example:
library(maps)
iowa<-map("region","iowa)
x<-iowa$x
y<-iowa$y
There are NA's and duplicated coordinates.
What would I need to do to use this in the
spatstat owin command?
2006 Feb 08
2
slightly off-topic re prcomp()
Hi,
I was wondering if anyone could tell me why prcomp() will "Invent" modes
of variation in a PCA on identical replicates of data? I would have
expected 50 (or whatever number) of identical replicates to return a null
score in such an analysis (or at the least, all variables would share the
same PC score). This is not the case and I was wondering could someone
point me in the direction
2004 Oct 03
3
Excluding data in R
I was hoping someone could help me!
How do you exclude outliers from a set of data?
Thanks,
Laura
[[alternative HTML version deleted]]
2009 May 22
1
Goodness of fit in quantile regression
Dear R users,
I've used the function qr.fit.sfn to estimate a quantile regression on a
panel data set. Now I would like to compute an statistic to measure the
goodness of fit of this model.
Does someone know how could I do that? I could compute a pseudo R2 but in
order to do that I would need the value of the objetive function at the
optimum and I don't see how to get this from the
2011 Jul 06
2
time zone issue - beginners question
Hello all!
As beginner I'm struggling for a while with time zones issue and can't find
a suitable solution.
I would be grateful for any help.
Dataset imported from excel has a variable transplant.date which has been
recorded with CET time zone.
> subDataset$transplant.date
[1] "2000-01-01 CET" "2000-01-01 CET" "2000-01-02 CET" "2000-01-02 CET"
2004 Jun 29
1
abline and its objects
Hi R People:
Is there a way to put an abline line for its objects on a plot, please?
I have an its object, ibm2, which runs from the January 2 through May 28.
>ibm2
ibm
2004-01-02 91.55
2004-01-05 93.05
2004-01-06 93.06
2004-01-07 92.78
2004-01-08 93.04
2004-01-09 91.21
2004-01-12 91.55
2004-01-13 89.70
2004-01-14 90.31
2004-01-15 94.02
.
.
.
I plot the data. No
2007 Feb 08
1
Point estimate from loess contour plot
Hi,
I was wondering if anyone knows of a way by which one can estimate values
from a contour plot created by using the loess function? I am hoping to
use the loess contour plot as a means of interpolation to identify
the loess created values at points at pre-defined (x,y) locations.
Could anyone point me in the right direction please?
Thanks.
Laura Quinn
Institute of Atmospheric Science
School
2010 Apr 18
3
loops and if statements
Hello,
I am very new to R and data analysis in general.
I am trying to generate values to append to my data frame using
conditional statements.
I am playing with this simple example:
a <- c(1:4)
b <- c("meep", "foo", "meep", "foo")
d <- cbind(a, b)
now what I want to do is , each time there is a "meep" in column 2 of
d, print
2017 Nov 14
2
SAMBA4 API
by modify I mean add, change and/or remove DNS records (depending on the
values passed to the API).
Also, yes I mispoke, we would only be modifying the records on one DC, and
replication would take care of the rest.
On Mon, Nov 13, 2017 at 11:17 AM, Rowland Penny via samba <
samba at lists.samba.org> wrote:
> On Mon, 13 Nov 2017 11:07:28 -0600
> Taylor Hammerling via samba <samba
2003 Oct 07
4
Beginner's query - segmentation fault
I am dealing with a huge matrix in R (20 columns, 54000 rows) and have
lots of missing values within the dataset which are currently displayed as
the value "-999.00" I am trying to create a new matrix (or change the
existing one) to display these values as "NA" so that I can then perform
the necessary analysis on the columns within the matrix.
The matrix name is temp and the
2012 Jul 09
3
Predicted values for zero-inflated Poisson
Hi all-
I fit a zero-inflated Poisson model to model bycatch rates using an offset term for effort. I need to apply the fitted model to a datasets of varying levels of effort to predict the associated levels of bycatch. I am seeking assistance as to the correct way to code this.
Thanks in advance!
Laura
[[alternative HTML version deleted]]
2009 Feb 03
3
non linear regression with nls
Hello,
I'm a beginner with R and it's the first time I'm using the R-help list... I hope I'm in the right place, if not:
Sorry!!
I need to do non linear regressions on a data set which columns are:
"river.name" "Portata" "PTG.P" "PO4.P" "NT.N" "NH4.N" "NO3.N" "BOD5" "SiO2"
2018 May 08
0
Dinamic variables in loop
Dear Laura,
It looks like you want to remove all rows for which each column is NA.
You can to that with the code below.
na.matrix <- is.na(MyData)
all.na.row <- apply(na.matrix, 1, all)
MyData[!all.na.row, ]
Best regards,
ir. Thierry Onkelinx
Statisticus / Statistician
Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE
AND
2004 Nov 14
2
Exporting to file: passing source name to file name in loop
Hi,
I'm having a mental block as to how I can automatically assign filenames
to the output of the following code. I am wishing to create a separate
.png file for every image created, each of them having a sequential
filename ie "sourcefile_index.png" so that I can create a movie from
them.
Please could someone tell me where I am going wrong?
the following code works fine and
2005 Feb 16
4
Passing colnames to graphics title
Hi,
Just a quick query - if I'm creating a function to produce a number of
histograms per page of output (one per column from a matrix), how can I
pass the column name of the matrix into the title (or indeed to form part
of the x-axis label)?
TIA,
Laura
Laura Quinn
Institute of Atmospheric Science
School of Earth and Environment
University of Leeds
Leeds
LS2 9JT
tel: +44 113 343 1596
fax:
2019 Apr 11
1
failed: read(/var/run/dovecot/dns-client)
??????? Original Message ???????
On Thursday, April 11, 2019 9:05 AM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:
> > On 11 April 2019 11:02 Laura Smith via dovecot dovecot at dovecot.org wrote:
> > ??????? Original Message ???????
> > On Thursday, April 11, 2019 12:55 AM, John Fawcett via dovecot dovecot at dovecot.org wrote:
> >
> > > On 11/04/2019
2005 Mar 01
3
Reconstructing Datasets
Hi,
Is it possible to recreate "smoothed" data sets in R, by performing a PCA
and then reconstructing a data set from say the first 2/3 EOFs?
I've had a look in the help pages and don't seem to find anything
relevant.
Thanks in advance,
Laura
Laura Quinn
Institute of Atmospheric Science
School of Earth and Environment
University of Leeds
Leeds
LS2 9JT
tel: +44 113 343 1596
2019 Apr 11
1
failed: read(/var/run/dovecot/dns-client)
??????? Original Message ???????
On Thursday, April 11, 2019 9:01 PM, John Fawcett via dovecot <dovecot at dovecot.org> wrote:
> On 11/04/2019 10:02, Laura Smith via dovecot wrote:
>
> > ??????? Original Message ???????
> > On Thursday, April 11, 2019 12:55 AM, John Fawcett via dovecot dovecot at dovecot.org wrote:
> >
> > > On 11/04/2019 00:51, Laura Smith
2011 Apr 12
2
a question on the use of 'solve'
Dear R users,
I am in trouble using the function
solve(matrix)
in a loop.
When it happens that I have a singular matrix, I get an error message saying
so and the loop stops.
My question is if there in any way to keep on going in the loop.
Thank you in advance,
Laura
*---------------------------------------------------------*
Laura Antolini, PhD
Department of
2017 Dec 12
1
Can't access DNS from RSAT
Daniel, I could kiss you :D I am using the default SSL certs in samba.
I tried connecting to the new DC using it's FQDN instead of it's IP, and
BAM, it connected just fine. Couldn't really tell you why, but as long as
I can access it I'm happy!
On Tue, Dec 12, 2017 at 11:20 AM, Daniel Carrasco <d.carrasco at i2tic.com>
wrote:
> Are you using the default ssl certs in