« first day (1525 days earlier)      last day (1759 days later) » 

 
2 hours later…
4:37 AM
Has to be a typo/unclear error, surely - stackoverflow.com/questions/56746677/…
 
5:12 AM
@thelatemail yep
@Axeman congrats!
 
@Jaap cheers ;)
 
5:55 AM
Halo
 
morning all
 
6:53 AM
Hello hello :-)
 
Can someone please re-hammer this with this? nurka reopened it...
 
@Sotos done
 
@Cath Thanks! I m so fed up with him. We had a heated discussion yesterday and now he is acting up. Nothing new...I m used to it...from my daughter
 
@Sotos yeah, same mental age probably ^^
how can you tell yourself that the 2 Q are not dupe ??? it's juste the exact same, there's not even a tiny subjective part...
 
@Cath I think @Sotos 's daughter is probably more mature. ;-)
 
7:00 AM
@RonakShah that is likely...
 
@RonakShah hahaha...You can definitely reason with my daughter :P
 
 
1 hour later…
8:24 AM
9 messages moved to Trash can
 
 
1 hour later…
 
1 hour later…
10:47 AM
@Jaap (any data.table heros) how would you read a file with space delimiter
 
sep=" " doesn't work ?
 
I had a code that read it with data.table version data.table 1.10.4, but now doesn't work with data.table 1.12.2
Tried all below, all fails:
fread("fileTest.txt")
fread("fileTest.txt", sep = " ")
fread("fileTest.txt", strip.white = FALSE)
fread("fileTest.txt", sep = " ", strip.white = FALSE, na.strings = "")
fread("fileTest.txt", sep = " ", strip.white = FALSE, quote = "")
 
"\\s" ???
 
when value is missing it is basically space after space after space, so data.table is not handling it
Here is the test file
col1 col2 col3 col4 col5 col6
r1 0 1 2 3 4
r2 0 3 4
r3 0 1 2 3 4
 
can you give first lines ?
oh ok, you're good at reading minds ;-p
 
10:50 AM
row r2 is missing values on col3 and col4
it is stripped in above example, but there are 3 spaces between 0 and 3 on r2 row
 
read.table does not work either
 
works with "data.table 1.10.4"
Can't use base, as file has millions of rows
Question for GitHub or SO?
base works: read.table("fileTest.txt", strip.white = FALSE, sep = " ", na.strings = "")
 
maybe because I didn't set strip.white to FALSE
@zx8754 does not look like that if I copy/paste : I do have a space pb on line 3
 
change it to 3 spaces, they got stripped when I pasted here... see my screenshot
 
@zx8754 ok now works with base \o/
definitely does not work
 
11:34 AM
@zx8754 did you try with sep = " " in fread?
 
yeah
 
I would file an issue on GitHub because it worked 1.10.4 and not anymore; thus looks like a bug
 
Yeah, doing it right now, thank you.
 
11:55 AM
 
any good dupe target for this? stackoverflow.com/questions/56753412/…
 
12:52 PM
@zx8754 your former post on import problem with fread does not work with new version but I get a different and quite strange (to me) error : Empty data.table (0 rows and 4 cols): 4,5,6,7
 
Thanks Cath, just edited my answer...
 
@zx8754 I think I had the same problem, I tried to debug fread, didn't understand where the problem was and/or didn't know how to solve it and I think I ended up changing the separator or doing setDT after read.table. At that time I thought I was doing something wrong but the issue is probably older than 1.12.2
don't you find it surprising that the colnames seems to be 4, 5, 6, 7 meaning fread doesn't read any line prior to the last one ?
^--- with header=FALSE you can see the first lines are ignored
 
 
4 hours later…
4:57 PM
could've sworn i installed this already, but now no dice (is it removed from both repos? i almost never install non-CRAN besides dev data.table) gitlab.com/jangorecki/data.cube
i would post an issue asking Jan but assume it's an error on my part / in my system
looks like another SO user is ahead of me there anyways stackoverflow.com/questions/56402377/…
 
5:12 PM
what special functionality does Jan's package add?
 
 
1 hour later…
6:14 PM
@Jaap it supports a "star schema" for storing data, which others in my data pipeline use (or plan to), so i want to learn about it and help with our implementation (which won't be in R but rather whatever the DBA chooses, but i can follow along with most of it using data.cube, i think). the data is pretty simple - assigned-seating ticket sales, so tracking core data on time of transaction, price and quantity; with "star" dimensions like event, ticket, seat location, etc
back in march or april i installed it and went through the tutorial and it seemed to offer convenient storage and syntax (very similar to arrays and data.tables) and the simple calculations required (like, up to a point in time, what is the net quantity sold in some dimension?)
 
7:11 PM
anyone have thoughts for OP asking in comments re B[A] vs merge(A,B,all.x=TRUE)? stackoverflow.com/q/56758723
 
 
3 hours later…
9:42 PM
more dtplyr stuff github.com/Rdatatable/data.table/issues/3641 lazy_dt sounds like the right idea. but after reading the vignette i tried updating and cannot get it to work/eval (using %>% as.data.table as documented)
 

« first day (1525 days earlier)      last day (1759 days later) »