Displaying 20 results from an estimated 2000 matches similar to: "using an element of an array as a new object"
2008 Apr 25
4
Equivalent of Excel pivot tables in R
Can somebody tell me how to do the equivalent of a pivot table in R ?
For example, if I have :
var1 var2 var3
a x 10
b y 20
a z 10
b z 20
a z 10
b z 20
I could have :
x y z
a 1 0 2
b 0 1 2
where entries in the table are counts of var3.
2008 Dec 09
3
Selecting rows that are the same in separate data frames
I want to compare two matrices or data frames and select or get an index for
those rows which are the same in both. I have tried the following :
a = matrix ( 1:10, ncol = 2 )
a
b = matrix ( c ( 2,3,4,7,8,9 ), ncol = 2 )
b
a[a==b]
a = as.data.frame ( matrix ( 1:10, ncol = 2 ) )
a
b = as.data.frame ( matrix ( c ( 2,3,4,7,8,9 ), ncol = 2 ) )
b
a[a==b]
Any ideas please.
2009 Jan 13
2
Re ad a text file from a directory in which an R script finds itself
Is it possible for an R script to read a text file, say, from the directory
in which the script is located ?
I don't think I can use setwd(), because I can't specify the directory.
--
View this message in context: http://www.nabble.com/Read-a-text-file-from-a-directory-in-which-an-R-script-finds-itself-tp21434236p21434236.html
Sent from the R help mailing list archive at Nabble.com.
2018 Aug 21
2
[Bug 13587] New: Add a --dry-run way to show destination for each item
https://bugzilla.samba.org/show_bug.cgi?id=13587
Bug ID: 13587
Summary: Add a --dry-run way to show destination for each item
Product: rsync
Version: 3.1.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
2005 Jan 19
4
How to replace slashes with back slashes
Dear R-helpers
I am running R2.0.0 under Windows 2000. I am compiling a number of file paths into a simple text file that will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work.
> gsub('/', '\\',
2008 Sep 09
3
directories not correctly recognized rsync-3.0.4
Hi,
I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9.
I'm facing a general problem with the execution of files during a transfer process.
The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2.
rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a
2013 Dec 02
2
symlink in -R src_dirlist and real dirs on target
Hi folks,
I have a bunch of directories to mirror via rsync. I have lots of
hardlinked files spread about these directories. Therfore I use -R
(--relative) and -H.
so far ok but:
I create symlinks to the source-directories via script because src-dirs
have changing names (date and time of backup) and I want to have constant
directory names on target. How can I achieve that?
I thought -k
2018 May 15
2
New 3.12.7 possible split-brain on replica 3
Thank you Ravi for your fast answer. As requested you will find below the "stat" and "getfattr" of one of the files and its parent directory from all three nodes of my cluster.
NODE 1:
File: ?/data/myvolume-private/brick/dir1/dir2/dir3/dir4/dir5/dir6/dir7/dir8/dir9/dir10/OC_DEFAULT_MODULE/filename.shareKey?
Size: 0 Blocks: 38 IO Block: 131072 regular
2007 Nov 19
1
rsync-ing from two locations with same filenames (at different versions)
Hello,
I would like to have a full repository, say, holding files
full/a.txt (version 1)
full/b.txt (version 1)
full/c.txt (version 1)
and a repository of updates, for example
new/b.txt (version 2 - newer)
Then, I would like to call
rsync [flags] new/ full/ destination
to get
destination/a.txt (v.1)
destination/b.txt (v.2)
destination/c.txt (v.1)
This simple case works
2004 Feb 06
3
Please help : Strange 'file has vanished' behaviour with rsync on windows.
Please help : Strange 'file has vanished' behaviour with rsync on windows.
I need to run rsync on windows and sync shares thru UNC names.
When I try :
rsync -e ssh -av //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.
rsync does a copy but says "file has vanished" for every file.
Then when I run:
rsync -e ssh -av --dry-run //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.
it shows
2010 Jul 16
4
--compare-dest weirdness
Hi All,
I am writing a backup program for my computer. brief outline is as follows.
Running ubuntu 10.04
2 main partitions, / and /home, both ext3. 1 external usb hdd, ext3,
mounted to /backups/main.
once every couple of days, rsync backs up, using following command,
everything worth backing up in / and /home partitions to a folder
/backups/main/Full. command: "rsync -vrhRupElog
2018 May 15
0
New 3.12.7 possible split-brain on replica 3
On 05/15/2018 12:38 PM, mabi wrote:
> Dear all,
>
> I have upgraded my replica 3 GlusterFS cluster (and clients) last Friday from 3.12.7 to 3.12.9 in order to fix this bug but unfortunately I notice that I still have exactly the same problem as initially posted in this thread.
>
> It looks like this bug is not resolved as I just got right now 3 unsynched files on my arbiter node
2012 Dec 03
4
How to calculate the spatial correlation of several files?
dir1 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor", "*.bin",
full.names = TRUE)
dir2 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor2", "*.bin",
full.names = TRUE)
results <- list()
for (.files in dir1){ # read in the 365 files as a vector of
numbers for dir1
file1 <- do.call(rbind,(lapply(.files, readBin ,
2011 Feb 13
2
merge/mix or replace two audio streams
Hi,
I'm trying to find a way to implement the following:
I have 1 media source (IceS or MPD) and 1 Icecast stream (say, LAN radio).
Once in a while I'd like this stream to be interrupted by short announcements (PA system).
Input for these announcements can be from another source (IceS, MPD, Asterisk call). Anyway, to make things simple: I'd have dir1 with ogg music files for
2010 May 15
3
multi-homed samba PDC and NetApp filers
We are having a problem getting a NetApp filer to re-join a samba
domain after a move to a new network. The filer worked fine with
samba before the move. Apologies in advance for the long missive.
I've tried the following:
- re-running the CIFS setup program on the filer
- removing the problem filer's samba account, replacing it, and
re-running the setup program on the filer
2008 Jun 09
4
Copying files from specific date.
Dear all,
Does anyone aware of any utility to copy files which are created or modify form a specific date ?.
Thanks
Rajeev R. Veedu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080609/ae761b2c/attachment-0002.html>
2007 Dec 28
1
Odd behavior with --detect-renamed
Hello,
I'm totally new to this list, so I hope I don't break all the rules. :)
I've looked through the archives (and google), and I really can't find the
answer to my question.
I'm trying out the 'detect-renamed'-patch, and I've encountered some odd
behavior. I've applied the patch to both rsync-2.6.9 and rsync-3.0.0pre7,
and it's the same behavior.
2018 May 15
2
New 3.12.7 possible split-brain on replica 3
Dear all,
I have upgraded my replica 3 GlusterFS cluster (and clients) last Friday from 3.12.7 to 3.12.9 in order to fix this bug but unfortunately I notice that I still have exactly the same problem as initially posted in this thread.
It looks like this bug is not resolved as I just got right now 3 unsynched files on my arbiter node like I used to do before upgrading. This problem started
2018 May 17
2
New 3.12.7 possible split-brain on replica 3
Hi Ravi,
Please fine below the answers to your questions
1) I have never touched the cluster.quorum-type option. Currently it is set as following for this volume:
Option Value
------ -----
cluster.quorum-type none
2) The .shareKey
2019 Jan 19
2
Status of SCP vulnerability
Hello,
I would like to request an update of the progress regarding fixes for the recently disclosed SCP vulnerability (CVE-2018-20685, CVE-2019-6111, CVE-2019-6109, CVE-2019-6110)
It has been stated that CVE-2018-20685 has been patched in november but there are currently no information available on the progress of patches regarding the other CVEs.
Will there be a patched release any time soon?