similar to: representing NULL values in a vector

Displaying 20 results from an estimated 10000 matches similar to: "representing NULL values in a vector"

2010 Sep 15
3
characters in a string
Hi, I need to check if a string "<rh>a,b,c,d<rh>" is delimited by two "<rh>" 's as efficiently as possible(I need to do this a lot of times) and return TRUE. Can someone suggest a good technique? [[alternative HTML version deleted]]
2010 Sep 06
2
dataframe row names from list
Hi, I have a list which looks like this... > str(y) List of 10 $ : chr [1:4] "ABCD" "5" "0" "1" $ : chr [1:4] "DEF" "15" "1" "16" $ : chr [1:4] "AAA" "2" "17" "8" $ : chr [1:4] "SSS" "15" "25" "1" $ : chr [1:4] "III"
2010 Sep 08
3
adding list to data.frame iteratively
Hi, I have a preallocated dataframe to which I have to add a list whose vectors will become rows in the dataframe. This is done iteratively. How can I do this? I'm dealing with very large numbers...list of 1000 vectors to a dataframe of 200000 iteratively for e.g. my list is as follows ll<-list(c("1","2","3"),c("2","3","4")) I
2010 Oct 01
3
Converting a dataframe column from string to datetime
Hi, I have a dataframe column of the form v<-c("Fri Feb 05 20:00:01.43000 2010","Fri Feb 05 20:00:02.274000 2010","Fri Feb 05 20:00:02.274000 2010","Fri Feb 05 20:00:06.34000 2010") I need to convert this to datetime form. I did the following.. lapply(v,function(x){strptime(x, "%a %b %d %H:%M:%OS %Y")}) This gives me a list that looks like
2010 Sep 08
1
bigmemory doubt
Hi, Is it possible for me to read data from shared memory created by a vc++ program into R using bigmemory? [[alternative HTML version deleted]]
2010 Sep 04
1
return from .Call()
Hi, I have a .Call in my R function in a loop that repeats a certain number of times. Each time, the .Call returns a list. So, when I say something like, y<-func() would y be a list of lists?(as many as the number of loops?) [[alternative HTML version deleted]]
2010 Sep 06
1
max limit of list size and vector size?
Hi, Is it possible for me to store a list of vectors of 1 million entries? like, cc<-list(c(1,2,........1million),c(1,2,........1million)....) also what is the length of the longest string in R? I keep getting info from a socket and keep pasting on a string...when will this start becoming a problem? [[alternative HTML version deleted]]
2010 Sep 06
1
size limit of string/parse a string and convert to vector
Hi, I have a loop as follows, dataStr <- character(0) repeat{ fstr<-read.socket(sockfd) if(fstr=="") break dataStr<-paste(dataStr,fstr) } at what point does dataStr stop accepting(gets full)? I'm sending millions of records over the socket and need to know if all of it can go into dataStr. Also, Incase all of it cannot go into dataStr, I need to parse each
2010 Sep 07
1
queue implementation?
Hi, is there a queue implementation in R? [[alternative HTML version deleted]]
2010 Sep 08
2
Uncompressing data from read.socket
Hi, Is it possible to uncompress gzipped data coming over a socket? [[alternative HTML version deleted]]
2010 Oct 04
2
Issue with match.call
Hi, I have a function that I'm writing. The arguments in the function are as follows RFF<-function(qtype, qOpt,...){} i.e., I have two args that are compulsary and the rest are optional. Now when my user passes the function call, I need to see what optional args are defined and process accordingly...what I have so far is.. RFF<-function(qtype, qOpt,...){ mc <-
2007 Jul 31
1
Error message when running lm() with na.action=NULL
Hi there, I am trying to run a liner regression using lm with na.action = NULL, but I am getting an error message. Any ideas as to why this may be happening? Please see code and error message below: > reg_test<-lm(yy~.,data=test,na.action=NULL) Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in foreign function call (arg 4) This message and
2013 Feb 28
2
Fortune?
I think the rule is that you can do anything as long as you don't complain. If you want to complain, you must follow the instructions. -- Jari Oksanen in Re: [Rd] Keeping up to date with R-devel -- Patrick Burns pburns at pburns.seanet.com twitter: @burnsstat @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of: 'Impatient R' 'The R
2010 Aug 31
1
binary package build error:target 'xf->>' is not a directory
Hi, I built a package in linux and generated its binary using R CMD build --binary testpack. This generated testpack.tar.gz. I tried to install this package in windows using R CMD INSTALL package.tar.gz and I got the error *installing to library 'H:/R-2.11.1/library' *installing *binary* package 'testpack' ... /cygdrive/RTools/bin/cp: target 'xf->>' is not
2010 Sep 03
1
running an exe in the background
Hi, I'd like to be able to run a .exe in the background whenever library(package-x) is called. Is this possible? ~Aks [[alternative HTML version deleted]]
2010 Sep 04
1
limit on read.socket?
Hi, I have the following piece of code, repeat{ ss<-read.socket(sockfd); if(ss=="") break output<-paste(output,ss) } but somehow, output is not receiving all the data that is coming through the socket.My suspicion is on the if statement. what happens if a white space occurs in between the string arriving over the socket? [[alternative HTML version deleted]]
2010 Sep 14
1
dataframe of dataframes?
Hi, I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this? [[alternative HTML version deleted]]
2010 Sep 28
1
break function execution
Hi, I have an R function that executes for a little over a minute. When the function starts running, the R interface freezes and doesnt change until the function exits cleanly. Is there someway I can force the function to exit without messing up the interface?(An equivalent of Ctrl-C) Additionally, can I run the function in background and get a notification when it completes? [[alternative HTML
2010 May 30
4
Data Frame as Hash Table
I'm interested in using a data frame as if it were a hash table. For instance if I had the following, > (d <- data.frame(key=seq(0.5, 3, 0.5), value=rnorm(6))) key value 1 0.5 -1.118665122 2 1.0 0.465122921 3 1.5 -0.529239211 4 2.0 -0.147324638 5 2.5 -1.531503795 6 3.0 -0.002720434 Then I'd like to be able to quickly retrieve the "value" of "key" 1.5
2010 Sep 02
1
R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
Hi, I've built my own package in windows and when I run R CMD check Package-Name I get, * install options are ' --no-html' * installing *source* package 'AceTest' ... ** libs making DLL ... g++ ...etc. installing to <PATH> ... done ** R ** preparing package for lazy loading ** help Warning: ./man/AceTest-package.Rd:34: All text must be in a section Warning: