Displaying 8 results from an estimated 8 matches for "storeid".
Did you mean:
stored
2018 May 26
1
Grouping by 3 variable and renaming groups
Hello,
Sorry, but I think my first answer is wrong.
You probably want something along the lines of
sp <- split(priceStore_Grps, priceStore_Grps$StorePC)
res <- lapply(seq_along(sp), function(i){
sp[[i]]$StoreID <- paste("Store", i, sep = "_")
sp[[i]]
})
res <- do.call(rbind, res)
row.names(res) <- NULL
Hope this helps,
Rui Barradas
On 5/26/2018 2:22 PM, Rui Barradas wrote:
> Hello,
>
> See if this is it:
>
> priceStore_Grps$StoreID <- paste("S...
2018 May 26
0
Grouping by 3 variable and renaming groups
Hello,
See if this is it:
priceStore_Grps$StoreID <- paste("Store",
seq_len(nrow(priceStore_Grps)), sep = "_")
Hope this helps,
Rui Barradas
On 5/26/2018 2:03 PM, Jeff Reichman wrote:
> ALCON
>
>
>
> I'm trying to figure out how to rename groups in a data frame after groups
> by selected varia...
2018 May 26
3
Grouping by 3 variable and renaming groups
ALCON
I'm trying to figure out how to rename groups in a data frame after groups
by selected variabels. I am using the dplyr library to group my data by 3
variables as follows
# group by lat (StoreX)/long (StoreY)
priceStore <- LapTopSales[,c(4,5,15,16)]
priceStore <- priceStore[complete.cases(priceStore), ] # keep only non NA
records
priceStore_Grps <- priceStore %>%
2006 Oct 14
1
[ADV] Making space: First Edition AWDwR Paper Books: $12.50
...w, with the second edition just a few months
away, we need to clear out some space.
So, if you''d like to pick up a first edition paper book, they''re
going (while stocks last) for $12.50 (plus shipping) from
http://pragmaticprogrammer.com/shopsite_sc/shopping_cart/order.cgi?
storeid=*16e303fa8a9d21b81753a81ff5&dbname=products&itemnum=31&function=
add
Cheers
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email...
2003 Dec 31
1
AGI - IVR - Time Clock
...'store',-1,5); # Asks for Store ID
$AGI->stream_file(entered);
$AGI->say_digits($strid);
my $optstr = $AGI->get_data('correct',-1,1); # Asks if what
was entered is correct otherwise ask question again
if ($optstr != 1) {
storeid ();
}
my $stat = $AGI->get_data('status',-1,1); #Asks - Login or Logout
if ($stat == 1) {
$AGI->stream_file(login);
}else{
$AGI->stream_file(logout);
}
my $optstat = $AGI-&...
2004 Apr 04
1
How to improve this code?
...= 50, sd = 3), ncol = 1))
#Generate Customer List
customerlist <- cbind(1:10000,matrix(rnorm(10000, mean = -60, sd =
20), ncol = 1),
matrix(rnorm(10000, mean = 50, sd = 10), ncol = 1))
#Output file
outfile <- "c:\\output.txt"
outfilecolnames <- c("rank","storeid","custid","distance")
write.table(t(outfilecolnames), file = outfile, append=TRUE,
sep=",",row.names=FALSE, col.names=FALSE)
#Trade Area Size
TAsize <- c(100)
custlatlon <- customerlist[, 2:3]
for(i in 1:length(TAsize)){
for(j in 1:nrow(storelist)){
ca...
2006 Feb 24
4
Any way to pass state to a component?
I am trying set up a rails app that utilizes components. I need to be
able to pass some state (a bunch of name value pairs) from the Main
controller to the component.
Is there any way to pass this state info using render_component?
Regards
--
Posted via http://www.ruby-forum.com/.
2006 Feb 18
6
Active Record errors value - Why doesn''t this work?
I''m creating an AR object in my controller and then attempting to add
error messages to it:
if (master_storeids.nil?)
@item.errors.add_to_base ''No store is selected''
end
This works without error but when it comes time for AR to add the
record, it apparently initializes the errors because the message that I
added does not cause the AR add to fail as you would expect.
Even when ther...