Summary: | FIXED IN SVN: Hang on big names arrays | ||
---|---|---|---|
Product: | [Applications] rkward | Reporter: | RKWard Team <rkward-devel> |
Component: | general | Assignee: | RKWard Team <rkward-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
RKWard Team
2011-10-04 13:32:51 UTC
Hi\! The core problem with that object is that it looked like an object containing 1985324 sub-objects to RKWard. I have addressed this in the development version \(http://p.sf.net/rkward/svn\) by making sure that RKWard will never try to look at more than 100000 children of any object, and specifically will not treat arrays as hierarchical named objects \(which it never did quite right, anyway\). That should solve the hang. That said, that object of yours really is a bit unusual. To me it looks more like you wanted to have two separate variables, as in: x <- data.frame \(year=names \(a\), as.vector \(a\)\) or, alternatively: x <- sapply \(unique \(names \(a\)\), function \(x\) as.vector \(a\[x == names \(a\)\]\)\) While names\(\) can contain duplicates for most R objects, this is rarely ever useful, and typically it indicates a problem. E.g. what's the use of a\["2009"\] ? Regards Thomas - **assigned_to**: nobody --> tfry - **summary**: Hang when creating or loading a big array/data frame column --> FIXED IN SVN: Hang on big names arrays - **status**: open --> open-fixed -- Originally posted by (AT sourceforge.net): nalimilan -- Ah, cool, I'll try with a more recent SVN then. I would have updated before reporting, but my setup is a little messed up ATM, so that's not as easy as it sounds. ;-\) That 'a' object doesn't make any sense, it's just that I extracted the problematic variable from a big data frame using a<-df$a. Since it was the smallest unit that triggered the bug, I kept it, but it isn't useful by itself. The names probably correspond to the first column of the data frame, with contains the survey year, but is of course used in relation with many more variables. - **status**: open-fixed --> closed-fixed |