Displaying 20 results from an estimated 657 matches for "datum".
2012 Aug 07
2
What is this called? lapply(datum,"[[","ColumnName")
Hello R users
I recently learned how to use this command:
lapply(datum,"[[","ColumnName")
Unfortunately, I don't know how exactly it works, what it's called (in
particular the "[[" part], and what other things you can do with it
(retrieve multiple columns?).
Given datum is a list of dataframes with the same column, but diffe...
2010 Jul 06
1
information reduction-database management question
...ve.
site <- c("s1", "s1", "s1", "s2","s2", "s2")
pref <- c(1, 2, 3, 1, 2, 3)
R1 <- c(NA, NA, 1, NA,NA,NA)
R2 <- c(NA, 0, 1, 1, NA, 1)
R3 <- c(NA, 1, 1, NA, 1, 1)
R4 <- c(0, NA, 0, 1, NA, 0)
R5 <- c(NA, 0, 1, NA, 1, 1)
datum <- data.frame(site, pref, R1, R2, R3, R4, R5)
## For 1 column;
datum$R1[is.na(datum$R1)==T]<-5
tapply(datum$R1, datum$site, min, na.rm=T)
## Can loop this over all columns;
new<-matrix(0,5,2)
for (i in 3:7)
{datum[,i][is.na(datum[,i])==T]<-5
new[i-2,]<-tapply(datum[,i], datum$site...
2014 Dec 12
2
Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
Anna Crepes: Traubenzucker
+ Feldsalat spezielles Dressing (bringt selbst mit?)
-------- Weitergeleitete Nachricht --------
Betreff: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
Datum: Thu, 11 Dec 2014 15:34:39 +0100
Von: Markus <universe at truemetal.org>
An: universe at truemetal.org
Geschenke Moritz: dunkle Schokolade.
Geschenke Anna: normale Schokolade.
-------- Weitergeleitete Nachricht --------
Betreff: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
Datum: Wed, 10 Dec 2014 05...
2011 Nov 30
2
nls help
Hello,
I have data like the following:
datum <- structure(list(Y = c(415.5, 3847.83333325, 1942.833333325,
1215.22222233333,
950.142857325, 2399.5833335, 804.75, 579.5, 841.708333325, 494.053571425
), X = c(1.081818182, 0.492727273, 0.756363636, 0.896363636,
1.518181818, 0.499166667, 1.354545455, 1.61, 1.706363636, 1.063636364
)), .Names...
2004 Nov 03
3
cut POSIX results in NA - bug?
Dear all
I try to make hourly average by cut() function, which almost works
as *I* expected. What puzled me is that if there is only one item at
the end of your data it results in NA.
Example will explain what I mean
datum<-seq(ISOdate(2004,8,31), ISOdate(2004,9,1), "min")
cut(datum[1370:1381],"hour", labels=F)
[1] 1 1 1 1 1 1 1 1 1 1 1 NA
cut(datum[1370:1382],"hour", labels=F)
[1] 1 1 1 1 1 1 1 1 1 1 1 2 2
I do not understand why the last item in first call is NA. I f...
2011 Mar 10
2
Selecting ranges of dates from a dataframe
Hello list!
I have a data.frame which looks like this:
> serv
datum op.read op.write read write
1 2011-01-29 10:00:00 0 0 0 0
2 2011-01-29 10:00:01 0 0 0 0
3 2011-01-29 10:00:02 0 0 0 0
4 2011-01-29 10:00:03 0 4 0 647168
5 2011-01-29 10:00:04 0 0...
2005 Aug 02
3
how to print a data.frame without row.names
Dear All,
is there a simple way to print a data.frame without its row.names?
example:
datum <- as.Date(c("2004-01-01", "2004-01-06", "2004-04-12"))
content <- c('Neujahr', 'Hl 3 K.', 'Ostern')
df1 <- data.frame(datum, content)
print(df1)
datum content
1 2004-01-01 Neujahr
2 2004-01-06 Hl 3 K.
3 2004-04-12 Ostern
Can...
2008 Jul 15
1
code reduction (if anyone feels like it)
...453), nrow=1)
RM179 <- matrix(c(-81.890929, 33.317914), nrow=1)
RM148 <- matrix(c(-81.7547337, 33.1514072), nrow=1)
RM119 <- matrix(c(-81.501919, 32.94038), nrow=1)
RM61 <- matrix(c(-81.262388, 32.524739), nrow=1)
RM215.sp <- SpatialPoints(RM215, proj4string=CRS("+proj=longlat
+datum=WGS84"))
d060101 <- as.POSIXct("2006-01-01", tz="EST")
study_seq <- seq(from=d060101, length.out=761, by="days")
up.215 <- sunriset(RM215.sp, study_seq, direction="sunrise",
POSIXct.out=TRUE)
down.215 <- sunriset(RM215.sp, study_seq, directio...
2012 Oct 18
1
spTransform longlat to utm
...us results.
An example.
Let's take a point lying somewhere in Germany, zone=32U
x <- 8.968735
y <- 49.454735
After conversion I sould get something like
Easting: 426858 (km)
Northing: 5427937 (km)
sp1 <- SpatialPoints(matrix(c(x,y), ncol=2), proj4string = CRS("+proj=longlat +datum=WGS84"))
sp1Transformed <- spTransform(sp1, CRS("+proj=merc +zone=32u +datum=WGS84"))
coordinates(sp1Transformed)
coords.x1 coords.x2
[1,] 998395.0133 6319888.068
The result is an obvious nonsense.
Well, after some deliberation I swapped the original coordinate colum...
2007 Dec 12
1
how to shorten elements in a data frame?
...though it is certain that one of them is called "pressure".
(This is an oceanographic application, in case anyone wonders why pressure
would be an independent variable for use in interpolation.)
<code>
#interpolate to target pressures in "pt".
npt <- length(pt)
for (datum.name in data.names) {
if (datum.name != "pressure") {
length(res$data[[datum.name]]) <- npt
res$data[[datum.name]] <- approx(x$data[["pressure"]],
x$data[[datum.name]], pt)$y
}
}
</code>
--
View this message in context: http://www.nabble.co...
2008 Dec 20
2
NA, where no NA should (could!) be!
Hello,
again I'm on my weblog-script... having problems...
This code:
===========================
weblog <- read_weblog("web.log")
weblog_by_date <- split(weblog, weblog$date)
#for ( i in names(weblog_by_day) ) { print(i); print(weblog_by_day$i) }
for ( datum in names(weblog_by_date) )
{
print(datum)
selected <- weblog_by_date[[datum]]
res_size_by_host <- tapply( selected$size, selected$host, sum)
mycat <- function(a,b) cat(paste(a, "==>", b, "\n"))
mapply( mycat, selected$size, selected$host )
print( res_siz...
2009 Sep 14
1
linear regression, exclude a datum
Readers,
I have been reading the r book (Crawley) and tried to use the
influence measures function for linear regression, as described. I
have one datum that I wish to show in the graph but exclude from the
regression and ab line.
x y
0 5
10 9
20 10
30 19
40 4
With the influence measures function I plot the graph but linear
regression includes the datum (40,4), which I want to show on the
graph but exclude from the linear regression ab line.
Is...
2009 Sep 25
2
synchronisation of time series data using interpolation
Readers,
I have data with different time stamps that I wish to plot (for example):
data set 1
time(hh:mm:ss),datum
01:00:00,500
01:00:15,600
01:00:30,750
01:00:45,720
01:01:00,700
01:01:15,725
01:01:30,640
01:01:45,710
data set 2
time,datum
01:00:12,20
01:01:01,55
01:01:55,22
The time interval in data set 1 does not change, but the time interval
in data set 2 does change, such that for a specific total time ra...
2008 Nov 27
2
Troubles with the format of dates
Dear useRs,
I'm struggling again with date-related stuff: I am using R to draw water levels at certain measuring
stations. My data comes as a tab-delimited text file and looks like this:
DATUM P1 P2
...
2006-11-16 425.21 423.99
2006-12-15 425.12 423.97
2007-01-16 425.16 424.06
...
(measurements started in July 2004 and still continue on a monthly or bi-weekly basis)
This is then plotted using this code:
a<-read.table("dummy_data.tab", sep="\t",...
2014 Dec 12
0
Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
...lease ignore. Shame on me.. *blushing*
LOL.
Am 12.12.2014 um 21:19 schrieb Markus:
> Anna Crepes: Traubenzucker
> + Feldsalat spezielles Dressing (bringt selbst mit?)
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
> Datum: Thu, 11 Dec 2014 15:34:39 +0100
> Von: Markus <universe at truemetal.org>
> An: universe at truemetal.org
>
> Geschenke Moritz: dunkle Schokolade.
> Geschenke Anna: normale Schokolade.
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: Fwd: Fwd: Fwd:...
2008 Jul 02
3
attachment in mail
How to do the attachment in mail like the yahoo and gmail does?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2012 May 23
3
barplot
...eate barplot of abundances over time (in days). The period
is over 171 days, so I don't want to have all labels there but only the
first day of the month. I couldn't find anything like this on the forum yet.
Mostrly it's about year to year data.
This is the relevant part of my table:
datum month abundance
26/03/11 March 1
27/03/11 March 0
28/03/11 March 1
29/03/11 March 0
30/03/11 March 0
31/03/11 March 0
1/04/11 April 0
2/04/11 April 0
3/04/11 April 0
...
9/09/11 September 1
I tried making a sequence:
hatch$axis.ticks2=seq(from=hatch$datum[1],to=hatch$datum[171], by=30)
Bu...
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...ctx.bld.CreateExtractValue(val, 0, "class");
auto cp = ctx.bld.CreateConstGEP2_32(ty, ptr, 0, 0);
auto cx = ctx.bld.CreatePtrToInt(cp, ctx.Int32Type());
ctx.EmitCall1("debugInt", cx);
ctx.bld.CreateStore(c, cp);
// Set datum
auto d = ctx.bld.CreateExtractValue(val, 1, "datum");
auto dp = ctx.bld.CreateConstGEP2_32(ty, ptr, 0, 1);
auto dx = ctx.bld.CreatePtrToInt(dp, ctx.Int32Type());
ctx.EmitCall1("debugInt", dx);
ctx.bld.CreateStore(d, dp)...
2020 Oct 20
1
sp:gIntersection warning message about projection
...in R already loaded 2 different line
shapefiles with projection then i will see if i can replicate this problem.
So, first file:
buff
class : SpatialLinesDataFrame
features : 1
extent : 560525.5, 561302.4, 4698908, 4701110 (xmin, xmax, ymin, ymax)
crs : +proj=utm +zone=16 +datum=WGS84 +units=m +no_defs
variables : 2
names : ID, buff_dist
value : 2, 135
second file:
pln
class : SpatialLinesDataFrame
features : 1
extent : 560615.6, 560705.4, 4698905, 4699180 (xmin, xmax, ymin, ymax)
crs : +proj=utm +zone=16 +datum=WGS84 +units=m...
2007 Jul 16
3
Errors in data frames from read.table
...resulting data frame had 10 bad rows. The errors appear due to read.table missing delimiter characters, with multiple data being imported into the same cell, then the remainder of the row and the next run together and garbled due to the reading frame shift (example: a single cell might contain: <datum>~ ~ <datum> ~<datum>, after which all the cells of the row and the next are wrong).
To replicate, I tried the same import procedure on a smaller demographics data set from the same supplier- only about 1Mb, and got the same kinds of errors (5 bad rows in about 3500). I also importe...