Displaying 6 results from an estimated 6 matches similar to: "reshape (a better way)"
2006 Aug 26
1
problems with loop
Dear all,
I am trying to evaluate the optimisation behaviour of a function. Originally
I have optimised a model with real data and got a set of parameters. Now I
am creating simulated data sets based on these estimates. With these
simulations I am estimating the parameters again to see how variable the
estimation is. To this end I have written a loop which should generate a new
simulated data
2006 Mar 07
1
How to change time zones?
Say you have a POSIX object that is in UTC. How do you change the
values to another timezone?
If I do this:
times <- strptime(times, "%H:%M:%S")
times1 <- as.POSIXct(times, tz="UTC")
times2 <- as.POSIXct(times, tz="CDT6CST")
times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only
was to change time zones to add seconds to POSIX objects?
2007 Jan 19
4
Newbie question: Statistical functions (e.g., mean, sd) in a "transform" statement?
Greetings listeRs -
Given a data frame such as
times
time1 time2 time3 time4
1 70.408543 48.92378 7.399605 95.93050
2 17.231940 27.48530 82.962916 10.20619
3 20.279220 10.33575 66.209290 30.71846
4 NA 53.31993 12.398237 35.65782
5 9.295965 NA 48.929201 NA
6 63.966518 42.16304 1.777342 NA
one can use "transform" to
2007 Oct 08
2
sort time
Hello, I have got the following problem:
> times <- c("02.07.2007", "03.07.2007","03.09.2007", "04.07.2007","05.07.2007")
> mode(times)
[1] "numeric"
> tim <- as.character(times)
> mode(tim)
[1] "character"
> sort(times)
[1] "02.07.2007" "03.07.2007" "03.09.2007"
2006 Mar 08
0
survival
Dear R-helpers,
We marked 6000 leaves from 5 SPECIES - 10 individuals/species - in two
different TREATMENTs: a control and a dry-plot from which 50% of
incoming precipitation was excluded. We followed those leaves for 42
months and noted the presence and absence at each visit. I then carried
out a Cox Harzard model to see differences in leaf mortality between
parcels and among species over time:
2010 Oct 12
6
List or matrix of object
Hi everyone.
Is it possible in R to create a matrix or a list (vector) or R object. For
instance, I have
f1 <- function(x) sqrt(x%*%x);
f2 <- function(x) (2x+1);
I would like to do something like
L <- List();
L[1] = f1;
L[2] = f2;
So, is there a way to create matrix or vector that can contains R object.
With regards,
Phil
--
View this message in context: