Displaying 2 results from an estimated 2 matches for "magritte".
Did you mean:
magrittr
2003 Jun 18
1
New Member modifies settings!
Does this modification resolve the HTML problem?
Sorry if I am slow to catch on. It's never been a problem on other groups
I have posted. Even though its a simple thing, its never really been
called to my attention. Sorry.
Frankly I am now stepping into a realm I find quite intimidating.
But I do see long range opportunity and possibilities if I can dog paddle
long enough to absorb
2024 Nov 27
4
R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments
Check out the dplyr package, specifically the mutate function.
# Create new column based on existing column value
df <- df %>% mutate(FirstDay = if(ID = 2, 5))
df
Repeat as needed to capture all of the day/firstday combinations you want to account for.
Like everything else in R, there are probably at least a dozen other ways to do this, between base R and all of the library packages