Justin

United States

Age: 31

12h
comment Is it possible to use data.table in R for conversion of dates? Keep receiving Error...'origin' must be supplied
This isn't reproducible for me. Please include str(your.data.table) and also try to recreate the behavior in a small reproducible example
1d
comment find n primes using R
How will i or j ever get above 10 in your code? and where did you get the function isprime?
Jul
9
awarded Popular Question
Jul
2
awarded Curious
Jun
25
awarded Good Question
Jun
25
revised Using for loops in R to save 100 heatmaps
added 177 characters in body; added 135 characters in body
Jun
25
comment Using for loops in R to save 100 heatmaps
Touche. Answer edited
Jun
25
comment Using for loops in R to save 100 heatmaps
@coolgal2k that is a separate and unrelated question. Please accept this as answered and ask another using all the code you supplied above. Also, please make it reproducible. However, to save them, you need to open a device for each image inside your loop...
Jun
25
answered Using for loops in R to save 100 heatmaps
Jun
25
comment Using for loops in R to save 100 heatmaps
You're missing a closing quote or a closing parentheses somewhere in all your ellipses. If you want us to help debug, please include all the code as well as the package name you're using.
Jun
21
comment Using gsub() in a datatable
Can you show some of your data? There is almost certainly a better way, e.g. match which or merge.
Jun
20
comment Read fixed range of rows from a 20GB csv file using R
the default FUN argument is read.table which takes a skip argument.
Jun
18
awarded Enlightened
Jun
18
awarded Nice Answer
Jun
12
comment Django "get" method not working
Additionally, during development, I encourage you to set DEBUG=True in your settings.py file. That way you will see tracebacks in the browser rather than a 500 error...
Jun
3
comment Divisibility Checker Decimal and Negative Numbers
@PadraicCunningham Oh... yeah... that... np.arange
Jun
3
comment Divisibility Checker Decimal and Negative Numbers
Can't you just use range? range(0, 10, 2.5) or range(-10, 0, 2)... (maybe you need abs(step)).
Jun
3
comment Basic while loops in Python
Also, there is no way to leave your outer most while...
Jun
3
comment Issue with multiple loops to create plots, getting error
@carevans88 As amazing as I am, I am not intuitive enough to understand this. Please revert your edit, accept my above answer and ask a new question that, if needed, links to this one. Make sure you include all the pertinent information including the exact error. However, in your edit, plt doesn't exist. You need to reference the returned object, e.g. Totrigs.savefig.
Jun
3
revised R if statement about a web page
added 8 characters in body
1 2 3 4 5