Displaying 20 results from an estimated 10000 matches similar to: "How to change ONLY the first character of each variable name"
2009 Apr 02
4
Mountain ahead of me!
Dear All,
Thanks for taking the time to read this. I have been presented with a massive task. I'm not an asterisk expert, but I do know my way around a linux server and infrastructure, and I know when things are not done correctly. A large number of minutes are routed every month, (1m+) and I wish to do this in the most efficient way possible.
I've been presented with three linux
2020 Feb 13
2
[PATCH] nouveau: no need to check return value of debugfs_create functions
On 2/9/20 2:55 AM, Greg Kroah-Hartman wrote:
> When calling debugfs functions, there is no need to ever check the
> return value. The function can work or not, but the code logic should
> never do something different based on this.
>
Should we follow that line of reasoning further, and simply return void
from the debugfs functions--rather than playing whack-a-mole with this
2005 Jun 06
5
OT: Please comment on Dvorak's troll
http://www.pcmag.com/article2/0,1759,1812887,00.asp
Specifically, his assertion that ISP's would sniff traffic and block, say,
the SIP port. You could play wack-a-mole with port numbers, no?
Also a community based, Freenet style of encryption implementation for
"free" VoIP traffic would address this issue.
I raise this to the list because I'm sure there's a grain of
2020 Feb 13
1
[PATCH] nouveau: no need to check return value of debugfs_create functions
On Thu, Feb 13, 2020 at 11:39 PM Greg Kroah-Hartman
<gregkh at linuxfoundation.org> wrote:
>
> On Thu, Feb 13, 2020 at 02:30:09PM -0800, John Hubbard wrote:
> > On 2/9/20 2:55 AM, Greg Kroah-Hartman wrote:
> > > When calling debugfs functions, there is no need to ever check the
> > > return value. The function can work or not, but the code logic should
>
2020 Oct 25
3
GPO fail and sysvol perm errors
On 25/10/2020 20:37, Sonic wrote:
> The reset allowed the current GPO to take effect, but right after
> adding a new GPO (just named it, no editing, or linking) the
> sysvolcheck fails:
> # samba-tool ntacl sysvolcheck
> ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception
> - ProvisioningError: DB ACL on GPO directory
>
2006 Feb 24
3
Sorting alphanumerically
I'm trying to sort a DATAFRAME by a column "ID" that contains
alphanumeric data. Specifically,"ID" contains integers all preceeded
by the character "g" as in:
g1, g6, g3, g19, g100, g2, g39
I am using the following code:
DATAFRAME=DATAFRAME[order(DATAFRAME1$ID),]
and was hoping it would sort the dataframe by ID in the following manner
g1, g2, g3, g6, g19,
2013 Feb 03
2
Compare each element of a list to a vector
Hello R-helpers,
I have a vector
x<-c(1,2,3)
and a list that contains vectors
datalist<-list(c(1,2,3),c(2,3,4),c(3,4,5),c(4,5,6))
and I would like to identify those list elements that are identical to x.
I tried
> datalist %in% x
[1] FALSE FALSE FALSE FALSE
but I am obviously using %in% incorrectly. I also tried messing around with
lapply but I can't figure out how to specify
2006 Feb 24
2
Sorting a dataframe by one column?
Given the following dataframe:
A=1:10
B=(a-5)^2
DATAFRAME=data.frame(A,B)
How can I sort DATAFRAME increasing (or decreasing, for that matter)
by B without making reference to A, or any other column?
I've read ?order and ?sort but cannot seem to figure this out.
Thank you.
Mark
2009 Jun 24
5
How to avoid ifelse statement converting factor to character
Hi R-helpers,
Please see the below R output.
The problem is that after running the ifelse statement, data$SOCIAL_STATUS
is converted from a factor to a character.
Is there some way I can avoid this conversion?
Thanks in advance, Mark Na
> str(data)
'data.frame': 2100 obs. of 11 variables:
$ DATE : Factor w/ 5 levels "4-Jun-09","7-May-09",..: 1 1 1 1 1
2005 Oct 25
5
Graphics window always overlaps console window!
Does anyone know how I can set up R so that when I make a graphic, the
graphics window remains behind the console window? It's annoying to
have to reach for the mouse every time I want to type another line of
code (e.g., to add another line to the plot). Thanks.
2010 Dec 14
2
How to left or right truncate a character string?
Hi R-helpers,
I have a character string, for example:
"lm(y ~ X2 + X3 + X4)"
from which I would like to strip off the leading and trailing
quotation marks resulting in this:
lm(y ~ X2 + X3 + X4)
I have tried using gsub() but I can't figure out how to specify the
quotation mark using a regular expression.
Alternatively, I would like a function that lets me delete the leading
2007 Apr 16
2
Histograms of lots of variables
Hi R-helpers,
I wish to produce frequency histograms of all of the variables in my
dataframe (except some identifying variables).
I have tried
>hist(dataframe[,3:20])
to produce histograms of the 3rd through 20th variables in my dataframe, but
R doesn't like that.
Could anyone provide a suggestion?
Also, once I produce the histograms, I'd like to save them as graphic files
on my
2018 Aug 29
3
getting invites to rtp ports ??
On 08/29/2018 11:59 AM, Telium Support Group wrote:
> Block a single IP is the wrong approach (whack-a-mole). You should consider a more comprehensive approach to securing your VoIP environment. Have a look at this wiki:
>
> https://www.voip-info.org/asterisk-security/
>
>
>
> -----Original Message-----
> From: asterisk-users [mailto:asterisk-users-bounces at
2010 Dec 16
2
Compare two dataframes
Hello,
I have two dataframes DF1 and DF2 that should be identical but are not
(DF1 has some rows that aren't in DF2, and vice versa). I would like
to produce a new dataframe DF3 containing rows in DF1 that aren't in
DF2 (and similarly DF4 would contain rows in DF2 that aren't in DF1).
I have a solution for this problem (see self contained example below)
but it's awkward and
2006 Feb 24
1
Read SAS .sd2 file into R?
Does anyone know how to import a SAS .sd2 file into R? I can't see
anything in library(foreign).
Thank you. Mark
2006 Feb 20
2
glob2rx function not working
Dear R users,
Inspired by previous list discussion of the glob2rxc function, I am
attempting to create a new vector called TOTAL by summing all vectors
whose names begin with ABC:
TOTAL = sum(list = ls(pattern = glob2rx("ABC*")))
I'm running R 2.2.1 on Windows XP. Can anyone say what I'm missing?
Thank you, Mark
2007 Mar 26
2
How to drop variables using a wildcard and logic...
Dear R users
I would like to make a new dataframe from an existing dataframe, retaining
ONLY those variables that end in the letter "t"
I have searched the help archives and consulted several reference books but
cannot seem to find an example.
Any ideas...? Thanks!
Mark
[[alternative HTML version deleted]]
2008 Aug 06
4
How to calculate GLM least square means?
Hello R-helpers,
I would like to calculate least square means after having built a GLM with
quasipoisson errors.
In my model the dependent variable is continuous, I have one continuous
independent variable and one categorical independent variable (that is the
variable for which I would like to calculate the least square means).
I've looked around for the command to calculate the least
2009 Jun 02
3
How to convert blanks to NA
Hi R-helpers,
I have imported data from Excel using the following code:
library(xlsReadWrite)
data <- read.xls(data,colClasses=c("character"))
and this results in all of the empty (blank) cells in the imported
Excel file also being empty (blank) in the resulting dataframe.
I am not used to having blanks (rather NAs) and I think these are
caused by the colClasses argument.
I would
2010 Mar 18
4
Please help with loop, thanks
Dear R helpers,
I would like to write a loop that makes 4 objects (called A, B, C, and D)
each of which contains ten random numbers.
This attempt:
individuals<-c("A","B","C","D")
for(i in 1:length(individuals)) {
individuals[i]<-rnorm(10)
}
does not work because "individuals[i]" is not the proper way to extract each
letter from the