Displaying 20 results from an estimated 900 matches similar to: "Problem with factor state when subset()ing a data.frame"
2006 Sep 08
1
Computing skewness and kurtosis with the moments package
Hi,
I'm a newcomer to R, having previously used SPSS. One problem I have
run into is computing kurtosis. A test dataset is here:
http://www.whinlatter.ukfsn.org/2401.dat
> library(moments)
> data <- read.table("2401.dat", header=T)
> attach(data)
> loglen <- log10(Length)
With SPSS, I get
Skewness -0.320
Kurtosis -1.138
With R:
> skewness(loglen)
[1]
2005 Sep 21
1
rsync operation dies
List-
I have an rsync operation that is inexplicably dying during the file list build on the source host (Windows 200 Server). The data set that I am rsyncing lives on what I am almost sure is a degraded raid array. During the file list build sequence, it will pause, the file list count frozen (not incrementing), and eventually die.
Is there an option that I can use during the rsync process that
2006 Oct 02
1
documenation duplication and proposed automatic tools
I've been looking at documenting S4 classes and methods, though I have a
feeling many of these issues apply to S3 as well.
My impression is that the documentation system requires or recommends
creating basically the same information in several places. I'd like to
explain that, see if I'm correct, and suggest that a more automated
framework might make life easier.
PROBLEM
Consider a
2013 Apr 12
2
model frame and formula mismatch in model.matrix()
Hello everyone,
I am trying to fit the following model
All X. variables are continuous, while the conditions are categoricals.
model <- lm(X2
2012 Feb 06
1
using file in hdfs for data mining algorithms in r
hi all, i am new to r , i am trying to run data mining algorithms using map
reduce framework.. *
*i have few basic doubts*
*1. can i give file in hdfs to kmeans( ) ? ?I tried as
> file1 = hdfs.file("testdata/synthetic_control.data")
> isf = hdfs.read(lsf,5242880,0)
>l = kmeans(isf,2,10)
its not working.. please help
2. How to access the file in hdfs and give as input to
2005 Sep 13
1
possible bug in model.matrix
Is this a bug, or have I misunderstood the proper use of lm?
Thanks,
Whit
code:
x <- rnorm(50)
y <- matrix(as.logical(round(runif(100),0)),ncol=2)
NROW(x)==NROW(y)
lm(x~y)
> x <- rnorm(50)
> y <- matrix(as.logical(round(runif(100),0)),ncol=2)
> NROW(x)==NROW(y)
[1] TRUE
> lm(x~y)
Error in "[[<-.data.frame"(`*tmp*`, nn, value = c(2, 1, 2, 1, 1, 1, 2,
:
2011 Oct 24
2
How to use "virsh migrat" with p2p option?
Hi libvirt support,
Can you please give me some example of how to use "virsh migrate --live" with p2p option including both source host and target host?
I try to get some info from your website, but no info with migrate.
[root at vmoactive02 qemu]# virsh help migrate
NAME
migrate - migrate domain to another host
SYNOPSIS
migrate [--live] [--p2p] [--direct]
2009 Jan 23
1
svnserve with SASL on CentOS 5.2
Hello List.
I'm cross posting this from svn-users, as I'm not sure whether this is an CentOS specific issue. Perhaps someone here has an idea of what's going on?
-----------------------------
I got a fresh install of CentOS 5.2 x32, svnserve, version 1.5.5
(r34862), here is my svnserve.conf file
[general]
anon-access = none
auth-access = write
realm = isf
[sasl]
use-sasl = true
2010 Oct 29
1
What won't rsync sync this file?
For some reason, Rsync did not copy two specific file. Then I tried to specifically tell it to synchronize one of them and I get this result. *I* don't see any reason why to chose not to copy this file, but maybe on of you out there would see the obvious reason I am missing.
dprweb> /usr/local/bin/rsync -vvv --stats -Pzrtpl --delete --password-file=/export/home/webuser/.appprod
2010 Apr 19
2
from solaris to linux: /usr/local/bin/rsync: No such file or directory
Moin,
I want to use rsysnc to get files from a linux box to a solaris server.
root at solaris:/root # which rsync
/usr/local/bin/rsync
root at solaris:/var/log/r5backup # rsync --version
rsync version 3.0.7 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps,
2010 Nov 11
1
rsync stops at system call select()
hi, all:
I need to back up about 50 files, the size of which won't exceed 5m,
every 10~15 minutes to four remote machines.
The back up command is written in a shell script file and was
executed by the scheduling program with system() function. The scheduling
program is implemented with c++.
The command as follow:
*rsync -az /home/admin/service/* admin at
2007 Feb 12
0
Problem with factor state when subset()ing a data frame
The solution to most "factors" questions on the R mailing list is
to set the global option stringsAsFactors to F. Make it your part of your
default R startup. Even better, do what we have done at Mayo for the
last 10+ years and make it the default for your whole unit. (150+ users,
20+ years of S experience). We were one of the groups that whined to
Insightful until they added this
2006 Mar 27
2
apply(ing) to sum subset of a vector
Dear R users
I am trying to sum selective elements of a vector but my solution
is not cutting it.
Example:
> g <- 1:5;
> from <- 1:3;
> to <- 3:5;
from to
1 3
2 4
3 5
so I expect 3 sums from g
1+2+3 that is 1 to 3 of g
2+3+4 that is 2 to 4 of g
3+4+5 that is 3 to 5 of g
my solution will not work.
sum.em <- function(g, c1, c2)
2008 Apr 28
2
X11 window title setting in X11() Device (PR#11325)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hi,
I think I have found a very little bug in the new version of the X11()
device in R 2.7.0, more precisely in the devX11.c file.
The problem is that when you open a new window with X11(), the title
of the window (the WM_NAME property) is not immediately set. It seems
that the window is created, then it
2011 May 18
1
Need expert help with model.matrix
Dear experts:
Is it possible to create a new function based
on stats:::model.matrix.default so that an alternative factor coding is used
when the function is called instead of the default factor coding?
Basically, I'd like to reproduce the results in 'mat' below, without having
to explicitly specify my desired factor coding (identity matrices) in the
'contrasts.arg'.
dd
2016 Aug 01
4
Unlock domain user
Hi Rowland.
The command (samba-tool user enable 'user') is used to enable a user
account that has been disabled in AD, but it is not functional to unlock a
user account that has been locked by wrong password.
Anderson Hoffmann do Carmo
MCP | MTA | MCDST | MCTS | MCSA | MS | MOS |
ITIL-F | ISFS | CLOUDF | CI-SCS | VCA-DCV |
2016-08-01 13:51 GMT-03:00 Rowland penny <rpenny at
2016 Aug 01
2
Unlock domain user
Hi for all!
It's a simple question, but I did not find the answer!
How unlock domain user after the account blocked by wrong password?
How to do this by samba-tool or any other tool in Linux_AD?
Or is this possible only by Windows RSAT_Tool?
Anderson Hoffmann do Carmo
MCP | MTA | MCDST | MCTS | MCSA | MS | MOS |
ITIL-F | ISFS | CLOUDF | CI-SCS | VCA-DCV |
2016 Jul 12
2
Demote Win2008R2 DC Fail
On 12/07/16 13:33, Jason Waters wrote:
> This is what I would do.
>
> 1. Make sure everything is off of the 2008 machine so you don't need to
> turn it back on
> 2. Shut down the 2008 machine
> 2.5 Update your DNS on the samba machine to be the samba machine, not the
> 2008 DC
> 3. Test everything and make sure samba is fully working on your domain
> 4. Test
2016 Jul 12
1
Demote Win2008R2 DC Fail
Hi Jason/Rowland
Great news! the following procedure worked perfectly...
I added at the end "Remove manually Windows DC entries in DNS"
The script used in step 9 was "
https://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3
"
*Very thanks for all!*
Anderson Hoffmann do Carmo
MCP | MTA | MCDST | MCTS | MCSA | MS | MOS |
ITIL-F | ISFS | CLOUDF
2007 Aug 14
2
Spec''ing ApplicationController
Folks,
I''d like to spec the behaviors that I''m adding to ApplicationController.
Specifically, I''m adding:
def authenticated?
session[:username] != nil
end
I described ApplicationController, but couldn''t figure out how to call the
authenticated method. I''m probably going about this quite wrongly and would
appreciate any hints?
Thanks,
Scott
--