Displaying 20 results from an estimated 2000 matches similar to: "match"
2004 Mar 08
5
years from as.POSIXlt
Hi,
how it's possible to extract the year and the number
of days from Julian date. i'm little confused about the last two
functions and ?years .
EDATE comes from sqlQuery with as.is=T
EDATE <- as.POSIXlt(datvears$ENROLLDAY)
Many thanks, Christian
> EDATE[1:5]
[1] "2000-06-30 11:25:01" "2000-06-30 11:39:55" "2000-06-30 12:11:11"
[4]
2013 Jan 03
2
Sas by function in R
Hello,
It's an alternative to use SAS by function in R?
I want to plot d histograms by plot.from example bellow:
Thank you!
plot d
1 1 16.3
2 1 25.0
3 1 57.8
4 1 17.0
5 2 10.8
13 2 96.4
17 3 76.0
18 3 32.0
19 3 11.0
20 3 11.0
24 3 106.0
25 3 12.5
21 4 19.3
22 4 12.0
26 4 15.0
27 5 99.3
32 7 11.0
36
2009 Mar 31
2
TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?
My environment.rb contains
config.time_zone = ''UTC''
If my understanding is correct, rails should assume time values coming
from the database are UTC, and since config.time_zone is set to ''UTC'',
it should not try to convert the times.
Instead, rails is assuming that the db values are Eastern (my local
zone) and is incorrectly adding four hours to convert to
2009 Jan 21
1
Looking for a special date function in R
Hello, everyone
I wonder if R has something similar to Excel function
EDATE(start_date; months) which returns a serial number of the date
that is the indicated number of months before of after the start date.
Example (the second column EDATE(first_column; -6)):
01.01.1999 01.07.1998
02.02.1999 02.08.1998
06.03.1999 06.09.1998
I am working with a zoo object where the row names are dates and for
2010 Oct 20
2
histograms resulting from call to soil.texture
Hello,
Using the dataset below I produce a soil.texture plot (R code for this
included at the end). One will notice I have plotted the points based on
whether or not they are in a region called 'upstream' or 'downstream'. I'm
curious if there is a way to somehow extract counts of the number of points
(red points and blue points) falling within each classification (e.g. silty
2010 Apr 16
2
managing data and removing lines
Hi,
I am very new to R and I've been trying to work through the R book to gain a
better idea of the code (which is also completely new to me).
Initially I imputed my data from a text file and that seemed to work ok, but
I'm trying to examine linear relationships between gdist and gair, gdist and
gsub, m6dist and m6air, etc.
This didn't work and I think it might have something to do
2006 Aug 06
5
Click Table Headings to Sort..
Hi, I''m looking at using my table headings as links that reload the page
and sort it by the field which was clicked on. As is common, if the
list is already sorted by the field, it reverses the order. I''m now
looking at a good DRY way to do this.
I have 3 fields: name, date, race. I''m setting a parameter called so
(for sort order) to either "up" or
2012 Dec 28
3
Merging data tables
Hi all,
I am trying to merge several data sets and end up with a long data
format by date & time so I can run correlations and plots. I am using
Deducer as an R GUI but can just use the R console if easier.
The data sets are weather with wind speed, relative humidity and
temperatures by date and minute and bat activity with date, time, label,
and an activity index number. The bat
2011 Apr 11
1
Edate and EOmonth
Hi,
I was wondering if anyone could point me to the excel look alike "Edate"
and "eomonth" functions in R. I have found the "timeLastDayInMonth" and
"timeFirstDayInMonth" in the "timeDate" package. However, I am looking
for a bit more flexibility. I would like to be able to obtain dates and
EOM dates "n" months prior/forward to the
2013 Feb 15
3
datos climáticos cambio de formato
Hola!!
tengo un data.frame donde cada fila corresponde a un año y cada columna a
un mes (De enero a diciembre)
> head(valT)
V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13
1941 18.0 16.3 15.2 10.1 8.1 8.3 8.8 9.2 7.9 12.2 11.9 14.6
1942 17.2 15.9 13.6 11.6 8.7 6.2 6.4 7.2 9.7 12.0 14.1 16.7
1943 17.6 17.3 13.5 12.5 10.5 7.0 8.2 7.9 -999.9 -999.9
2013 Jun 12
1
Question on Simple Repeated Loops
Dear R-User,
Appreciate any helps. It looks simple, but I don't have a clue.
Given that I have a dataframe of tree population with three variables:
sp=species ,
d0=initial_size
grow=growth increment from initial size per year
How can I calculate the future growth increment of each tree for the next 3 years.
The following Rscript was written,
#----------
a0 <-
2002 May 07
1
Problem with ties in rank()
Hello All:
I have a vector of data, z
> z
[1] 0.1 0.1 0.1 0.1 0.2 0.2 0.3 0.3 0.3 0.4 0.5 0.5 0.5 0.7
0.7 0.7 0.9 0.9 1.1
[20] 1.1 1.2 1.3 1.4
The first 4 elements have values of 0.1 followed 2 elements with values 0.2.
When I invoke rank(z), I expected to get (1+2+3+4)/4 = 2.5 for the first 4
elements in the ranking and (5+6)/2 = 5.5 for elements 5 and 6. But what I
do
2008 Aug 07
2
Problems using hetcor (polycor)
Sorry if this post should be long but I tried to give you a piece of my data
to reproduce my error message using hetcor:
Fehler in result$rho : $ operator is invalid for atomic vectors
Zus?tzlich: Warning messages:
1: In polychor(x, y, ML = ML, std.err = std.err) :
1 row with zero marginal removed
2: In polychor(x, y, ML = ML, std.err = std.err) :
the table has fewer than 2 rows
Error in
2001 Oct 18
1
tapply problem
Hello everybody.
I have a question that has stumped me and the usual "apply" tricks
don't seem to work. I run a course where each student's performance
is marked by one or more assessors.
I have a data frame containing students' names, assessors' names and
their marks, arranged as follows:
ID student assessor Q1A Q1B Q1C Q2A Q2B Q3
1 2152833
2002 Feb 22
1
Weekdays
Hello,
I'm trying to write a function that returns the number of weekdays between a
vector of start dates and a vector of end dates.
Subtracting the 2 times the number of whole weeks is the easy part and works
if the number of days is a multiple of 7.
However, the number of weekend days in the tail is a little harder. It
depends on both the start date of the tail and the number of days in
2004 Apr 18
1
Histogram ploting
Hi,
It's my first post on this group.
I've just started learning & using R and I like it ;-)
I have I think simple question. I'm trying to plot
a histogram for my data set.
My data set is defined as follows:
Class N
12.5 3
17.5 10
22.5 12
27.5 8
32.5 7
37.5 3
42.5 4
47.5 2
Class means middle of set of my ranges I define.
N column stores number of measurements counted to
2003 Jul 21
1
help on barplot
Hello,
I am trying to compare two histograms using barplot. the idea is to plot
the histograms as pairs of columns side by side for each x value. I was
able to do it using barplot before but I can't remember now for the life
of me now how I did it in the past:
> d
[,1] [,2]
-37.5 0.0000000000 2.789396e-05
-32.5 0.0001394700 5.578801e-05
-27.5 0.0019804742
2011 Jul 17
1
creating a matrix of ranked column data
I have a data frame (gom) or a matrix of trace metal data and some other
observations from water column samples taken at sea (e.g., 19 samples
(rows), 19 variables)
I can calc. the rank individually from each column of the attached object.
How can I create a matrix that contains the ranked data for each variable
(either 1-19, ties=avg)?
For example:
>gom<-read.csv ("gomdata.csv")
2013 Oct 11
3
Removing a domain controller help needed
On Fri, 2013-10-11 at 16:00 +1300, Andrew Bartlett wrote:
> On Fri, 2013-09-13 at 09:10 +0200, christophe wrote:
> > Hi,
> >
> > First guys, I'd like congratulate you. Samba 4 is really a cool product.
> >
> > I have a little problem though.
> >
> > The context:
> >
> > I have Samba4 AD DC working perfectly on a virtual machine
>
2011 Dec 31
1
Histogram omitting/collapsing groups
I have two large datasets (156K and 2.06M records). Each row has the
hour that an event happened, represented by an integer from 0 to 23.
R's histogram is combining some data.
Here's the command I ran to get the histogram:
> histinfo <- hist(crashes$hour, right=FALSE)
Here's histinfo:
> histinfo
$breaks
?[1] ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 10 11 12 13 14 15 16 17 18 19 20 21