Displaying 8 results from an estimated 8 matches for "new_col".
Did you mean:
new_cols
2005 Dec 06
1
Help on a matrix task
Hello,
Being new to R, I am completely stuck with the following problem. Please
help to find a general solution to the following matrix task:
Given:
N<-4
input_mat<-matrix(c(1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0,
1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0,
1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0),ncol=N)
2010 Aug 19
1
Adding column to dataframe
...is near instant, <5 seconds
test <- as.Date(etc)
when I place it over itself it takes ~20 minutes
morbidity$adm_date <- as.Date(etc)
when I place the vector over it (so no computation involved), or place it as
a new column it still takes ~20 minutes
morbidity$adm_date <- test
morbidity$new_col <- test
when I tried a cbind to add it that way it took >20 minutes
new_morb <- cbind(morbidity,test)
Has anyone done something similar or know of a different command that should
work faster? I can't get my head around what R is doing, if it can create
the vector instantly then the co...
2008 Apr 23
1
cbind speed.
cbind/ rbind/ data.frame functions are very convenient for merging
vectors of different types into a single data frame, but take quite a
bit of time to execute on larger data sets.
Is it possible to speed these up a bit?
What functions do you use instead?
Thanks & regards,
Charles
2020 Oct 29
0
[PATCH] fbcon: Disable accelerated scrolling
...1ae973041a 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -1033,7 +1033,7 @@ static void fbcon_init(struct vc_data *vc, int init)
struct vc_data *svc = *default_mode;
struct fbcon_display *t, *p = &fb_display[vc->vc_num];
int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256;
- int cap, ret;
+ int ret;
if (WARN_ON(info_idx == -1))
return;
@@ -1042,7 +1042,6 @@ static void fbcon_init(struct vc_data *vc, int init)
con2fb_map[vc->vc_num] = info_idx;
info = registered_fb[con2fb_map[vc->vc_num]];
- cap = info->flags;...
2020 Oct 31
2
[PATCH] fbcon: Disable accelerated scrolling
...a/drivers/video/fbdev/core/fbcon.c
> +++ b/drivers/video/fbdev/core/fbcon.c
> @@ -1033,7 +1033,7 @@ static void fbcon_init(struct vc_data *vc, int init)
> struct vc_data *svc = *default_mode;
> struct fbcon_display *t, *p = &fb_display[vc->vc_num];
> int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256;
> - int cap, ret;
> + int ret;
>
> if (WARN_ON(info_idx == -1))
> return;
> @@ -1042,7 +1042,6 @@ static void fbcon_init(struct vc_data *vc, int init)
> con2fb_map[vc->vc_num] = info_idx;
>
> info = registered_fb[con2fb_map[vc->...
2020 Oct 31
0
[PATCH] fbcon: Disable accelerated scrolling
...> +++ b/drivers/video/fbdev/core/fbcon.c
> > @@ -1033,7 +1033,7 @@ static void fbcon_init(struct vc_data *vc, int init)
> > struct vc_data *svc = *default_mode;
> > struct fbcon_display *t, *p = &fb_display[vc->vc_num];
> > int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256;
> > - int cap, ret;
> > + int ret;
> >
> > if (WARN_ON(info_idx == -1))
> > return;
> > @@ -1042,7 +1042,6 @@ static void fbcon_init(struct vc_data *vc, int init)
> > con2fb_map[vc->vc_nu...
2020 Oct 29
4
[PATCH 1/3] fbcon: Disable accelerated scrolling
So ever since syzbot discovered fbcon, we have solid proof that it's
full of bugs. And often the solution is to just delete code and remove
features, e.g. 50145474f6ef ("fbcon: remove soft scrollback code").
Now the problem is that most modern-ish drivers really only treat
fbcon as an dumb kernel console until userspace takes over, and Oops
printer for some emergencies. Looking at
2010 Aug 24
0
mlm for within subject design
...;> when I place it over itself it takes ~20 minutes
>> morbidity$adm_date <- as.Date(etc)
>> when I place the vector over it (so no computation involved), or place it
> as
>> a new column it still takes ~20 minutes
>> morbidity$adm_date <- test
>> morbidity$new_col <- test
>> when I tried a cbind to add it that way it took>20 minutes
>> new_morb <- cbind(morbidity,test)
>>
>> Has anyone done something similar or know of a different command that
> should
>> work faster? I can't get my head around what R is doing, i...