Displaying 20 results from an estimated 7000 matches similar to: "for loop; lm() regressions; list of vectors - lapply - accolades and square brackets??"
2010 Mar 30
1
for loop; lm() regressions; list of vectors
## Hello everyone,
##
## I am trying to execute 150 times a lm regression using the 'for' loop,
with 150 vectors for y,
##
## and always the same vector for x.
##
## I have an object with 150 elements named "a",
##
## and a vector of 60 values named "b".
##
## Each element in "a" has 60 values plus a header.
##
## When I type:
r <- lm(i ~ b)
for(i
2008 Mar 10
1
re moving parentheses/square brackets from data frame numbers
Dear list,
I am importing data consisting of numbers into dataframes. Some of the
numbers are flanked by parentheses or square brackets. Thus, they are not
recognized as numeric and the corresponding column is of class "factor"
which makes it hard/impossible use in plotting functions.
Is there a way to remove brackets from numbers in a column/row/dataframe?
Kind regards,
Stefan
--
2013 Jan 11
1
Using square brackets in a ploted expression
Dear Users,
I have the following text plotted inside a graphic:
text(16200, 2.8*0.97, expression(NH[3]==0.33-1.1 %*% 10^-5 %*% day),
adj=c(1,1))
I need to include square brackets in the expression around the ammonia to have it plotted like that: [NO3-]. I tried instinctively to use %[% to plot the brackets, but it did not work. Does anybody of you know what is the correct syntax to plot
2010 Jul 20
2
square brackets in expression in plots
Dears,
do you know whether it is possible to include any square parantheses (brackets) in an expression to use it as an axis label?
e.g. I would like to have a label like (with the sub and superscripts correct):
"speed [m s^-1]"
I know how to combine an expression with text via paste, but as I run soimething like:
a='m*s^{-1}'
plot(1:10,main=parse(text=a))
I found now way
2007 Jan 22
1
eval() parse() and problem with square brackets
Hello,
i have problem with the following code (I'm using sqlQuery function from
RODBC package):
eval(parse(text="g_1 <- sqlQuery(cnn_1, \"select aa from
bb.[cc\\dd].ee\")")).
I get the error message:
"[RODBC] ERROR: Could not SQLExecDirect"
"S0002 208 [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object
name 'bb.cc\dd.ee'."
It
2007 Jan 22
1
eval() parse() and problem with square brackets
Hello,
i have problem with the following code (I'm using sqlQuery function from
RODBC package):
eval(parse(text="g_1 <- sqlQuery(cnn_1, \"select aa from
bb.[cc\\dd].ee\")")).
I get the error message:
"[RODBC] ERROR: Could not SQLExecDirect"
"S0002 208 [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object
name 'bb.cc\dd.ee'."
It
2010 Mar 19
2
Put square brackets as column name in a data frame
Hi everyone,
this is a pretty simple question, but I have not found any answer about this
in this forum.
I'm trying to make a data frame like this :
ID,X[m],Y[m],Z[m]
0,-4.32902,-3.5437,12.4441
1,-4.31887,-3.54278,12.4441
2,-4.33672,-3.54401,12.4615
3,-4.67554,-2.78566,13.4151
4,-4.71124,-2.79889,13.4204
...
Actually, with my code, I'm getting this :
ID,X.m.,Y.m.,Z.m.
2019 Jan 25
0
[klibc:update-dash] expand - Fix dangling left square brackets in patterns
Commit-ID: 08e03dee1485ec4823b3afd465b32938b3a40045
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=08e03dee1485ec4823b3afd465b32938b3a40045
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sat, 3 Sep 2016 21:58:50 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] expand - Fix dangling
2020 Mar 28
0
[klibc:update-dash] dash: expand - Fix dangling left square brackets in patterns
Commit-ID: 9885e7650e5daf90ddc2a9bb1dfc6af14e86ad9d
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9885e7650e5daf90ddc2a9bb1dfc6af14e86ad9d
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sat, 3 Sep 2016 21:58:50 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: expand - Fix
2024 Feb 24
0
[Bug 1734] IPv6 address in port forward options (-L) requires square brackets
https://bugzilla.mindrot.org/show_bug.cgi?id=1734
Marc Herbert <marc.herbert+mindrot at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.herbert+mindrot at gmail.
| |com
--- Comment #6
2007 Sep 21
2
[Bug 778] sftp client globs entire path, directories enclosed in square brackets are unusable
http://bugzilla.mindrot.org/show_bug.cgi?id=778
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|openssh-bugs at mindrot.org |djm at mindrot.org
Attachment #1295 is|0
2007 May 17
4
[Bug 778] sftp client globs entire path, directories enclosed in square brackets are unusable
http://bugzilla.mindrot.org/show_bug.cgi?id=778
--- Comment #1 from Damien Miller <djm at mindrot.org> 2007-05-17 18:41:41 ---
Created an attachment (id=1284)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=1284)
Report error on read/write failures
I'm not sure how much logspam this patch will generate, so I'm going to
run with it for a little while.
--
Configure
2010 Mar 11
6
[Bug 1734] New: IPv6 address in port forward options (-L) requires square brackets
https://bugzilla.mindrot.org/show_bug.cgi?id=1734
Summary: IPv6 address in port forward options (-L) requires
square brackets
Product: Portable OpenSSH
Version: 5.4p1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: ssh
AssignedTo:
2012 May 22
3
How to remove square brackets, etc. from address strings?
Hello,
I'd like to remove the individual pairs of square brackets along with
their content - plus the space directly behind it - from address strings
such as this:
[Swidsinski, Alexander; Loening-Baucke, Vera; Lochs, Herbert] Charite
Humboldt Univ, Innere Klin, D-10098 Berlin, Germany; [Hale, Laura P.]
Duke Univ, Med Ctr, Dept Pathol, Durham, NC 27710 USA
I'd like get the
2008 Aug 11
1
Confused about square bracket usage.
I ran script/generate rspec_scaffold page title:string body:text and
have been reading on the generated code in my spare time in an attempt
to fully understand rspec. It mostly makes a lot of sense except for
the square brackets in the snippet below. To my best understanding,
[mock_page] would be an array containing mock_page. That almost makes
sense, buy why wouldn''t the variable
2003 Apr 29
2
Remove leading brackets in print?
Hi, I can't seem to get an answer for this by searching through the
R-help archives: How does one remove leading brackets in print?
For example,
>print( 3 )
>[1] 3
Would it be possible to get rid of the "[1]"?
Of course the effect is the same without "print", as in,
>3
>[1] 3
but I would only be interested in omitting brackets in printing, if
that's
2007 May 13
2
extracting text contained in brackets ("[ ... ]") from a character string?
I have a text string that contains text within two brackets.
e.g. "testdata[3]" "testdata[-4]", "testdata[-4g]",
I wish to "extract" the string enclosed in brackets?
What is a good way to do this?
e.g.
fun(testdata[3]) = '3'
fun(testdata[-4g]) = '-4g'
---------------------------------
Moody friends. Drama queens. Your life?
2009 Jun 05
1
[Bug 1602] New: ssh: doesn't handle IPv6 addresses with brackets
https://bugzilla.mindrot.org/show_bug.cgi?id=1602
Summary: ssh: doesn't handle IPv6 addresses with brackets
Product: Portable OpenSSH
Version: 5.2p1
Platform: All
OS/Version: Linux
Status: NEW
Keywords: low-hanging-fruit
Severity: normal
Priority: P2
Component: ssh
AssignedTo:
2006 Sep 16
0
[Bug 1230] filename escaping of brackets in sftp
http://bugzilla.mindrot.org/show_bug.cgi?id=1230
Summary: filename escaping of brackets in sftp
Product: Portable OpenSSH
Version: 4.3p2
Platform: PPC
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo: bitbucket at mindrot.org
ReportedBy: duncan2nd at
2020 May 15
0
[Bug 1602] ssh: doesn't handle IPv6 addresses with brackets
https://bugzilla.mindrot.org/show_bug.cgi?id=1602
--- Comment #6 from Marc Herbert <marc.herbert+mindrot at gmail.com> ---
Just did some more testing with OpenSSH_8.1p1 Apr 2020. It looks like
someone did the work to implement a new ssh://[brackets] syntax except
in the case where brackets are actually needed. Baffling.
So these now work:
ssh ssh://[host.local]:23
ssh