Questions tagged [user-defined]

253 questions
0
votes
1 answer

Different results even with set.seed() in R

I have re-run with the same seed but cannot produce same results in R studio. Will set.seed() lose track when calling different user packages, R6 classes and methods? Have you come across similar situation and how to fix it? Thanks a…
waith
  • 21
  • 1
  • 3
0
votes
1 answer

How can I turn this dplyr statement to an R function

Essentially, I want to turn this: sum_user_daily_p1 <- raw_user_daily_agg %>% group_by(UserID) %>% filter(ProductID == 1) %>% summarize( LOR_months = (difftime(max(Date), min(Date), units = "weeks")), bets_total = sum(Bets), max_bet =…
I.B.
  • 23
  • 2
0
votes
0 answers

Mysql user defined variable date type in where clause

I tried to simplify my long queries with user defined variables in Mysql. Unfortunately, these variables don't behave in where clause as expected - especially variables where is stored date. Here are 3 simplified queries: SELECT id, @var_date…
mesnicka
  • 2,458
  • 8
  • 23
  • 31
0
votes
2 answers

Enabling a data move from a user defined column to a pre-defined column

This is my 1st post on this excellent website. I hope you can help me out with a code I am trying to set up. Apologies in advance if this is a repeat but searching the website I dont think there is a similar case. In a subroutine I determined that…
0
votes
1 answer

Java Reflection Problem

Hi I am currently doing my final year project; I need to develop an algorithm visualization tool. I need to cater for user-defined algo; that is animate the algorithm the user types in a text-editor provided in my tool. I am using the Java Compiler…
user630167
  • 13
  • 3
0
votes
0 answers

Return range from another workbook

sorry if my question is an easy one. I am still getting the hang of vba. Is there anyway to have a macro select a workbook defined by the user, then use that range for calculations? An example of what I am trying to do is in the code below: Sub…
Zac M
  • 1
0
votes
0 answers

How to check existence of an input argument for R functions without using '...'

Please consider the following example to check for my arguments: fun <- function(x, y, z) { notexist <- is.null(y) return(notexist) } fun(x) # Should return TRUE since y is missing fun(x,y) # Should return FALSE since y is being passed I have…
BeginnerR
  • 13
  • 2
0
votes
3 answers

user-defined exceptions with enumeration "error level"

I have made some user-defined exceptions and I would like to add an error level to each exception. forexample userInputerror, and internalError. The reason I'm coding this, is because I want to learn about exceptions so that's why I am reinventing…
user602996
0
votes
0 answers

Alternative way to Paste Select * from in SQL Server

Is there any way to create a short cut for select * from I will be typing this 100+ times a day. Is there any user defined shortcut that we can create in Window to paste this text. Thanks
vamshi
  • 21
  • 1
  • 2
  • 4
0
votes
2 answers

Using paste() within t.test() in user defined R function

I am trying to write a function which accepts Var1 and Var2 from user and run the t.test and return the mean for female classification. But I am getting an error for the calc line. If I run the program without the paste and as.formula functions and…
BeginnerR
  • 13
  • 2
0
votes
1 answer

How can I search for a character in strings without using a loop?

My assignment is: if the user-inputted word has no vowels, then "ay" is added to the end, if it starts with a vowel then it adds "yay" to the end, otherwise if it doesn't meet any of these conditions then the first letter gets moved to the end of…
0
votes
1 answer

c# How to use Visio.Shape properties related to fields

Im having a few problems with interacting with Visio.Shape items using C#. I am able to loop through each shape within a page, when i do myShapeObj.Text i tend to get the correct text back. However, my visio document has the shape linked to a custom…
SamAPOC
  • 73
  • 2
  • 8
0
votes
1 answer

Is there a generic library to hold Delphi application's user defined values

After I added too many user defined values to my application, I had to develop something like below. And now, it is getting complex. I do not want to keep developing this tool. At least, I would like to compare my tool's properties to other…
0
votes
1 answer

populating an xml from user defined values in java

My requirement is that I have a number of XML templates and depending on certain decision params, I have to populate it either with values given by user or from a property file. The XMLs are quite long and nested. I understand any of the following…
sonal
  • 101
  • 1
  • 4
  • 13
0
votes
2 answers

Get a List of User-Defined Controls From Current Namespace

How could I get a list of all user-defined controls that were added to current namespace? I am using C# 2010.
Farzin
  • 11
  • 5