Displaying 17 results from an estimated 17 matches similar to: "incomplete final line found on <name of my sourced function file>"
2008 Oct 02
1
Help with aggregation
Hi All,
I seem to be having a few troubles with aggregating data back onto the the
dataframe,
I want to take the max value of a user, and then apply this max value back
against all id's that match (i.e a one to many matching)
Can anyone offer any advice? is there a better way of doing this?
Dummy data and code are listed below:-
dataset is called Mcookie
user_id c_we_conversion
1
2010 Sep 19
2
working with eval and environments
I'm trying to get the following section of code to work, I think the problem
is being caused by the assignment of data to the lm function not evaluating
to "train" in the parent environment but I can't seem to figure out how to
do this.
fitmodel <- function(trial,data)
{
wrap.lm <- function(formula,data,...) { cat("in wrap lm",NROW(data),"\n");
2004 Aug 16
1
turning off automatic coersion from list to matrix
Hello,
I am having trouble understanding how R is coercing between matrices and
lists in the following example. I have an aggregate behavior I like:
aggregate(a[,"num"],by=list(product=a[,"product"],region=a[,"region"]),
sum)
Now in reality I have more columns than just product and region, and
need to pick different combinations. So I want to abstract this into a
2006 Mar 16
3
Did I use "step" function correctly? (Is R's step() function reliable?)
Hi all,
I put up an exhaustive model to use R's "step" function:
------------------------
mygam=gam(col1 ~ 1
+ col2 + col3 + col4
+ col2 ^ 2 + col3 ^ 2 + col4 ^ 2
+ col2 ^ 3 + col3 ^ 3 + col4 ^ 3
+ s(col2, 1) + s(col3, 1) + s(col4, 1)
+ s(col2, 2) + s(col3, 2) + s(col4, 2)
+ s(col2, 3) + s(col3, 3) + s(col4, 3)
+ s(col2, 4) + s(col3, 4) + s(col4, 4)
+ s(col2, 5) + s(col3,
2011 Oct 05
2
aggregate function with a dataframe for both "x" and "by"
I have 2 dataframes. "mydata" contains numerical data. "mybys" contains
information on the "group" each row of the data is in. I wish to aggregate
each column in mydata using the corresponding column in mybys.
Please see the example below. What is a more elegant or "better" way to
accomplish this task?
Thanks!
mydata =
2011 Feb 09
2
assign factor levels based on list
All,
Given a data frame and a list containing factor definitions for certain columns, how can I apply those definitions from the list, rather than doing it the standard way, as noted below. I'm lost in the world of do.call, assign, paste, and can't find my way through. For example:
#set up df
y <- data.frame(colOne = c(1,2,3), colTwo =
2017 Jun 24
0
Fwd: Widgets under renderUI Shiny
Hi All,
I am not sure if this is a relevant platform to ask but I have tried other
more related platforms and haven't had any luck so i thought i would try my
luck here.
Basically I want to generate a selectInput widget with a conditional under
renderUI in Shiny.
The number of widgets generated will depend on the number of variables a
user selects. Try as I may I have not been able to get
2018 Jul 20
3
error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
Hi Thomas,
Thanks for your kind response!
Please review my backport for hs25, thanks a lot!
diff -r 3544d85cfe11 src/share/vm/opto/lcm.cpp
--- a/src/share/vm/opto/lcm.cpp Thu Jul 19 10:00:36 2018 +0100
+++ b/src/share/vm/opto/lcm.cpp Fri Jul 20 10:06:37 2018 +0800
@@ -49,7 +49,7 @@
// Check whether val is not-null-decoded compressed oop,
// i.e. will grab into the base of the heap
2018 Jul 23
2
error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
Hi Thomas,
Looks good.
Your changes in loopPredicate.cpp does not match original changes - they
miss iff->is_RangeCheck() check [1]. But in JDK8 we did not have
specialized RangeCheckNode class in C2. Suggested fix should be fine fro
jdk 8u.
Reviewed.
Please, when sending RFA ( approval request) use original 8174050 bug id.
Thanks,
Vladimir
[1]
2011 May 24
2
plotting single variables common to multiple data frames
Hello all,
I have files (see attached) which are created daily. I want to load
about a weeks worth of them (7 daily files) and plot a weeks worth of
one variable together. So one variable name is delta_D_H. I would like
to plot this variable from all 7 days on one plot. I'm having trouble
figure out how to do this.
I've loaded them all up using this
time=Sys.time()
t1<-
2018 Jul 18
2
Syntax for FileCheck numeric variables and expressions
Hi Alex,
Thanks for the feedback. My first thought was that introducing the new
pseudo var @EXPR is a nice way to generalize that syntax beyond @LINE
since it would also evaluate to an arithmetic value. On the other hand
there is a small inconsistency because @LINE evaluates to a value
which can be part of an expression while @EXPR is an expression, and
so the @ syntax as a whole becomes defined
2018 Jul 19
2
error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
Hi HotSpot and LLVM developers,
I am building OpenJDK8[1] with LLVM toolchain[2] for mips64el, it failed
to build:
/home/loongson/jdk8-mips/hotspot/src/share/vm/opto/lcm.cpp:52:35: error:
ordered comparison between pointer and zero ('address' (aka 'unsigned
char *') and 'int')
if (Universe::narrow_oop_base() > 0) { // Implies UseCompressedOops.
2018 Jul 26
3
Syntax for FileCheck numeric variables and expressions
Hi Alexander,
Please forgive me if I'm missing the obvious but I do not see how the
order helps allowing a comma in the expression. It seems to me that
what would allow it is to make FMTSPEC mandatory or at least the comma
to separate it (ie. [[#,EXPR]] for the default format specifier). In
any case comma in a function-call like expression can be distinguished
from comma for the format
2018 Jul 31
2
Syntax for FileCheck numeric variables and expressions
Hi Alex,
On Fri, 27 Jul 2018 at 11:53, Alexander Richardson
<arichardson.kde at gmail.com> wrote:
>
> On Thu, 26 Jul 2018 at 10:28 Thomas Preudhomme <thomas.preudhomme at linaro.org> wrote:
>>
>> Hi Alexander,
>>
>> Please forgive me if I'm missing the obvious but I do not see how the
>> order helps allowing a comma in the expression. It seems
2018 Jul 31
2
Syntax for FileCheck numeric variables and expressions
I can certainly envision a use case for a [BASE + LENGTH + 4] computation to verify the address of a next-thingy. Comes up in DWARF dumps all the time.
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of James Henderson via llvm-dev
Sent: Tuesday, July 31, 2018 11:53 AM
To: Thomas Preudhomme
Cc: llvm-dev
Subject: Re: [llvm-dev] Syntax for FileCheck numeric variables
2018 Jul 17
2
Syntax for FileCheck numeric variables and expressions
To be clear, I do not intend to add support for hex specifier in the
current patch, I just want to make sure the syntax we choose is going
to allow it later. My immediate use case is decimal integer and I
intend to write the code so that it's easy to extend to more type of
numeric variables and expressions later. This way we'll only add
specifier that are actually required by actual
2018 Aug 22
4
Syntax for FileCheck numeric variables and expressions
Hi James,
Yes I think you summary proposal is a good one though I disagree with the
colon being optional because there is ambiguity with looking for the value
of VAR5 in the %x format. If anything, [[# %x, VAR5]] is equivalent to
[[#:%x, VAR5]] or ([[#:%x = VAR5]] with your proposal. My other suggestion
would be to use == rather than = since = could be confused with assignment.
Note that