Displaying 20 results from an estimated 10000 matches similar to: "Changing variable class problems"
2010 Oct 05
3
Question about assigning values in a matrix, conditional on column first row; how to do the loop.
Hello, I?m new at programming and I will greatly appreciate if you can help me with this.
I have a very large matrix (hundreds of rows and columns), with the first raw filled with different numbers (between 0 and 1). The rest of the matrix is filled with values 0, 1, 2. What I need is to replace the values in the matrix (except the first row will has to remain intact). In each column I have to
2012 Feb 29
1
Error occurred during mean calculation of a column of a data frame, which is apparently contents numeric data
Hello R people,
How can I compute the mean of the "Pulse_rate" column of the data frame or
matrix from the following character object called "str_got". It has 14
entries and each entry has 8 values, separated by commas. Please go thru
the following R commands to know how I tried to unstring and unlist the
values to form a data frame.
> str_got
[1]
2012 Jul 12
1
apply() to a function that has more than 2 arguments
Dear all,
I created a function which it has many arguments i.e. Mu(x, Y, B, X, P)
where Mu is the function. This function works perfect but when I am trying
to use it in the apply() function in the manner apply(Matr, 1, Mu, Y=y, B=b,
X=x, P=p) it does not work and the output is: Error in match.fun(FUN) : '1'
is not a function, character or symbol
When I transform the function Mu to have
2009 Mar 13
2
Taking diff of character vectors
Hello, everybody
Say I have
nm1 <- c(rep(1,10), rep(0,10))
then I can do:
diff(nm1)
to see where I have shift in value
but what if I have
nm2 <- c(rep("SPZ8", 10), rep("SPX9", 10))
how can I produce the same ouput as diff(nm1) does, that is zeros
everywhere except for one place where SPZ8 changes to SPX9 (there
should be 1 there)?
What if I have a matrix of characters
2009 Jun 26
1
gradient fill of a grid.polygon
Dear list,
Following a recent enquiry, I've been playing with the idea of creating a
colour gradient for a polygon, using the Grid package. The idea is to draw a
number of stripes of different colours, using the grid.clip function. Below
is my current attempt at this,
library(grid)
rotate.polygon <- function(g, angle=0){ # utility function, works fine
matR <- matrix(c(cos(angle),
2007 Jul 29
2
Prompt comes too late
Hi R fans
I am trying to make a program to ask the user to choose data file:
print("Choose data file please !")
matr=read.table(file.choose(),dec=".",header=TRUE)
The problem is that the prompt
Choose data file please !
comes after I have chosen the file.
What am doing wrong?
Thanks in advance
Ralf Finne
2011 Apr 27
3
Kolmogorov-Smirnov test
Hi,
I have a problem with Kolmogorov-Smirnov test fit. I try fit distribution to
my data. Actualy I create two test:
- # First Kolmogorov-Smirnov Tests fit
- # Second Kolmogorov-Smirnov Tests fit
see below. This two test return difrent result and i don't know which is
properly. Which result is properly? The first test return lower D = 0.0234
and lower p-value = 0.00304. The lower 'D'
2003 Jul 09
2
I get two diffrent errors now...:-(
Hi Team,
For the last several days I have worked very hard in trying to get a Samba
PDC up.
I have now reinstalled RH9- running Samba 2.2.7a and everything is running.
But now I can't even get it to comeup as workf group.
One error i get "SMIS DOMAIN" - Network Path not found. This is what iget
with current SMB.CONF
The othe one is in the attachment.
Here is the current SMB.CONF
2006 Jan 10
3
which release for solaris 8
hi, guys, my first post.
i'm scouring the web site, but don't seem to be able to
find a compatibility mapping for older versions of samba.
i need to upgrade to the latest sparc version which is
compatible with solaris 8...all my searches are bringing
up the solaris 9 code. can someone point me in the
right direction?
thanks (and apologies in advance if it is easy to find
and i'm
2011 Jul 01
3
multiple moderated regression steps
hi,
?m studying moderated effects of percieved social support and justice world
belief on relationship between stress coping strategies and depression
level. ? haver never run this analysis before soi ? want to check my steps
whether correct or not.
first ? run regression
in step 1
centered independent variables and centered moderators
in step2
two way interactions
instep 3
three way
2007 Feb 28
2
delete selecting rows and columns
Hi,
I'm working with a big square matrix (15k x 15k) and I have some trouble.
I want to delete selecting rows and columns.
I'm using something like this:
> sel_r=c(15,34,384,985,4302,6213)
> sel_c=c(3,151,324,3384,7985,14302)
> matrix=matrix[-sel_r,-sel_c]
but it works very slow.
Does anybody know how to make it in faster way?
Thank's
--
View this message in context:
2018 Dec 12
5
Problem after upgrading to 4.9
Thanks Louis;
/etc/krb5.conf
[libdefaults]
default_realm = EXAMPLE.COM
dns_lookup_realm = false
dns_lookup_kdc = true
/etc/resolv.conf
search example.com
nameserver 192.168.50.40
/etc/hosts
127.0.0.1 localhost samba4.example.com
192.168.50.40 samba4.example.com samba4 ldap.example.com
Output off:
samba-tool dbcheck --cross-ncs
NOTE: old (due to rename
2016 Jan 26
2
Notification of file modification in subdirectories not working
I have output of another test with exactly the same behaviour
This time I have pcap files from Samba and client PC. CHange to the file
subfile.txt was made on another PC
Looks like Samba sees change to the file but does not send it as a
notification
[2016/01/26 10:09:15.590689, 10, pid=12027, effective(1001, 1006),
real(1001, 0)] ../source3/smbd/notify_internal.c:615(notify_trigger)
2010 Nov 07
1
can't load nlme on windoze 7
Hi,
I've got a problem that sounds a lot like this,
http://r.789695.n4.nabble.com/Re-R-R-2-12-0-hangs-while-loading-RGtk2-on-FreeBSD-td3005929.html
under windoze 7.
but it seems to hang with this stack trace,
#0? 0x77830190 in ntdll!LdrFindResource_U ()
?? from /cygdrive/c/Windows/system32/ntdll.dll
building goes as follows,
$ ./R CMD INSTALL --no-test-load nlme_3.1-97.tar.gz
*
2016 Jan 22
2
Notification of file modification in subdirectories not working
On Thu, Jan 21, 2016 at 04:57:34AM -0800, ivenhov wrote:
> Hi
>
> Does anyone had similar issues in the past?
> I still cannot find reason why notification of file modification of files in
> subdirs is not visible on client machines
Someone needs to send network traces and debug level 10 logs
for this. And try to reproduce the same against a Windows
server.
Volker
--
SerNet
2007 Feb 27
4
fitting of all possible models
Hi,
Fitting all possible models (GLM) with 10 predictors will result in loads of (2^10 - 1) models. I want to do that in order to get the importance of variables (having an unbalanced variable design) by summing the up the AIC-weights of models including the same variable, for every variable separately. It's time consuming and annoying to define all possible models by hand.
Is there a
2018 Dec 12
3
Problem after upgrading to 4.9
Hi, I use the Van Bell repo, I've upgraded from samba 4.7 to samba 4.9 but
now it fails, these are the errors:
dic 12 09:14:49 samba4 samba[4881]: task[dnsupdate][4881]: [2018/12/12
09:14:49.372290, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
dic 12 09:14:49 samba4 samba[4881]: task[dnsupdate][4881]:
/usr/sbin/samba_dnsupdate: Failed to bind to uuid
2018 Dec 12
0
Problem after upgrading to 4.9
about that systemd part.
systemctl daemon-reload
systemctl samba-ad-dc stop
clear the logs in /va/log/samba
systemctl samba-ad-dc start
and and extra check on the dns part.
sudo /usr/sbin/samba_dnsupdate --verbose
and check your logs again to make sure your all ok.
Greetz,
Louis
Van: Sergio Belkin [mailto:sebelk at gmail.com]
Verzonden: woensdag 12 december 2018 14:16
Aan:
2012 Dec 18
2
Changing Variable Names In VCD
Hello:
What is the most efficient way to change the plotted variable names in mosaic plots in the vcd package? Should one do a separate contingency table first, change the dimension names there and then pass that to mosaic?
Or is there a way to do it simply within mosaic.
I was thinking something like:
mosaic(~var1+var2, labelling_args=list(varnames=c('newvar1', 'newvar2'))
Simon
2012 May 20
1
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* bisectr (0.0.2)
Maintainer: Winston Chang
Author(s): Winston Chang <winston at stdout.org>
License: GPL-2
http://crantastic.org/packages/bisectr
Tools to find bad commits with git bisect
* CUMP (1.0)
Maintainer: Xuan Liu
Author(s): Xuan Liu <liuxuan at bu.edu> and Qiong Yang <qyang at bu.edu>