Justin

United States

Age: 32

Apr
14
awarded dataframe
Apr
13
awarded Enlightened
Apr
13
awarded Nice Answer
Mar
29
comment Vectorization: How can I have only the set difference of the set of all elements before in a vector of vectors?
Also, if you've got a non-vectorized solution, what is it?
Mar
11
awarded Good Answer
Mar
8
revised speeding up boolean logic loop in R
added 62 characters in body
Feb
16
comment Add a column with count of NAs and Mean in R with dplyr
This generally isn't a forum to ask us to write your code for you. What have you tried? Why do you want to use dplyr? FWIW, this can be done in base R quite easily any number of ways. One is: df1$na <- apply(is.na(df1), 1, sum)
Feb
11
answered R import dirty csv with readLines use regular expressions to convert to dataframe
Jan
11
awarded Custodian
Dec
15
revised remove duplicates from list product of tab delimited file and further classification
deleted 117 characters in body
Nov
18
comment Duplicate entries while calculating Mean in Group By in R
You can write it yourself easily, but in the stringr package there is a str_trim function to remove leading and trailing whitespace. you'll have to re-factor that column though.
Nov
18
comment Duplicate entries while calculating Mean in Group By in R
You very likely have trailing white space or something similar in one of those. What is the full output of levels(mydata$sector)?
Nov
18
comment casting pandas dataframe into pandas series
Possible duplicate of How to get the first column of a pandas DataFrame as a Series?. you want: dl.ix[:,0]
Nov
18
answered How to add 1 to every element of a matrix / nested list in Python?
Nov
17
revised Re-organizing the data set based on all possible combinations
added 40 characters in body
Nov
17
revised How to plot failure types stacked next to each other in bar plots using ggplot2
added 253 characters in body
Nov
17
revised Solve equation for different values of x in r
edited body
Nov
17
answered Solve equation for different values of x in r
Nov
17
answered How to plot failure types stacked next to each other in bar plots using ggplot2
Nov
17
revised How to find out which package version is loaded in R?
added 163 characters in body
1 2 3 4 5