similar to: undocumented name mangling during unlist?

Displaying 20 results from an estimated 80 matches similar to: "undocumented name mangling during unlist?"

2012 Oct 09
2
Error in matrix (unlist(value, recursive = FALSE, use.names = FALSE), nrow = nr, : attempt to set an attribute on NULL
I am using Donlp2 package to solve a non-linear problem, but there's an error I always meet: Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE), nrow = nr, : attempt to set an attribute on NULL I have been suffering from this bug for a long time. I'll be very grateful if somebody could help me -_- -- View this message in context:
1997 Jul 28
0
R-alpha: R 0.50.a1 unlist() problems
Two things. TASKS has TASK: Naming with Numeric Values and "unlist" STATUS: Open FROM: <hornik@ci.tuwien.ac.at> R> l <- list("11" = 1:5) R> l $11 [1] 1 2 3 4 5 R> unlist(l) 111 112 113 114 115 1 2 3 4 5 [ Bug or feature ? ] This seems to be a feature (at least, SPLUS does the same), so please close that task. *** However, please add
1997 Aug 10
0
R-alpha: unlist(..) forever..
Take about the bug from hell; well I'm sure that I'm not done with this one yet but it should work a little better on the next patch. robert =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the
2008 Aug 20
0
unlist on nested lists of factors (PR#12572)
Here is a description and a proposed solution for a bug in unlist(). I've used version 2.7.2 RC (2008-08-18 r46382) to look at this, under linux. unlist(recursive=TRUE) incorrectly returns a factor with zero levels when passed either a nested list of factors, or a data frame containing only factor columns. You can't print() the result. x <- list(list(v=factor("a")))
2008 Aug 20
0
unlist on nested pairlists
unlist(recursive=FALSE) returns NULL elements when passed a nested pairlist containing non-NULL data: x <- pairlist(pairlist(1:2)) unlist(x, recursive=FALSE) ## [[1]] ## NULL version 2.7.2 RC (2008-08-18 r46382) under linux I'm unaware of any motivation for constructing the above data structure, but if unlist is going to operate on it without error I would be surprised if that is the
2008 Oct 24
1
unlist change the ordered type
Hi the list, unlist respect the all the atomic type except orderd (it change of ordered into factor) : ### integer class(unlist(list(1:5,1:3))) #[1] "integer" ### numeric class(unlist(list(1.2,3.5))) #[1] "numeric" ### character class(unlist(list("e","e"))) #[1] "character" ### factor
2016 Dec 02
0
unlist strips date class
Hi, On 12/02/2016 10:45 AM, Kenny Bell wrote: > Is this a bug? > >> unlist(list(as.Date("2015-01-01"))) > [1] 16436 Good question. More generally one might reasonably expect 'unlist(x)' to be equivalent to 'do.call(c, x)' on a list 'x' where all the list elements are atomic vectors: x <- list(1:3, letters[1:2]) unlist(x) # [1]
2016 Dec 05
1
unlist strips date class
On 02 Dec 2016, at 23:13 , Herv? Pag?s <hpages at fredhutch.org> wrote: > More generally one might reasonably expect 'unlist(x)' to be equivalent > to 'do.call(c, x)' on a list 'x' where all the list elements are atomic > vectors: Well, both are generic, and e.g. there is no "Date" method for unlist(), but there is for c(). It is not clear that
2002 Aug 27
1
unlist (rpart.object.list)
Hello, can me please help anbody how it is possible unlist a "rpart.object.list" i.e. from bagging(ipred) to plot this "unique" several rpart.objects . ..i make attempts with unlist, get really atomic elements, but need only the different tree's ! Thanks for advance & regards,Christian -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2003 Jul 03
2
unlist
Hi I have a list with several data.frames, all with the same number of colunms but different number of rows, and I'd like to transform this list into a single dataframe. I need to mimic an rbind of all dataframes ... Transform doesn't seem to work :-( Thanks EJ -- Ernesto Jardim <ernesto at ipimar.pt> Bi?logo Marinho/Marine Biologist IPIMAR - Instituto Nacional de Investiga??o
2005 Jan 05
1
unlist kills R
When I try to unlist a very large list, R is killed without any other warning: A<-as.list(as.data.frame(matrix(1:21639744,nrow=3578,ncol=6048))) with AA<-unlist(A) or AA<-c(A,recursive=TRUE) I get a R terminado (killed) and the end of the session. I think I'll need to get more RAM (now 1Gb, any other solutions welcomed) to be able to do this but, shouldn't I get a more gentle
2007 Oct 23
1
How to unlist Dates
Hi, I am trying to get a vector of dates that I can use for the xaxis in matplot (e.g. axis.Date(1,dates) ) I have a list of dates ... e.g. > dates [[1]] [1] "2015-02-15" [[2]] [1] "2015-08-15" [[3]] [1] "2015-11-15" But when I unlist it I "lose" the Dates and get numbers instead > unlist(dates) [1] 16481 16662 16754 Am I doing something wrong
2008 Feb 19
0
nlsList - Error in !unlist(lapply(coefs, is.null))
Howdee, I am able to fit a 4-parameter logistic growth curve to a dataset which comprise many individuals (using R v. 2.3.1). Yet, if I want to obtain the parameters for each individual (i.e., for each 'id') using nlsList, then I obtain an Error message which I have trouble interpreting. Any advice as to how I can solve this problem? Thanks for your time, Marc > reg <-nls(mass ~
2009 Mar 27
0
Efficiency: speeding up unlist that is currently running by row
Hello everyone! I have a piece of code that works and does what I need but...: # I have 3 slots: nr.of.slots<-3 # My data frame is "new.a": new.a<-data.frame(x=c("john", "mary"),y=c("pete","john"),z=c("mary","pete"),stringsAsFactors=FALSE) print(new.a) # Creating all possible combinations of the rows of
2009 Aug 20
0
Using 'unlist' (incorrectly?!) to collate a series of objects
Dear R Users, I am attempting to write a new netCDF file (using the ncdf) package, using 120 grids I've created and which are held in R's memory. I am reaching the point where I try to put the data into the newly created file, but receive the following error: > put.var.ncdf(evap_file, evap_dims, unlist(noquote(file_list))) Error in put.var.ncdf(evap_file, evap_dims,
2009 Oct 12
1
crosstabulation and unlist function
Hello R-users, My toy example: aa<-c(1:5) bb<-c(NA,2,NA,4,5) cc<-c(1,2,NA,4,NA) dd<-c("A","B","B","A","C") df<-data.frame(aa,bb,cc,dd=as.factor(dd)) table(unlist(df[,1:3])) Can anyone point me to what function let's me do a crosstabulation between table(unlist(df[,1:3])) and df$dd? I want to find out when dd==A (or B,
2010 Sep 10
1
faster unlist,strsplit,gsub,for
Hi, I perform the operations unlist,strsplit,gsub and the for loop on a lot of strings and its heavily slowing down the overall system. Is there some way for me to speeden up these operations..maybe like alternate versions that exist which use multiprocessors etc. -- Rajesh.J [[alternative HTML version deleted]]
2011 Mar 17
0
Retrieve an index of nested lists | Changing name delimiter in 'unlist()'
Dear list, I have to problems that are connected: PROBLEM 1 I wonder if it is somehow possible to patch the function 'unlist(use.names=TRUE)' such that you can specify an arbitrary name delimiter, e.g. "/" or "_". As I often name my variables "var.x.y", the default delimiter makes it hard to distinguish the distinct layers of a nested list after unlisting.
2016 Dec 02
3
unlist strips date class
Is this a bug? > unlist(list(as.Date("2015-01-01"))) [1] 16436 [[alternative HTML version deleted]]
2012 Mar 27
1
matrix(unlist(strsplit(""))) 'missing value' issue
*I'm still a R noob, just had a couple of lectures about it in our research master. There is a Deal or no deal experiment where I have to write some code for. Someone wrote a website to gather the data and write it in a .xlsx file. These are seperate files for seperate participants so first I have to import the seperate datafiles. I do that like this: # Merge the xlsx files into one dataframe