Displaying 20 results from an estimated 1000 matches similar to: "match rows of data frame"
2006 Jul 28
1
Calculate x-values from a spline
Hello,
I calculate splines from messured points(x,y) of an unknown function f(x).
e.g.
x <- c(0.004115, 0.012345, 0.037037, 0.111110, 0.333330, 1.000000)
y <- c(37, 50, 45, 60, 50, 66)
w <- c(0.8540541, 0.8320000, 0.8822222, 0.7983333, 0.8220000, 0.8151515) as
weights
f <- smooth.spline(x,y,w)
Now I have y-values and want to calculate the x-value(s) from this spline.
There is no
2007 May 28
2
Yearly statistics
Dear R-experts,
Sorry if I've overlooked a simple solution here. I have calculated a
proportion of the number of observations which meet a criteria, applied to
five years of data. How can I break down this proportion statistic for each
year?
For example (data in zoo format):
open high low close hc lc
2004-12-29 4135 4135 4106 4116 8 -21
2004-12-30 4120 4131
2007 Mar 28
2
aggregating data with Zoo
Is there a way of aggregating 'zoo' daily data according to day of week? eg
all Thursdays
I came across the 'nextfri' function in the documentation but am unsure how
to change this so any day of week can be aggregated.
I have used POSIX to arrange the data (not as 'zoo' series) according to day
of week, but am curious if I've missed if a similar option available
2006 Dec 10
1
using zoo for daily stock prices
Hi all,
Please forgive this newbie posting to the list for the first time if I
haven't followed proper procedure. I have read through many of the archives
and find them most useful in learning R.
I have ten years daily data (stock closing prices) which I read in zoo
format. I am having problems coding R to run a count of how many days in
each month have a price higher than the first day
2007 Mar 02
1
extracting data from zoo series
Dear List,
Sorry if I'm overlooking something simple here but I have gotten a bit
tangled.
I am trying to print the next five values(with their dates), which occur
after a certain condition is met.
I have a series of data in zoo format, call it "A". From this series I have
created a subset (also in zoo format) based on a certain condition, call
this series "B".
I
2007 Feb 22
2
Is there better alternative to this loop?
Dear List,
Thanks to those who helped with my enquiry a few days ago.
I have a another question on loops, in this case I am trying to print out
the row of a data frame if the previous 3 values (daily values) in col5 are
in descending order. I have this loop which works, but ask whether this can
be done differently (without conventional loop) in R:
flag="T"
d= 3 # d represents
2007 Jun 01
1
aggregate in zoo
Hi R-experts,
Thanks very much to Jim Holtman and Gabor on my previous question.
I am having another problem with data manipulation in zoo. The following is
data (Z) for first business day of every month in zoo format. I am trying to
get mean of "open" for each year. I subset Z <- Z[,2] then
> sapply(split(Z, format(index(Z), "%Y")),mean)
I get error message:
2006 Jul 21
1
Merge two dataframes of different column length and row length by two columns at a time
Hello,
I have two dataframes of the following structures:
str(a)
`data.frame': 1354896 obs. of 14 variables:
$ V1 : int 0 1 2 3 4 5 6 7 8 9 ...
$ V2 : int 0 0 0 0 0 0 0 0 0 0 ...
$ V3 : int 74 12305 103 12337 46 57 12446 90 12097 79 ...
$ V4 : num 11.8 1529.2 17.8 1579.4 6.7 ...
$ V5 : int 88 11040 104 11557 56 58 11040 74 10991 81 ...
$ V6 : num 15.5 1921.3 20.3
2007 Feb 22
1
how to show date with this subset
Dear List,
Thankyou to Jim and Marc for their help on my previous question.
I have a data frame of five columns, the first being a list of dates and the
other four columns are numeric values. I wanted to list the days where all 4
columns of values are less than in the previous row. I used the following
which works fine, except it doesnt show the dates for each row (the values
from column 1).
2006 Sep 18
0
Question on apply() with more information...
>From: =?ISO646-US?Q?Gunther_H=3Fning?= <gunther.hoening at ukmainz.de>
>Date: 2006/09/18 Mon AM 06:26:25 CDT
>To: 'Petr Pikal' <petr.pikal at precheza.cz>
>Cc: r-help at stat.math.ethz.ch
>Subject: Re: [R] Question on apply() with more information...
I think you want something like below but it
probably needs some fixing up because i don't recall
the syntax
2007 Feb 19
2
help with loop over data frame
Dear List,
This may be the fifth time Ive tried to send this to the list so apologies
if there are multiple emails.
I need some help getting started with this problem. I have a data frame
containing a year of daily stock prices in the following format:
Date Open High Low Close
1/15/2000 10 11 8 10
1/16/2000 12 12 10 11
etc..
I want to create a new
2008 Jun 30
6
Plotting three time series on the same graph
Dear R Users,
I would like to plot three time series on the same graph, two axis on the
left and one axis on the right.
The time series that I am graphing on the left do not share a similar
scale: one has a range of 1:100 and the other a range of 25000:70000. How
can I display the tick marks for both on the left hand side without
superimposing them, i.e. one set of tick marks in black right
2010 Apr 30
11
What is the best way to have "R" output tables in an MS Word format?
Dear "R" list,
Our statisticians usually give us results back in a PDF format. I would like
to be able to copy and past tables from "R" output directly into a Microsoft
Word table since this will save us tons of time, be more accurate to
minimize human copying errors and help us update data in our papers more
easily.
Do people have suggestions for the best way to do this?
I
2007 Dec 25
3
ProPolice/SSP in 7.0
Hi there,
I'm still running 6.2 on various servers without any tweaks (GENERIC
kernel, binary updates via freebsd-update etc.) but lots of ports
(apache, postgresql, diablo-jdk etc.) and would like to use stack
smashing protection in order to harden my boxes and avoid many potential
exploits.
I've known about ProPolice/SSP for a while now (from the Gentoo world)
and am aware that
2003 Aug 07
2
Newbie Issue
Hi All,
I recently purchased the Asterisk Developer's Kit (TDM) to try out
Asterisk. After following the directions in the Digium's FAQ topic entitled
"Q. How do I configure my TDM40B and X100P?", I'm receiving the following
error:
WARNING[1074428608]: File chan_zap.c, Line 6748 (load_module): Ignoring
rxwink
ERROR[1074428608]: File chan_zap.c, Line 6692 (load_module):
2003 Sep 24
2
Charset
I have upgraded on my debian server from samba 2.2.3 (stable ) to samba
3.0rc4 (unstable).
The only problem that I have on my PDC is that italian character as ? (a') ?
(u') etc. are non treated as they should and this can cause profiles non to
load correctly.
What should I do?
THX
Davide Parise
E-Mail: d.parise@iskranet.it
Cel.: +39 3333063640
FAX: +39 06233241981
2002 Feb 25
1
Samba-2.2.3a and Win95?
Hi out there again,
i just installed Samba-2.2.3a as a PDC
on a Solaris-Box (2.6) and encounter Problems with Windows95
Logons. log.nmbd says:
[2002/02/25 15:38:52, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
process_logon_packet: Logon from 10.170.20.8: code = 0x0
And Windows95b states:
Invalid parameter.
The mklogon-Script get's not invoked for
2002 Feb 24
3
Multiple Instancies of Samba on a single System
Hi out there,
i intend to run multiple Instancies of Samba
on a single, multi-homed, server, with each instance bound
to a specific (logical) interface.
If this works, it would be fine to me.
Mainly for administrative Reasons. (You won't believe,
but from time to time it becomes necessary to restart
some services, but restarting the entire server is a
real mess)
Well here my
2007 Feb 04
1
Group policies and Vista
Hi,
coming back to my old topic: How to manage clients. Up to Windows XP one
could use the NT4-style policies, but Vista does not seem to obey them.
Are there any plans to get group policy functions on a samba-only
domain? Or are there other ways to manage the clients?
best regards, Gunther
2008 Apr 23
1
Density estimation
Hi,
I am analysing a dataset containing genetic distances within and between
species. I want to show a overlap of the distributions of the intra- and
interspecific values; on a second graph I use a cut-off value to determine
these boundaries. As the dataset contains >30 000 values, I would like to do
this with a simple line rather than superimposed histograms. Hence, density
plots. With