Displaying 20 results from an estimated 10000 matches similar to: "conditional replacement of contiguous values"
2011 Aug 14
2
conditional filter resulting in 2 new dataframes
This is what I am starting with:
initial<- matrix(c(1,5,4,8,4,4,8,6,4,2,7,5,4,5,3,2,4,6), nrow=6,
ncol=3,dimnames=list(c("1900","1901","1902","1903","1904","1905"),
c("sample1","sample2","sample3")))
And I need to apply a filter (in this case, any value <5) to give me one
dataframe with only the
2012 Jan 31
1
Selecting contiguous, irregularly-shaped sets of values from arrays
All,
I am attempting to select all of the contiguous elements of a matrix that meet some criterion. I.e., values that would be contained within an irregular area defined by a "contour" applied around point of interest. So, if I have a matrix x as follows:
> x <- matrix(rnorm(25), nrow=5, ncol=5,
2010 Oct 01
2
element wise conditional assignment in r
Hi,
I am looking for a one-liner code for the following situation
say I have a vector r of 0 and 1's, and another vector v of equal length. I
want to assign v[i]-1 to v[i] if r[i]=1, for all i. How would I do that
using mapply or any other batch processing keywords? thanks.
John
--
View this message in context:
2011 Apr 30
3
indexing into a data.frame using another data.frame that also contains values for replacement
Hello all,
I have a quandry I have been scratching my head about for a
while. I've searched the manual and the web and have not been able to
find an acceptable result, so I am hoping for some help.
I have two data frames and I want to index into the first using
the second, and replace the specific values I have indexed with more
values from the second data.frame. I can do this
2010 Sep 02
3
[patch] O_DIRECT: fix the splitting up of contiguous I/O
Andrew, can you please send this on to Linus and -stable ASAP? It's
causing massive problems for our users.
On Thu, Aug 12, 2010 at 04:50:59PM -0400, Jeff Moyer wrote:
> Hi,
>
> commit c2c6ca4 (direct-io: do not merge logically non-contiguous
> requests) introduced a bug whereby all O_DIRECT I/Os were submitted a
> page at a time to the block layer. The problem is that the
2003 May 22
5
X flag in smbpasswd?
mksmbpasswd.sh does not create accounts with the X flag in the password
flags field. Does this X matter, and if so, what does it mean? It's not in
the man page.
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical
2003 Oct 01
4
Mounting Windows Shares from Linux
Hi All,
I'm sure this has been discussed many times but since I do not have
a internet connection, I have to ask this question..
[ow_mh@hmweb Dump]$ sudo mount -t smbfs //129.253.110.160/Dump $HOME/Dump
708: session request to 129.253.110.160 failed (Called name not present)
708: session request to 129 failed (Called name not present)
Password:
Anonymous login successful
708: tree connect
2003 May 19
2
Logwatch - malformed password entry(uid not number)
Hi All,
I've the following in the logs and am wondering why they are there.
I also keep getting emails from SAMBA log-deamon (or something like that).
[2003/05/19 15:24:29, 0] passdb/pdb_smbpasswd.c:getsmbfilepwent(364)
getsmbfilepwent: malformed password entry (uid not number)
It's not really serious (at least to me) but it's a cause for concern. Below
are the details
LInux
2003 Aug 12
3
Can't find samba server after new NIC installed
Hi All,
Perhaps you guys can help me shed some light on this 'problem' I'm
facing.
I recently added another NIC to my samba server. eth0(10.0.0.251) and
eth1(valid dhcp address)
ETH0 was added to connect to another PC that acts as the backup server.
(dedicated connection)
Now, Samba won't come back up.. I can still ssh into the server and all.
Any ideas? I know that the wins
2003 Aug 04
4
Recommendations for 'X' Network Neighborhood Browser
Hi All,
Any recommendation for a Network Browser for KDE/GNOME/WindowMaker??
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
2013 Nov 11
0
drm/nouveau contiguous bo check produces lots of output
op 11-11-13 17:05, Jerry Cooperstein schreef:
> On 11/11/2013 09:57 AM, Maarten Lankhorst wrote:
>> op 11-11-13 16:31, Jerry Cooperstein schreef:
>>> Hi:
>>>
>>> commit bd9c5a2016307164c419c5e24a46921c10e620a0
>>>
>>> (drm/nouveau: require contiguous bo for framebuffer)
>>> produces about 2000 lines of
>>>
>>> nouveau
2013 Nov 11
0
drm/nouveau contiguous bo check produces lots of output
On 11/11/2013 09:57 AM, Maarten Lankhorst wrote:
> op 11-11-13 16:31, Jerry Cooperstein schreef:
>> Hi:
>>
>> commit bd9c5a2016307164c419c5e24a46921c10e620a0
>>
>> (drm/nouveau: require contiguous bo for framebuffer)
>> produces about 2000 lines of
>>
>> nouveau E[ DRM] framebuffer requires contiguous bo
>>
>> on system boot and
2008 Mar 11
1
How to generate a vector of counts i.e. the number of rows that are contiguous
Hi,
I have a 3 columns data and need to generate a vector of counts. These
counts are the number of rows that are contiguous. It looks easy for manual
counting, but to turn it algorithmic really split my head.
For example, 11 (i.e. 18004 to 180014), 1 (i.e., 18017), 7 (i.e., 18060 to
18064)
18004 10314568 0.5205757
18005 10333837 0.5135572
18006 10566333 0.5111271
18007 10566624 0.8196611
2007 Mar 16
2
Duplicated non contiguous element in a list
Hello,
Given a vector I would like to rapidly identify duplicated non contiguous elements.
Given for example
c(1, 1, 2, 3, 2, 4, 5, 6, 4)
I would like to get:
FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE
In fact I need to check this on the columns of a matrix!
I can do that of couse with loops but is there any function already available?
Thanks
2013 Aug 07
0
[PATCH] drm/nouveau: require contiguous bo for framebuffer
This was already required before, but no check in the kernel was done to enforce it.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 73cf240..ddb065c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -107,6
2023 Jun 01
1
bug in na.contiguous? Doesn't give the first tied stretch if it is at the start
Hi.
The description of na.contiguous says:
"Find the longest consecutive stretch of non-missing values in a
time series object. (In the event of a tie, the first such
stretch.)"
But this seems not to be the case if one of the tied longest stretches is at the start of the sequence/series. In the following example, there are three stretches of length 3, so I expect the result
2004 Apr 09
3
Samba Shares and Win32 Viruses
Hi Collective users of Samba, (does has a nice ring to it eh?)
Recently I found a my samba server being infected by win32 viruses.
Though it does not affect the server in any way, I do find them to be
an annoyance.
I understand also that I can perform "veto" of files like *.exe in smb.conf
but find that to be a wee bit restrictive. There are some users who
stores valid executables in
2003 Jun 12
2
Samba with SSL Support - how to know?
Hi Guys,
How can I know if my version of samba was compiled with SSL support?
I'm using Redhat 8's rpm version 2.2.7a security fixed.
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
2006 Mar 21
1
Getting polygons from contiguous grid cells having same value in sp
I have been using the sp package to deal with gridded data. I would
like to know how to extract the vertices (x,y) of polygons that outline
areas of like-valued cells in a grid. Here is a simple 3x3 grid:
2 2 1
1 2 1
1 1 3
x <- c(1,1,1,2,2,2,3,3,3) # define a 3 x 3 array of points
y <- c(1,2,3,1,2,3,1,2,3)
h <- SpatialPoints(cbind(x,y)) # make these an sp object of the points
2009 Jul 02
1
Box Plot outliers label
Hi!
How can I add labels in the outliers inside a boxplot.
Here is my code, at now:
mun <- as.data.frame(read.csv2("consolidada_v3.csv"))
micro <- mun$nmicro
medprop <- mun$medprop
mimedprop <- split(medprop, micro)
boxplot(mimedprop, col="chartreuse3", main="Área média das propriedades
rurais", xlab="Microrregiões", ylab="ha")
I