similar to: more woes trying to convert a data.frame to a numerical matrix

Displaying 20 results from an estimated 20000 matches similar to: "more woes trying to convert a data.frame to a numerical matrix"

2007 Aug 16
3
multiple colors within same line of text
Hi, I'm interested in using mtext(), but with the option of having multiple colors in the same line of text. For example, creating a line of text where: Red is red and blue is blue How do you create a text argument that lets you do this within mtext()? Thanks, Andrew MGH Cancer Center [[alternative HTML version deleted]]
2008 Apr 24
2
alternatives to RColorBrewer?
I've found RColorBrewer useful for its qualitative palettes, but wished that it could generate more than 12 qualitative palettes (e.g. with Set3). Any suggestions for alternative color palette generators that can handle e.g. 18 distinctive colors? (I'm aware of using rainbow(), but this doesn't generate enough distinct colors when the number of palettes is large). Thanks, Andrew
2007 May 29
2
trouble understanding why ...=="NaN" isn't true
I have the following data: > dataset[2,"Sample.227"] [1] NaN 1558 Levels: -0.000 -0.001 -0.002 -0.003 -0.004 -0.005 -0.006 -0.007 -0.008- 0.009 ... 2.000 However, I'm not sure why this expression is coming back as FALSE: > dataset[2,"Sample.227"]=="NaN" [1] FALSE Similarly: > dataset[2,"Sample.227"]==NaN [1] NA It seems that since
2007 May 29
2
looking for the na.omit equivalent for a matrix of characters
I have a matrix of characters (actually numbers that have been read in as numbers), and I'd like to remove the NA. I'm familiar with na.omit, but is there an equivalent of na.omit when the NA are the actual characters "NA"? Thanks, Andrew [[alternative HTML version deleted]]
2007 Dec 21
3
Numerical precision problem
Dear All, I have a numerical problem: R, as other statistical software, can tell the difference between very small numbers and 0, while apparently cannot distinguish a number close to 1 and 1. In the example below, is it possible to instruct R to recognize that q is different from 1? > p=.00000000000000000000000000000001 > p==0 [1] FALSE > q=.99999999999999999999999999999 >
2005 Sep 25
2
getting variable length numerical gradient
Hi all. I have a numerical function f(x), with x being a vector of generic size (say k=4), and I wanna take the numerically computed gradient, using deriv or numericDeriv (or something else). My difficulties here are that in deriv and numericDeric the function is passed as an expression, and one have to pass the list of variables involved as a char vector... So, it's a pure R programming
2010 Sep 10
3
Non identical numerical results from R code vs C/C++ code?
Hi, suppose you have two versions of the same algorithm: one in pure R, the other one in C/C++ called via .Call(). Assuming there is no bug in the implementations (i.e. they both do the same thing), is there any well known reason why the C/C++ implementation could return numerical results non identical to the one obtained from the pure R code? (e.g. could it be rounding errors? please
2010 Feb 01
2
numerical subscripts in a loop in a plot
Hi R Graphics Gurus I am unable to figure out this issues with unevaluated expressions. I'm trying to create a graphic where I calculate the residual from a regression and want to mark each residual with its observation number. So something like plot(0,0, type = "n", xlim = c(0,10)) for(i in 1:10){ text(i, 0, substitute(paste(epsilon[i]))) } except that i end up pasting
2004 Jun 22
1
Numerical methods of integration
Hi! I want to know if there is a function in R that makes integration using numerical methods. Thank's for helping! Talita Perciano Costa Leite Graduanda em Ci??ncia da Computa????o Universidade Federal de Alagoas - UFAL Departamento de Tecnologia da Informa????o - TCI Constru????o de Conhecimento por Agrupamento de Dados - CoCADa
2005 Feb 07
2
logit link + alternatives
Help needed with lm function: Dear R's, Could anyone tell me how to replace the link function (probit logit, loglog etc.) in lm with an abitrary user-defined function? The task is to perform ML Estimation of betas for a dichotome target variable. Maybe there is already a package for this (I did not find one). Any hints or a code excerpt would be welcome! Thank you -Jeff jeff.pr2 (at)
2006 Mar 08
3
Multiple logistic regression
Dear R-users, Is there a function in R that classifies data in more than 2 groups using logistic regression/classification? I want to compare the c-indices of earlier research (lrm, binary response variables) with new c-indices obtained from 'multiple' (more response variables) logistic regression. Best regards, Stephanie Delalieux Department Biosystems M?-BIORES Group of Geomatics
2009 Jan 09
2
Mac woes
I am new to R but have spent a little time messing around with it. I am running version 2.8.1 under Leopard OS 10.5 on a power PC and also on my laptop, which is Intel. Unless, I am wrong, this version is just a bit buggy. 1. In the R Commander, there is no direct entry of data. The Edit menu does not include a "New data set" choice, as advertised in the Windows version. 2.
2006 Apr 22
3
rjs woes, any hints?
I''ve pared my rjs experiment down to what seems a bare minimum. When I click on my link_to_remote, the rjs executes, returns the correct javascript to the browser, but it doesn''t update the div I''ve specified. What appears to be coming back from the controller is: Element.update("my_form", "hello, rjs"); I''m tearing my hair out.
2003 May 16
1
Newbie Matrix problem refined; Can't convert .csv data to matrix
Thanks to all for your previous help. I see now that my problem is converting my .csv file of data into a matrix. My example is a (3x3) matrix with a "header" row (that doesn't contain numerics). Thanks again for your time and gracious consideration.
2010 Feb 14
4
Newbie woes with *apply
Dataframe cust has Date-type column open.date. I wish to set up another column, with (first day of) the quarter of open.date. To be comprehensive (of course, improvement suggestions are welcome), month = function(date) { return(as.numeric(format(date,"%m"))) } first.day.of.month = function(date) { return(date + 1 - as.numeric(format(date,"%d"))) } first.day.of.quarter =
2002 Sep 10
3
XP woes
Working with Windows XP and debian Samba 2.2.3a on a box as my PDC. Sign or seal patch was applied. The past few days when we have been adding new computers running windows XP to the domain we have had machines tell us they have joined the domain, but when we try to log onto them using a "domain" account we get the following error on the PC: "The system could not log you on to
2011 Apr 04
2
how to handle no lines in input with pipe()
This has to do with using pipe() and grep and read.csv() I have a .csv file that I grep using pipe() and read.csv() as follows: read.csv(pipe('grep foo bar.csv')) However, is there a way to have this command run when for example, there is no "foo" text in the bar.csv file? I get an error message (appropriately): Error in read.table(file = file, header = header, sep = sep,
2020 Jan 22
2
permission woes on systemd
I'm running asterisk 16 on Fedora 31. If I start asterisk as user asterisk, all goes well. But if I start asterisk from systemd: asterisk[1411]: [Jan 21 19:36:47] ERROR[1411]: res_sorcery_config.c:320 sorcery_config_internal_load: Unable to load config file 'pjsip.conf' Jan 21 19:36:47 asterisk.riverside asterisk[1411]: [Jan 21 19:36:47] ERROR[1411]: config_options.c:710
2014 Mar 26
2
Authentication woes, passwd standard install
I have two users working fine. Tried to add a third and it refuses to accept log on details. I've stripped everything back to default config, and still only the first two users are accepted! Can't understand it and it's driving me crazy. I've deleted and created the user a thousand times, and opened the config up as wide as possible. I'm obviously doing something stupid but
2010 Apr 23
2
bigmemory package woes
I have pretty big data sizes, like matrices of .5 to 1.5GB so once i need to juggle several of them i am in need of disk cache. I am trying to use bigmemory package but getting problems that are hard to understand. I am getting seg faults and machine just hanging. I work by the way on Red Hat Linux, 64 bit R version 10. Simplest problem is just saving matrices. When i do something like