Displaying 20 results from an estimated 20000 matches similar to: "Change the names of a dataframe"
2008 Dec 22
1
questions about read datafile into R
Dear all:
I have been thinking to import below one data file (.txt)into R by
read.table(..,skip=1, header=T). But How can I deal with the repeated
rows of TABLE NO.1 and names of data variables in the middle of this
data file. The similar block will be repeated 100 times, here only show
4 of them and within each block, data records also can vary, here only
paste 4 rows for example. I appreciate
2008 Dec 22
1
question about read datafile
Dear all:
I have been thinking to import below one data file (.txt)into R by
read.table(..,skip=1, header=T). But How can I deal with the repeated
rows of TABLE NO.1 and names of data variables in the middle of this
data file. The similar block will be repeated 100 times, here only show
4 of them and within each block, data records also can vary, here only
paste 4 rows for example. I appreciate
2009 Oct 28
4
Insertar filas en un data frame
Hola,
Por favor, necesito insertar una fila debajo de las filas que tengan DV
distinto de cero, pero no me deja insertar hasta el final de la tabla.
Esta es mi tabla y este es el código con el que estoy apurado.
C ID TIME DV AMT RATE CMT SS II EVID GRUPO VISITA DOSIS VECES FORMA NAP
EDAD SEXO ALTURA PESO
11 0 0 3 0 1 1 12 1 3 0 3 2 1 0 77 2 147 74
11 1.417 0.001 0 0 2 0 0 0 3 0 3 2 1 0.001
2008 Jul 03
3
Re membering the last time an event occurred within a dataframe
All,
I am constructing a pharmacokinetic dataset and have hit a snag. The dataset
can be demonstrated in the following way:
myData <- data.frame(
evid = c(1, 0, 0, 0, 1, 0, 1, 1, 1, 0),
time = 1:10,
last.dose.time = c(1, 1, 1, 1, 5, 5, 7, 8, 9, 9)
)
The evid field is an indicator variable for whether the associated
observation is a dosing record (when it takes value 1) or an
2003 Mar 06
1
Problems with variable types.
Hi all,
I have problems in a dataframe variables types.
Look:
from a loop function:
for(...){
...
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
Nsp=nsps,
N=length(amosfin$SP),
AmT="am",NAm=nam,
AMST=amst))
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
2008 Nov 26
1
Request for Assistance in R with NonMem
Hi
I am having some problems running a covariate analysis with my
colleage using R with the NonMem program we are using for a graduate
school project. R and NonMem run fine without adding in the
covariates, but the program is giving us a problem when the covariate
analysis is added. We think the problem is with the R code to run the
covariate data analysis. We have the control stream, R code
2007 Apr 17
2
how to estimate dose from respond given drc package result
Dear all,
I can use the very nice drc package (multdrc()) to model and plot a
dataframe containing dose and response values. I can also use
predict.drc() to yield response values given a dose. I need to do the
opposite, estimate a dose given the response. The general predict
documentation seems to say that this is possible, but it does not
appear that predict.drc has that capability.
2010 May 07
1
How to pass value to an argument in a function which is an argument to the main function
Dear all,
I constructed this function called my.boxplot.stats by replacing fivnum()
with quantile() in function boxplot.stats(). So I can try different quantile
methods in bwplot(). The problem is I couldn't pass different values to the
"type" argument to my.boxplot.stats, which in turn is an argument in
bwplot(). Now I just have to manually change the "type" value in
2009 Dec 01
4
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hello,
I'm working in adding support for 64-bit integers to my target. I'm using
LLVM to decompose the 64-bit integer operations by using 32-bit registers
wherever possible and emulating support where not. When looking at the bit
shift decomposition I saw what seems to be a bug in the implementation. The
affected function is ExpandShiftWithUnknownAmountBit in
LegalizeIntegerTypes.cpp.
2009 Dec 01
0
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hi Javier,
> The problem is the implementation of the expansion. Perhaps an example
> can help illustrate better. Take the case of a 64-bit integer shifted
> left by say 6 bits and is decomposed using 32-bit registers. Because 6
> is less than the 32 (the register size) the resulting low part should be
> equal to the source low part shifted left by 6 bits. The current
>
2017 Jul 19
3
creating new vm with virt-manager, existing disk failure
hello,
i rsynced a kvm vm from one host to another.
i start virt-manager and tell virt-manager to use an existing disk.
i set cpu to haswell that is on the host.
configure before start is set, and i start "begin installation".
I get this output by virt-manager:
Unable to complete install: 'internal error: process exited while
connecting to monitor: 2017-07-19T09:27:10.861928Z
2010 Oct 16
3
Doubt with symbols in Rails
I was trying to write a wrapper for number_to_currency to return
currency in pounds. I used a helper class to do this.
def number_to_pounds(amt)
number_to_currency(amt, :unit => "£")
end
This works fine, but I am trying to understand why I can''t use a
symbol to pass the values. I thought symbols were like pointers. (you
now know I am a newbie).
def
2007 Jul 05
3
summarizing dataframe at variable/factor levels
All,
Is there an efficient way to apply say "mean" or "median" to a dataframe
according to say all combinations of two variables in the dataframe?
Below is a simple example and the outline of a "manual" solution that
will work but is not very efficient
(could also generalize this to a function). Searched the archives and
docs but didn't see anything close to
2008 Dec 17
2
[LLVMdev] Shifts that use only 5 LSBs.
On Dec 16, 2008, at 7:57 PM, Eli Friedman wrote:
> On Tue, Dec 16, 2008 at 3:36 PM, Daniel M Gessel <gessel at apple.com>
> wrote:
>> I'm working on a Target that only uses the 5 lsbs of the shift
>> amount.
>
> Okay, that's quite common... x86 is the same.
>
Thanks - yes, I'd heard rumors that x86 operates the same way.
>> I only have 32
2008 Feb 13
1
model construction
I buy flowers at a local market on a fairly regular basis. The flower
vendors post their prices and if I want to buy only one or two flowers I
will generally get the posted price. From time to time I want to buy large
quantities of flowers, and sometimes a vendor will give me a better price
than their posted price for the bulk order, but more often I have to offer
them a higher price than the
2008 Feb 16
3
[LLVMdev] linux/x86-64 codegen support
See the bug for a reduction and the gimple trees. validate_arglist
definately is rejecting the arglist in EmitBuiltinAlloca.
(try:
bool TreeToLLVM::EmitBuiltinAlloca(tree exp, Value *&Result) {
tree arglist = TREE_OPERAND(exp, 1);
if (!validate_arglist(arglist, INTEGER_TYPE, VOID_TYPE)) {
debug_tree(arglist);
return false;
}
Value *Amt = Emit(TREE_VALUE(arglist), 0);
Amt =
2006 Jun 15
1
Repost: Estimation when interaction is present: How do I get get the parameters from nlme?
Gday,
This is a repost since I only had one direct reply and I remain
mystified- This
may be stupidity on my part but it may not be so simple.
In brief, my problem is I'm not sure how to extract parameter
values/effect sizes from a nonlinear
regression model with a significant interaction term.
My data sets are dose response curves (force and dose) for muscle that
also have two
2009 Dec 04
2
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hi Duncan,
I don't know if the optimization would help us much. Our architecture
performs integer shifts and subtractions at the same speed. I think the
optimization is limited to the case where NVBits is a power of two. That is
the case for all current value types but there's a separate thread where
someone is proposing adding i20 as a native type.
In your previous email you mentioned
2008 Dec 17
0
[LLVMdev] Shifts that use only 5 LSBs.
On Tue, Dec 16, 2008 at 5:20 PM, Daniel M Gessel <gessel at apple.com> wrote:
> The problem here is that it looks like LLVM is introducing an expansion that
> assumes 32 bit shifts use more than 5 bits of the shift value.
> I created a simple test function:
> u64 mebbe_shift( u64 x, int test )
> {
> if( test )
> x <<= 2;
> return x;
> }
> I compile using
2010 May 12
1
Convert data.frame or matrix to list
Hi,
i have the following data.frame :
> Data[1:3,]
dt amt geoTree merTree ref
1 0.71002484 3.334570 A2b B2b 0
2 0.49074936 2.544464 A2b B1a 0
3 0.06223433 3.617133 A1b B2a 0
i want to convert it to a list, like this:
list(Data[1,],Data[2,],Data[3,])
[[1]]
dt amt geoTree merTree ref
1 0.07333459 0.969585 A2a