similar to: Error in FUN(newX[, i], ...) : no complete element pairs in R 2.7.0 patched

Displaying 20 results from an estimated 10000 matches similar to: "Error in FUN(newX[, i], ...) : no complete element pairs in R 2.7.0 patched"

2008 Jun 17
1
Trouble with FUN(newX[, i], ...)
Hi, I am trying to train svm with some training data of about 4000 rows and 4000 columns. While running svm function I am ending up with the following error. trainfile <- read.csv('0_train_0016435.csv',head=TRUE,na.strings = "NULL") datatrain <- subset(trainfile,select=c(-Class)) model <- svm(datatrain, kernel="radial") Error in FUN(newX[, i], ...) :
2013 Mar 23
1
Error with custom function in apply: ”Error in FUN(newX[, i], ...) : unused argument(s) (newX[, i])”
Hi everyone, I wonder if I can get your help using a custom function in apply. Imagine the following dataframe called "data": LowLim HighLim A1 A2 A3 A4 4 6 3 4 5 6 4 6 4 5 5 6 2 3 1 4 2 3 2 3 NA NA NA NA We have created a custom function (see below) that takes the values in a given row between columns A1 to A4 to see if they are outside the limits in the same
2017 Sep 26
0
Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"
Hi Chris, Maybe the na.rm=TRUE is affecting things. Try this apply(datTAF[,75:78],2,function(x){ sum(!is.na(x)) }) HTH, Eric On Tue, Sep 26, 2017 at 9:53 AM, Chris Evans <chrishold at psyctc.org> wrote: > I am hitting an odd message "Error in FUN(newX[, i], ...) : all arguments > must have the same length". I can't supply the data as it's a huge data > frame
2017 Sep 26
2
Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"
I am hitting an odd message "Error in FUN(newX[, i], ...) : all arguments must have the same length". I can't supply the data as it's a huge data frame but I think this has enough diagnostic information to show the issue. I am sure I am missing something obvious. I've put some extra comments in but otherwise this is cut and pasted from Rstudio. ### I wanted a table of the
2007 Feb 22
3
How to print a double quote
Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close: > fnd<-"Open fnd 'test'" > cat(fnd) Open fnd 'test'> > But instead of Open fnd 'test' I need: Open fnd "test". Difference seems minor, but I am writing batch files for another
2005 Jul 27
2
Error in FUN(newX[, i], ...) : `x' must be atomic
Hello Group, What is the meaning of the error. is there any place to look for this. I guess 'atomic' seems to be OOP related concept. thank you srini
2007 Mar 01
2
FTP download from ftp.sec.gov
All, I have managed to download files from web sites and ftp sites using R, so just for fun I tried to do so from the SEC's ftp site using the following code: ftp <- "ftp://anonymous:test at ftp.sec.gov/edgar/full-index/company.idx" download.file(url=ftp, destfile="test.txt") And it does not work. R says it cannot open the URL. If I paste the ftp part into IE it
2008 May 02
1
How to parse XML
I would like to learn how to parse a mixed text/xml document I downloaded from the sec.gov website (see example below). I would like to parse this to get the value for each xml tag and then access it within R, but I don't know much about xml so I don't even know where to start debugging the errors I am getting in this example code. Can anyone help me get started? Thanks, Roger ftp
2008 Aug 20
1
How to send Html using SQL Server db mail
All, I have a variable called `go` and it has a single quote in the name column of line 47 that I am trying to get rid of. I have tried using gsub, but I cannot get the syntax correct to tell R to remove the ' (single quote). > go[47,] gvkey Symbol Name Rank MarketCap MemoDate Action Analyst Reason SharesHeld 75 065105 BJ BJ'S WHOLESALE CLUB INC 0.9579
2007 Mar 21
0
Unable to register TclNotifier window class
Running R 2.4.1 in batch mode on a Windows Server 2003 machine occasionally gives me the following error in the ".Rout" file: Loading required package: tcltk Loading Tcl/Tk interface ... Unable to register TclNotifier window class This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Does
2007 May 24
1
how to change font size in HTML output
I have not been able to figure out how to change the font size for R2HTML::HTML output. Or for output from prettyR::htmlize. If anyone can give me a couple hints that would be great. Thanks, Roger J. Bos ********************************************************************** * This message is for the named person's use only. It may contain confidential, proprietary or legally
2007 May 24
1
Is it possible to print a data.frame without the row names?
Is it possible to print a data.frame without the row names? I checked ?data.frame, ?print, ?format and didn't see anything that helped. In the example below, I would just like to show the two columns of data and not the row.names 1:10. > a<-data.frame(1:10, 21:30) > a X1.10 X21.30 1 1 21 2 2 22 3 3 23 4 4 24 5 5 25 6 6 26 7
2007 Oct 26
1
How to remove non-UTF-8 characters from a string
All, I am trying to post text from an XLS spread to my wiki and I need to remove any characters that are not UTF-8. Is there an easy gsub command that can do this? (I previously sent this same email to r-sig-gui. That was a mistake and I apologize for the duplication.) Thanks, Roger J. Bos ********************************************************************** * This message is for the named
2008 Aug 15
2
cor() btwn columns in two matrices - no complete element pairs
Hi everyone, I'm trying to calculate correlation coefficients between corresponding columns in two matrices with identical dimensions but different data. The problem is that the matrices contain NAs in different locations. I am using the following code to try to calculate correlations between complete sets of data: #Code start maxcol<-ncol(mat1) for (i in 1:maxcol) {
2009 Nov 20
3
Remove leading and trailing white spaces
I have a character string and I would like to remove the leading and tailing white spaces. The example for 'sub' shows how to remove the trailing white spaces, but I still can't figure out how to remove both trailing and leading white spaces because I can't find any documentation for what "+$" means or what "\\s+$" means. Maybe its because I don't have a
2007 Dec 06
1
HTML help search in R 2.6.0 v 2.6.1
I am running R on a corporate Windows XP SP2 machine on which I do not have administrator privileges or access to most settings in Control Panel. R is installed from my limited user account. The version of the JVM I have installed is perhaps best described as antique: > system(paste("java -version"),show.output.on.console=T) java version "1.4.1" Java(TM) 2 Runtime
2008 Aug 16
1
How to remove white spaces
All, I am storing a string of email addresses in a table and when I retrieve them using a RODBC statement such as: test = sqlQuery(xf, "select specialist from roger_sector_specialist")$specialist 'test' is of mode list and includes a bunch of white space. As a work-around I convert 'test' to a character string, split it based on a white space, then take the first
2011 Sep 08
3
How to specify a variable name in the regression formula without hard coding it
I have a matrix called mat and y is the column number of my response and x is a vector of the column numbers of my terms. The variable name of y can change, so I don't want to hardcode it. I can find out the name as follows: > names(mat)[y] [1] "er12.l" Then I can run the regression by hard coding the variable name as follows: > mod <-
2009 Feb 22
3
Error in var(x, na.rm = na.rm) : no complete element pairs
Hello all, I'm trying to calculate the standar desviation and I'm using the function sd(x,na.rm=TRUE) and I have this error:? Error in var(x, na.rm = na.rm) : no complete element pairs . Why happen this?, What can I do to solve it?. x is list of three numbers which I have from a table. Thanks so much from Spain Carlos Morales Diego
2011 Jul 18
1
R on a server (Windows Server 2008)
Apologies for a naive question: Can R be installed and run on a server (operating system Windows Server 2008)? Thank you! -- Dimitri Liakhovitski