similar to: AW: Replacing all NA values in a matrix

Displaying 20 results from an estimated 1000 matches similar to: "AW: Replacing all NA values in a matrix"

2005 Jan 25
2
Rd problems when converting DVI version
Hi Running R v2.0 on SuSe linux 8.2. I'm trying to build a package (which built perfectly on Windows...) on Linux, and I ran: R CMD check mypackage I got: * checking mypackage-maual.tex ... ERROR LaTeX errors when creating DVI version This typically indicates Rd problems OK, there are no problems with my Rd - I got 3 warnings but they were all expected, and the whole package builds find
2005 Jan 05
8
Replacing all NA values in a matrix
OK, dumb question, and it is probably in the docs somewhere, but after 12 months working with R and quite a while looking at the docs, I still don't know (or have forgotten) how to replace all NA values in a matrix at once with some other value. I can do it column by column using is.na(), but I can't figure out how to do it for the whole matrix. My apologies, I am ashamed ;-) Michael
2004 Nov 16
3
Simple plot() question
Hi First a simple question to do with plot(). How do I change the x-axis labels on a plot? For example, I am plotting each row of a matrix, and I want each row to be a line on my graph. Simple really. Eg: plot(sg[1,], type="l") When I do this, the x-axis is labelled 1:38, as I have 38 columns in my matrix. When I do: plot(sg[1,order(sg[1,])], type="l") Ideally I would
2004 Dec 10
4
cbind() and factors.
Hi I'm seeing some "odd" behaviour with cbind(). My code is: > cat <- read.table("cogs_category.txt", sep="\t", header=TRUE, quote=NULL, colClasses="character") > colnames(cat) [1] "Code" "Description" > is.factor(cat$Code) [1] FALSE > is.factor(cat$Description) [1] FALSE > is.factor(rainbow(nrow(cat))) [1]
2005 May 05
0
Wilcoxon paired signed rank test and continuity correction
Hi I am applying the wilcoxon paired signed rank test to many sub-groups of a data frame using by() and wilcox.test, and sometimes the test uses continuity correction and sometimes it doesn't. What I want to know is: 1) what is continuity correction? The docs say: correct: a logical indicating whether to apply continuity correction in the normal approximation for the p-value.
2003 Jul 07
1
Xvfb and R
Hi I have recently installed and implemented Xvfb (X virtual frame buffer) so that I can create jpegs using R over CGI (SUSE Linux 8.1 and Apache 1.3). I have noticed that in order to do this, a file (Rplots.ps) is created in my cgi-bin directory everytime a cgi script is run. This could cause problems though as I have a multi-user system where it is possible that two different users will run
2003 Jul 03
1
General X11 Problems
Hi You may remember a while ago I was having problems with creating jpegs using R over CGI. I solved this on my LAPTOP (*grins*) by - executing "xhost +localhost" from the command line - putting "SetEnv DISPLAY=:0.0" in my httpd.conf (apache) And all worked well. Now I'm trying to move the whole system onto my shiny new server - and encountering yet more problems
2004 May 19
7
Help with hclust() and plot()
Hi When I use plot(hclust(dist..)...)...) etc to create a dendrogram of a hierarchial cluster analysis, I end up with a vertical tree. What do I need to do to get a horizontal tree? Also, my users are used to seeing trees who's leaves all "end" at the same place (eg. Like in minitab). Is this possible in R? Thanks Mick Michael Watson Head of Informatics Institute for Animal
2003 Jun 13
4
Using jpeg() function over cgi
Hi I have seen a few posts to this list regarding problems accessing the x11() device over cgi - namely, when trying to create a graphic using the jpeg() function, everything is fine from the command line but it won't work over cgi, producing the error: "Unable to open connection to X11 display" Has anyone actually solved this particular problem satisfactorily? Please reply
2008 Aug 05
1
Greek characters in plots
Hi I am running an R script that creates 100s of graphs, and I need to use the greek CAPITAL letter delta in the mtext() function. I got as far as expression(delta) but this gives me the lowercase version. Can anyone help? I'm using R 2.7 on Windows XP Mick Head of Informatics Institute for Animal Health Compton Berks RG20 7NN 01635 578411
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail! plot(1:10,1:10) mtext("title", side=3, adj=0, font=3, cex=1.5) This works as expected and puts the font in italics. tag <- "A)" suffix <- "genea::" plot(1:10,1:10) mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3, cex=1.5) Here, the font isn't in italics, it's normal. I presume this is some
2002 May 13
1
Adding users by ignoring unix password file
Hi, Is it possible to add users/change passwords for users in samba without it being dependant on anything in the UNIX password file? For example I want to add a user to my samba password file without them existing in the UNIX password file. If anyone has any RTFM info they can kick me in it would be most appreciated :) Thanks -- Jamie Heckford Network Manager Trident Microsystems Ltd Tel:
2010 Oct 13
2
total newbie issue with Cortado player using new java 1.6.0_22
is anybody else having problems with the new java 1.6.0.22 ? i am tried both cortado-ovt-debug and cortado-ovtk-debug - neither seem to work anymore once i installed the new java. once i go back to the old java 21 everything works fine. my jar file downloads for console messages (below) came from: http://downloads.xiph.org/releases/cortado/cortado-ovtk-debug-0.6.0.jar i have included
2017 Jun 10
3
[Bug 101372] New: nouveau?/DRI3?: dual monitors unusable without running compton --paint-on-overlay (sometimes)
https://bugs.freedesktop.org/show_bug.cgi?id=101372 Bug ID: 101372 Summary: nouveau?/DRI3?: dual monitors unusable without running compton --paint-on-overlay (sometimes) Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: critical
2018 Jan 07
3
[Bug 104530] New: Desktop freeze when closing apps composited by compton running on GTX 760
https://bugs.freedesktop.org/show_bug.cgi?id=104530 Bug ID: 104530 Summary: Desktop freeze when closing apps composited by compton running on GTX 760 Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium
2013 May 22
0
Library without malloc
I need to set the content to 0 because actually is not using malloc(), it uses calloc() that does set the memory to 0. Best Regards --------------------------------------------- Helios Cuevas L?pez Embedded Software Engineer Castle Care-tech Ltd. First Floor, 6 Bracknell Beeches, Old Bracknell Lane West, Bracknell, Berkshire, RG12 7BW Office - 01344 469470 Direct Dial - 01344 469485 FAX - 01344
2018 Nov 04
13
[Bug 108651] New: Screen flickering when using compositor with OpenGL backend
https://bugs.freedesktop.org/show_bug.cgi?id=108651 Bug ID: 108651 Summary: Screen flickering when using compositor with OpenGL backend Product: Mesa Version: unspecified Hardware: All OS: Linux (All) Status: NEW Severity: normal Priority: medium Component:
2010 Apr 29
2
Cloning very slow?
Yesterday I cloned one of my VMs and, somewhat implausibly, it took virt-clone something like 8-9 hours to clone the 8Gb disk image... Copying it from the command line took a mere 6.5 minutes. I assume this is a bug, and it's not expected to take this long ;-) This was using virt-clone from python-virtinst-0.500.2-1.fc12.noarch in the virt-preview repository. Tom -- Tom Hughes (tom at
2018 Nov 05
0
[Bug 108651] Screen flickering when using compositor with OpenGL backend
https://bugs.freedesktop.org/show_bug.cgi?id=108651 --- Comment #2 from Yuxuan Shui <yshuiv7 at gmail.com> --- compton itself does not have lots of dependencies. Right now all the users experienced this problem seems to be using the i3 window manager, I don't know if this is reproducible with windowmaker. I don't know the mesa version they use, I will ask. But judging that they are
2013 May 22
0
Library without malloc
Yanick & Jean-Marc, First of all thank you very much for taking your time to try to help me. Hi Yanick, This is what I am trying to do, but for example the function SpeexPreprocessState *speex_preprocess_state_init has lots of pointers that are initialize with static inline void *speex_alloc (int size). So I am trying to convert all this pointers into arrays but it is getting messy trying